I've applied fix from that thread -
http://groups.google.com/group/closure-linter-discuss/browse_thread/thread/30fa86792d11b208
, but fixjsstyle stil doesn't work in strict mode for me.
I have the following output:
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 44, in main
style_checker.Check(filename)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/checkerbase.py", line 155, in Check
self.CheckLines(filename, f, False)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/checkerbase.py", line 228, in CheckLines
lint_rules.CheckToken(token, state_tracker)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/javascriptlintrules.py", line 82, in
CheckToken
super(JavaScriptLintRules, self).CheckToken(token, state)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/ecmalintrules.py", line 250, in CheckToken
indentation_errors = self._indentation.CheckToken(token, state)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/indentation.py", line 223, in CheckToken
self._PopToImpliedBlock()
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/indentation.py", line 494, in
_PopToImpliedBlock
while not self._Pop().token.metadata.is_implied_block:
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/indentation.py", line 465, in _Pop
token_info = self._stack.pop()
IndexError: pop from empty list
Ubuntu 10.04 with all updates