Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flake8Lint stopped working randomly #61

Closed
bastula opened this issue Oct 20, 2014 · 4 comments
Closed

Flake8Lint stopped working randomly #61

bastula opened this issue Oct 20, 2014 · 4 comments

Comments

@bastula
Copy link

bastula commented Oct 20, 2014

Hello,

Flake8Lint stopped working for me suddenly. I am using Sublime Text 3 build 3065 on Windows and version 1.2.0 of Flake8Lint.

Got a traceback from the ST console with the following when saving a file:

Flake8Lint ERROR: Traceback (most recent call last):
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\lint.py", line 292, in <module>
Flake8Lint ERROR: for warning in lint(filename, settings):
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\lint.py", line 181, in lint
Flake8Lint ERROR: pyflakes.api.checkPath(filename, flakes_reporter)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\api.py", line 86, in checkPath
Flake8Lint ERROR: return check(codestr, filename, reporter)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\api.py", line 58, in check
Flake8Lint ERROR: w = checker.Checker(tree, filename)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\checker.py", line 253, in __init__
Flake8Lint ERROR: self.handleChildren(tree)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\checker.py", line 520, in handleChildren
Flake8Lint ERROR: self.handleNode(node, tree)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\checker.py", line 555, in handleNode
Flake8Lint ERROR: handler(node)
Flake8Lint ERROR: File "C:\Users\bastula\AppData\Roaming\Sublime Text 3\Packages\Python Flake8 Lint\contrib\pyflakes\checker.py", line 779, in CLASSDEF
Flake8Lint ERROR: for keywordNode in node.keywords:
Flake8Lint ERROR: AttributeError: 'ClassDef' object has no attribute 'keywords'

The package was working previously and stopped working without any indication.

@bastula
Copy link
Author

bastula commented Oct 31, 2014

Thanks! That works perfectly. Was this an upstream error in PyFlakes?

@dreadatour
Copy link
Owner

Pull request was merged. Sorry for a long answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@bastula @dreadatour and others