Open christierney402 opened 10 years ago
I have the same problem, anybody know how to fix it ?
I can't reproduce it. Can provide an input file that leads to this error? Which exact version of jshint-eclipse do you use?
Eclipse Version: Kepler Service Release 2 Build id: 20140224-0627 Jslint Plugin: 2.1.10/ I am trying to enclose a js file, unfortunately it doesn't support it, how can i share a js file to you ?
Jslint Plugin: 2.1.10/
Are you using JSLint or JSHint? Please check your version of JSHint Eclipse (Help > Installation Details in Eclipse).
how can i share a js file to you ?
http://web.appstorm.net/roundups/communication-roundups/10-easy-sites-for-file-sharing/
Hi, I am using Jshint with build in library V2.1.10 . Eclipse Version: Kepler Service Release 2 Build id: 20140224-0627
I create a dropbox link shared the project files to you. https://www.dropbox.com/s/a22966frg6wb19i/testproject.zip#
How to reproduce it ? 1:Create a javascript project include all the enclosed folders, enable jshint and select analyse all files. 2: My config { "bitwise": false, "camelcase": true, "curly": true, "eqeqeq": true, "es3": false, "forin": false, "immed": true, "jquery": true, "latedef": true, "newcap": false, "noarg": true, "noempty": true, "nonew": true, "plusplus": false, "undef": true, "unused": "var", "strict": false, "trailing": false } 3: The result as below, almost error in every line, all mis-detected error...
4: Now, I am trying to delete any line , or add a while space in any line, press 'ctrl+s' save it, it works fine.
If I create a project include only one folder e.g folder 'channelEdit', (any folder if fine), It works fine. It's really weird....
Thanks for the example. I can reproduce the issue with a plain Kepler SR2 Eclipse with jshint-eclipse 0.9.9 installed. Will investigate.
Hi ralfstx: Any update on this issue?
I opened a random .js file in a legacy project and every row except one threw an error.
Now, in the Problems view, which I have set to display only current selection, there are 0 items.
As you can see in my image, the first row is a comment, but there first error in the massive list, when I hover over the gutter icon, is "Expected an assignment or function call and instead saw an expression." The second one is "missing a semicolon" and so forth.
Now when I hit "Ctrl-S" for save, all but three disappear.
The comment's info is now "This character may get deleted by one or more browsers". Also, the Problems view is showing the correct 3 items.
Now this leads to me wonder if there is BOM in there. I opened the properties of the file and it says under Text file encoding, "Default (determined from content: UTF-8)" and "Byte Order Mark is UTF-8 (BOM)".
So I'm not positive, but I think the linter doesn't take into account files that contain BOM until it is saved, which I'm assuming Eclipse removes something it doesn't like.