VSCode 中的失控绝地语言任务 [英] Runaway Jedi Language task in VSCode
问题描述
每次我关闭 VSCode(在运行一些 Python 脚本之后)时,我都会有一个 Python 任务在我的 M1 MacBook Air 上运行 90-100% CPU 的终端中徘徊,我每次都必须手动终止它.我在 PID 上运行了以下命令:
Every time I close VSCode (after running some Python script) I have a Python task that lingers in my terminal running 90-100% CPU on my M1 MacBook Air, and I have to manually kill it every time. I ran the following on the PID:
ps aux | grep <PID>
它每次都返回相同的东西...
and it returns the same thing every time...
Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python /Users/<user>/.vscode/extensions/ms-python.python-2021.2.625869727/pythonFiles/runJediLanguageServer.py
我检查了我的 VSCode 扩展,但我没有任何绝地"已安装,但也许这是其他扩展程序的一项挥之不去的任务.任何想法如何解决这个问题?
I checked my VSCode extensions, and I don't have any "Jedi" ones installed, but maybe it's a lingering task from some other extension. Any ideas how to fix this?
推荐答案
上面提供的链接 Valy 中提供的解决方案是:
The solution as provided in the link Valy provided above is to:
- 打开命令面板(查看 > 命令面板...)
- 运行首选项:打开设置 (JSON)"命令.这将在 VS 代码中打开用户设置
- 在设置文件中粘贴以下行:python.experiments.optOutFrom":[pythonJediLSP"]
- 重新加载窗口(通过关闭 VS Code 并再次打开它或从命令面板运行开发人员:重新加载窗口"命令)
参考:具有高 CPU 消耗问题的流氓 Python 进程 #15586一个>
这篇关于VSCode 中的失控绝地语言任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!