2.3.19 breaks

65 views
Skip to first unread message

Peter StJ

unread,
Aug 31, 2015, 3:44:34 PM8/31/15
to Closure Linter Discuss
On code that was running okay with previous (2.3.17) version the update breaks in a way that I cannot infer what is going on. It is possible that I broke some JS code, but in the same time I feel like it should report the error instead of throwing:

this is the error I get and I don't know what should I do fro here...

Traceback (most recent call last):
 
File "build/bdist.linux-x86_64/egg/closure_linter/runner.py", line 165, in RunMetaDataPass
    metadata_pass
.Process(start_token)
 
File "build/bdist.linux-x86_64/egg/closure_linter/ecmametadatapass.py", line 466, in Process
   
self._ProcessToken()
 
File "build/bdist.linux-x86_64/egg/closure_linter/ecmametadatapass.py", line 483, in _ProcessToken
    context
= (self._ProcessContext() or self._context)
 
File "build/bdist.linux-x86_64/egg/closure_linter/ecmametadatapass.py", line 387, in _ProcessContext
   
if (self._last_code.type in (TokenType.END_PAREN,
AttributeError: 'NoneType' object has no attribute 'type'
Traceback (most recent call last):
 
File "/usr/bin/gjslint", line 9, in <module>
    load_entry_point
('closure-linter==2.3.19', 'console_scripts', 'gjslint')()
 
File "build/bdist.linux-x86_64/egg/closure_linter/gjslint.py", line 279, in main
 
File "build/bdist.linux-x86_64/egg/closure_linter/gjslint.py", line 219, in _PrintErrorRecords
 
File "build/bdist.linux-x86_64/egg/closure_linter/gjslint.py", line 134, in _CheckPaths
 
File "build/bdist.linux-x86_64/egg/closure_linter/gjslint.py", line 150, in _CheckPath
 
File "build/bdist.linux-x86_64/egg/closure_linter/runner.py", line 146, in Run
 
File "build/bdist.linux-x86_64/egg/closure_linter/runner.py", line 198, in _RunChecker
 
File "build/bdist.linux-x86_64/egg/closure_linter/checker.py", line 92, in Check
 
File "build/bdist.linux-x86_64/egg/closure_linter/checkerbase.py", line 188, in _ExecutePass
 
File "build/bdist.linux-x86_64/egg/closure_linter/javascriptstatetracker.py", line 150, in HandleToken
 
File "build/bdist.linux-x86_64/egg/closure_linter/statetracker.py", line 1104, in HandleToken
 
File "build/bdist.linux-x86_64/egg/closure_linter/javascriptstatetracker.py", line 117, in GetBlockType
AttributeError: 'NoneType' object has no attribute 'type'



Reply all
Reply to author
Forward
0 new messages