Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Hints Unreliable #13328

Open
core-ai-bot opened this issue Aug 31, 2021 · 1 comment
Open

Code Hints Unreliable #13328

core-ai-bot opened this issue Aug 31, 2021 · 1 comment

Comments

@core-ai-bot
Copy link
Member

Issue by K-Thompson
Sunday Aug 09, 2015 at 23:19 GMT
Originally opened as adobe/brackets#11570


For me code hints are still unreliable after upgrading to v1.4 on two Windows 7 computers. In fact, today, it has not worked at all. I've tried to exclude files and folders, in the hope that reducing the number of files scan would solve the problem. I install v1.4 on one computer as a clean install. On the other computer, I installed over v1.3.

  1. I think on Windows 7, the file exclusion feature is not working (or I'm using it wrong). Notice the first two exclusion line with the '*' wildcard. Then look at the files added -- most from the folder being excluded.
{
    "jscodehints.detectedExclusions": [
        "C:/wwwroot/fin-calc/HC4/*",
        "C:/wwwroot/fin-calc/HC4/js/*",
        "C:/wwwroot/fin-calc/HC4/js/highcharts-3d.js",
        "C:/wwwroot/fin-calc/HC4/js/highcharts-3d.src.js",
        "C:/wwwroot/fin-calc/HC4/js/highcharts-more.js",
        "C:/wwwroot/fin-calc/HC4/exporting-server/phantomjs/heatmap.js",
        "C:/wwwroot/fin-calc/HC4/js/highcharts.js",
        "C:/wwwroot/fin-calc/HC4/exporting-server/java/highcharts-export/highcharts-export-web/target/highcharts-export-web/resources/js/runmode.js",
        "C:/wwwroot/fin-calc/HC4/js/highcharts.src.js",
        "C:/wwwroot/fin-calc/HC4/js/highcharts-more.src.js",
        "C:/wwwroot/fin-calc/HC4/js/themes/skies.js",
        "C:/wwwroot/fin-calc/HC4/exporting-server/phantomjs/highcharts-3d.js",
        "C:/wwwroot/fin-calc/HC4/js/themes/sand-signika.js",
        "C:/wwwroot/fin-calc/HC4/js/themes/grid.js",
        "C:/wwwroot/fin-calc/HC4/js/themes/grid-light.js"
    ]
}

My hunch is, the Inference Problem can be duplicated by adding the following open source libraries to your project folder.

jQuery DataTables
Highcharts v4
fancyBox v2
Bootstrap

  1. Also, Brackets has Inference Problems and adds files to the json file throughout the working session. Can't the files for in a project folder be parsed up front, and they either fail or not?
  2. The entries in the json file use forward slashes in the path. I tried changing them to back slashes, as that is what Windows expects. But that resulted in an invalid json file. I'm wondering if the code does not handle the paths correctly on Windows?

I'm assuming that the Inference Problem is leading to code hinting failing.

Perhaps it would be useful for debugging if when code hinting is failing, that exceptions are raised?

Also, I know that code hinting can be enabled and disabled. I've tried the toggle, but I know of no indication anywhere that tells the user when code hinting is enabled or disabled. That might be useful too.

Hope the parsing can be resolved. The error and request for files has been in a lot of versions of Brackets.

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Monday Aug 10, 2015 at 18:52 GMT


If we're lucky, #11569 helps fix this issue, too.
I'd be happy to send you a binary so you can test yourself and report on your findings. Please let me know if you'd like to help test this upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant