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 (将#修改为@)