Closed xeroxoid closed 8 years ago
Doesn't look like the jshint options are incorrect. I bet ValueError: invalid literal for int() with base 10: 'NaN'
is the actual error. I unfortunately can't reproduce this locally though :(
I have the same error (and linting doesn't work at all):
Traceback (most recent call last):
File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 574, in run_
return self.run(edit)
File "/Users/ces/Library/Application Support/Sublime Text 3/Packages/JSHint Gutter/JSHint.py", line 54, in run
hint_point = self.view.text_point(int(line_no) - 1, int(column_no) - 1)
ValueError: invalid literal for int() with base 10: 'NaN'
and when I insert the following, the error goes away (and linting works again):
// jshint camelcase: false
This fix works for me (in ~/Library/Application Support/Sublime Text 3/Packages/JSHint Gutter/JSHint.py, line 54):
hint_point = self.view.text_point(int(line_no) - 1, int(column_no if column_no != "NaN" else "1") - 1)
Hi, first of all thanks for this awesome package!
Now I'm not seeing any errrors for
camelcase: true
and initially I thought that the.jshintrc
file used was not the correct one (in my client directory). The I set"print_diagnostics": true
in the JSHint settings file and saw that the linting options are correct, i.e.:I am also getting some strange error in the console output, namely:
Here are some screenshots of sublime as proof:
Code (no error shown on gutter):
Output from my grunt linter:
Any ideas on if this is a bug or a configuration issue?