今天启动了Sublime Text 3,并注意到Flake8Lint没有处于活动状态。我检查了控制台,并遇到了以下长时间错误:
Flake8Lint错误:追溯(最近一次通话):
Flake8Lint错误:文件“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / lint.py”,第405行,在
Flake8Lint错误:对于lint中的lint_warning(stdin_lines,lint_settings):
Flake8Lint错误:文件“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / lint.py”,行206,位于lint中
Flake8Lint错误:PEP257Checker()中的错误。check_source(lines,''):
Flake8Lint错误:文件“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / contrib / pydocstyle.py”,行1359,在check_source中
Flake8Lint错误:模块=解析(StringIO(源),文件名)
Flake8Lint错误:文件__call__中的行“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / contrib / pydocstyle.py”,第275行
Flake8Lint错误:返回self.parse_module()
Flake8Lint错误:在parse_module中,第428行“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / contrib / pydocstyle.py”
Flake8Lint错误:子代= list(self.parse_definitions(Module,all = True))
Flake8Lint错误:在parse_definitions中,文件366行“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / contrib / pydocstyle.py”
Flake8Lint错误:产生self.parse_definition(class _._ nest(self.current.value))
Flake8Lint错误:文件pars_definition中的第485行,文件“ / Users / juliansmithdeniro / Library / Application Support / Sublime Text 3 / Packages / Python Flake8 Lint / contrib / pydocstyle.py”
Flake8Lint错误:class _.__ name__,名称,self.current.kind,
Flake8Lint错误:AttributeError:'NoneType'对象没有属性'kind'
我尝试禁用并重新启用,然后卸载并重新安装。如果有人知道他们可以继续下去,将不胜感激!
最佳答案
我知道了。刚更换../Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py
与:
https://github.com/richardasaurus/Flake8Lint/blob/master/contrib/pyflakes/checker.py
礼貌发布在GitHub上:https://github.com/dreadatour/Flake8Lint/issues/61
关于python - Flake8Lint错误:AttributeError:'NoneType'对象没有属性'kind',我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45762259/