简体   繁体   English

当我运行格式时,Visual Studio 代码 python 扩展失败

[英]Visual studio code python extension fails when I run format

I keep getting this error when I try to format in vscode:当我尝试在 vscode 中格式化时,我不断收到此错误:

Traceback: ...
...pyvsc-run-isolated.py", line 30, in <module>

How do I solve it?我该如何解决?

I solved this by downgrading the python extension in vscode to v2020.1.58038 .我通过将 vscode 中的 python 扩展降级为v2020.1.58038解决了这个问题。 Check out this post to see how that can be done: vs code - rollback extension/install specific extension version查看这篇文章以了解如何做到这一点: vs code - 回滚扩展/安装特定扩展版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM