Closed ssaunders closed 10 years ago
Looks like a JSON error in your JSHint configuration. Please check both the workspace preferences (Main menu > Window > Preferences > JSHint > Configuration) and your project's properties (Context menu on your project 'awesome' > Properties > JSHin > Configuration).
That was it. Comments are not allowed. Thanks.
Comments should be allowed. If you use the latest version (0.9.10), could you post your configuration in #76?
Unfortunately, I didn't save the config, so i can't post it. However, I have gone back and added comments in and it worked just fine. It would have looked something like this:
{ / "curly": true, "eqeqeq": true, "forin": true, "freeze": true, "immed": true, "latedef": true, "newcap":true, "noempty": true, "nonew": true, "quotmark":true, "undef": true, "unused": true, "laxbreak": true, "lastsemic": true, "smarttabs":true, "globals": { "Ext":true, "APP_NAME":true, "wt":true } /
"browser": true, "devel": true }
I think I assumed it was the comments because the error seemed to be referring to the first part of the config, and that was where the comment was.
...and then I found it.
{
/*
"curly": true,
"eqeqeq": true,
"immed": true,
"freeze": true,
"latedef": true,
"noempty": true,
"nonew": true,
"undef": true,
"unused": true,
//ENVIRONMENT
"globals": {
"Ext":true
},
*/
"browser": true,
"devel": true
}
It turns out I'm using "JSHint Eclipse Integration 0.9.9.20131029-1050", but when I update, "No updates [are] found".
Right, 0.9.9 is the latest published version. I was using a build from the latest sources.
The last thing I want to do is submit an issue, and then find out it's a user error, but I spent the last couple hours searching, and cannot find any other place to get help on errors. If there is a more appropriate channel, please direct me there.
I am developing using Kepler Service Release 1 on Windows 7. I installed the JSHint plugin without any issue, restarted the program, and added *.js files to the project properties. However, nothing shows up, and I periodically get this error: Errors occurred during the build. Errors running builder 'JSHint Problem Checker' on project 'awesome'. Expected name at 1:2
Is this an error, or am I missing something? Thanks in advance.