GithubHelp home page GithubHelp logo

Code hints? about brackets-flow HOT 8 OPEN

fdecampredon avatar fdecampredon commented on August 24, 2024
Code hints?

from brackets-flow.

Comments (8)

fdecampredon avatar fdecampredon commented on August 24, 2024

Normally code hints are implemented, do you get other features ? (quick edit error reporting) , did you forgot to add /* @flow */ on top of your file ?
You can also check if you got an error.

from brackets-flow.

josebalius avatar josebalius commented on August 24, 2024

@fdecampredon not sure what you mean?

It is showing errors in the console at the bottom if I give the wrong type to an object but if I try typing I do not see any code hints coming up. Do I need to turn on a setting or another package perhaps?

from brackets-flow.

josebalius avatar josebalius commented on August 24, 2024

@fdecampredon hmm, it looks to break down whenever I have a class in the file. Do you know if brackets has issues with es6? (new to this editor)

Edit: nvm, it works with classes, I started a new file and im bringing over contents from another file line by line trying the code hints and it seems like if you have the following:

console.log('\nMy debug line') it breaks code hinting. if I remove the \n it works

from brackets-flow.

josebalius avatar josebalius commented on August 24, 2024

@fdecampredon so yeah, confirmed that it is the \n character breaking code hints. I also disabled your extension to see if it was a brackets issue, but it is isn't because code hints started to work even with the \n character present, as soon as I turned brackets-flow back on, it stopped working as long as I had a \n in the file. Any ideas what it could be?

from brackets-flow.

fdecampredon avatar fdecampredon commented on August 24, 2024

Yup I have some idea I guess it comes from the nodejs integration need to try it could you attach a sample to the issue ?

from brackets-flow.

josebalius avatar josebalius commented on August 24, 2024

@fdecampredon

/* @flow */
type Test = {name: ''}

console.log('\nTest Log');

// Try hints here

from brackets-flow.

fdecampredon avatar fdecampredon commented on August 24, 2024

@josebalius yup the problem is pretty obvious
I try to escape things for unix command I guess I need to espace \n in a way but I don't know how :p will check when I have to do so thanks for the bug report

from brackets-flow.

josebalius avatar josebalius commented on August 24, 2024

@fdecampredon it's this line right: https://github.com/fdecampredon/brackets-flow/blob/master/node/flowDomain.js#L10 ? I can play with it and try to see if I can fix. I'll let you know. Apart from that, it works great! thank you

from brackets-flow.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.