IndexError: pop from empty list whlie running fixjsstyle

39 views
Skip to first unread message

Дмитрий Петров

unread,
Sep 2, 2010, 6:52:15 AM9/2/10
to Closure Linter Discuss
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

Andy Perelson

unread,
Sep 3, 2010, 8:40:50 PM9/3/10
to closure-lin...@googlegroups.com
I think this may be a new issue that we don't have any other reports for. If you can provide a code snippet that reproduces this problem we can look into it. Feel free to file issues like this against the closure linter at http://code.google.com/p/closure-linter/issues/list, where you can even attach files that would reproduce this issue.

Thank you,

Andy
Reply all
Reply to author
Forward
0 new messages