今天启动了 Sublime Text 3,发现 Flake8Lint 没有激活。我检查了控制台并出现了这个很长的错误:
Flake8Lint 错误:回溯(最后一次调用): Flake8Lint 错误:文件“/Users/juliansmithdeniro/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/lint.py”,第 405 行,在 Flake8Lint 错误:对于 lint(stdin_lines,lint_settings)中的 lint_warning: 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 错误:文件“/Users/juliansmithdeniro/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pydocstyle.py”,第 275 行,在 __call__ Flake8Lint 错误:返回 self.parse_module() Flake8Lint 错误:文件“/Users/juliansmithdeniro/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pydocstyle.py”,第 428 行,在 parse_module Flake8Lint 错误:children = list(self.parse_definitions(Module, all=True)) Flake8Lint 错误:文件“/Users/juliansmithdeniro/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pydocstyle.py”,第 366 行,在 parse_definitions Flake8Lint 错误:产生 self.parse_definition(class_._nest(self.current.value)) Flake8Lint 错误:文件“/Users/juliansmithdeniro/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pydocstyle.py”,第 485 行,在 parse_definition Flake8Lint 错误:class_.__name__,名称,self.current.kind, Flake8Lint 错误:AttributeError:“NoneType”对象没有属性“kind”
我尝试禁用并重新启用,然后卸载并重新安装。如果有人有一些知识,他们可以传递将不胜感激!