微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

VS代码未强调错误

如何解决VS代码未强调错误

问题:VS Code不能像以前那样强调错误(带有红色波浪下划线)。

我和我的朋友(macOS和Windows)存在问题

林特:mypy

settings.json:

{
"python.pythonPath": "/Users/username/.pyenv/versions/3.8.5/bin/python","python.linting.pylintEnabled": false,"python.linting.mypyEnabled": true,"python.linting.enabled": true
}

运行脚本后,VS将在发现的错误下划线,但仍不会在任何新写入的错误下划线

在脚本中键入任何内容时,OUTPUT:python会显示以下内容(或类似内容),我无法理解,并且不确定其是否相关:

Error 2020-11-09 20:20:07: stderr jediProxy Error (stderr) /Users/username/.vscode/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
  jedi.api.names(

Error 2020-11-09 20:20:27: stderr jediProxy Error (stderr) /Users/username/.vscode/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:592: DeprecationWarning: Providing the line is Now done in the functions themselves like `Script(...).complete(line,column)`
  script = jedi.Script(
/Users/username/.vscode/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:592: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead,which means Script(project=Project(dir,sys_path=sys_path)) instead.
  script = jedi.Script(

Error 2020-11-09 20:20:27: stderr jediProxy Error (stderr) /Users/username/.vscode/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:105: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_signatures instead.
  call_signatures = script.call_signatures()
/Users/username/.vscode/extensions/ms-python.python-2020.10.332292344/pythonFiles/completion.py:230: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).complete instead.
  completions = script.completions()

感谢您的帮助!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。