VS 代码不会检查我的代码,但内部构建会

VS code doesn't lint my code, but the insider build does

问题:

我将 VS Code 更新到版本 1.21.0 后,Pylint Linter 无法正常工作。

我在 VS Code 的问题选项卡中没有收到 linting 错误。

我故意犯了一些错误来确认这种行为。

预期结果:

当我出现样式错误时,我希望我的 linter 像以前一样通知我。

我尝试了什么?

派林特

VS 代码

一般

搜索

问题

我的 VS Code 用户设置:

{
"workbench.startupEditor": "newUntitledFile",
"git.ignoreMissingGitWarning": true,
"workbench.colorTheme": "Monokai",
"[python]": {

},
"python.linting.pylintUseMinimalCheckers": false,
"explorer.sortOrder": "type",
"editor.rulers": [
    79
],
"files.trimTrailingWhitespace": true,
"terminal.integrated.shell.windows": "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe",
}

根据您收到的错误,您的扩展安装已损坏。请卸载扩展并重新安装,如果失败,请进入扩展目录并删除 python 扩展文件夹(使用命令面板中的命令打开扩展文件夹)。

这应该可以解决问题。