Crashing on a very simple file

19 views
Skip to first unread message

Peter Bengtsson

unread,
Sep 2, 2010, 3:37:29 PM9/2/10
to Closure Linter Discuss
$ gjslint invoice.js
----- FILE : /home/peterbe/dev/DJANGO/lc/media/js/invoice.js -----
Line 2, E:0002: Missing space before "("
Line 4, E:0002: Missing space before "("
Line 9, E:0002: Missing space before "("
Line 10, E:0002: Missing space before "("
Line 19, E:0001: Extra space at end of line
Found 5 errors, including 0 new errors, in 1 files (0 files OK).

Some of the errors reported by GJsLint may be auto-fixable using the
script
fixjsstyle. Please double check any changes it makes and report any
bugs. The
script can be run by executing:

fixjsstyle invoice.js


$ fixjsstyle invoice.js
Traceback (most recent call last):
File "/usr/local/bin/fixjsstyle", line 9, in <module>
load_entry_point('closure-linter==2.2.1', 'console_scripts',
'fixjsstyle')()
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/fixjsstyle.py", line 38, in main
files = fileflags.GetFileList(argv, 'JavaScript', ['.js'])
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 186, in
GetFileList
return sorted(GetAllSpecifiedFiles(argv, suffixes))
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 126, in
GetAllSpecifiedFiles
files = _GetUserSpecifiedFiles(argv, suffixes)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 76, in
_GetUserSpecifiedFiles
files = argv[1:] or []
TypeError: 'NoneType' object is unsubscriptable



If you want to see the file itself, it's here: http://static.peterbe.com/invoice.js

dpet...@gmail.com

unread,
Sep 2, 2010, 4:28:44 PM9/2/10
to closure-lin...@googlegroups.com
Please, look at the following thread - "TypeError: 'NoneType' object is unsubscriptable"


--
О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫,
dpet...@gmail.com

Peter Bengtsson

unread,
Sep 2, 2010, 5:10:31 PM9/2/10
to Closure Linter Discuss
That did solve the problem. I'll just install the upgrade when it
becomes available.
>  dpetr...@gmail.com

Andy Perelson

unread,
Sep 3, 2010, 8:16:02 PM9/3/10
to closure-lin...@googlegroups.com
This was tracked as issue 1, and has been fixed.

Thanks,

Andy
Reply all
Reply to author
Forward
0 new messages