python - Flake8Lint ERROR: AttributeError: 'NoneType' object has no attribute 'kind' -
started sublime text 3 today , noticed flake8lint wasn't active. checked console , had long error:
flake8lint error: traceback (most recent call last): flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/lint.py", line 405, in flake8lint error: lint_warning in lint(stdin_lines, lint_settings): flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/lint.py", line 206, in lint flake8lint error: error in pep257checker().check_source(lines, ''): flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/contrib/pydocstyle.py", line 1359, in check_source flake8lint error: module = parse(stringio(source), filename) flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/contrib/pydocstyle.py", line 275, in __call__ flake8lint error: return self.parse_module() flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/contrib/pydocstyle.py", line 428, in parse_module flake8lint error: children = list(self.parse_definitions(module, all=true)) flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/contrib/pydocstyle.py", line 366, in parse_definitions flake8lint error: yield self.parse_definition(class_._nest(self.current.value)) flake8lint error: file "/users/juliansmithdeniro/library/application support/sublime text 3/packages/python flake8 lint/contrib/pydocstyle.py", line 485, in parse_definition flake8lint error: class_.__name__, name, self.current.kind, flake8lint error: attributeerror: 'nonetype' object has no attribute 'kind'
i tried disabling , re-enabling, uninstalling , reinstalling. if has knowledge pass on appreciated!
i got it. replaced
../sublime text 3/packages/python flake8 lint/contrib/pyflakes/checker.py
with: https://github.com/richardasaurus/flake8lint/blob/master/contrib/pyflakes/checker.py
courtesy of issue posted on github: https://github.com/dreadatour/flake8lint/issues/61
Comments
Post a Comment