gpt4 book ai didi

visual-studio-code - 带有 Python 扩展的 VSCode 2019 年 4 月 - "Python Extension Loading..."

转载 作者:行者123 更新时间:2023-12-02 20:01:10 25 4
gpt4 key购买 nike

我无法在 Windows 10 上全新安装 VS Code/Python 3.7.3 时使用 Python 扩展。

VS Code 状态栏连续显示消息“Python 扩展正在加载...”。

Python 安装在非标准路径中:c:\Programs\Python\Python37-32\python

已卸载 VSCode 和 python 多次并重新安装。

C:\WINDOWS\system32>which python
/c/Programs/Python/Python37-32/python

打开开发者工具时,控制台中出现以下错误。

property 'length' of undefined
at g.update (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:373818)
at g.initialize (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:381134)
at new g (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:372522)
at Function.getInstance (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:372729)
at h.getSettings (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:370264)
at b.initialize (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:83:624877)
at c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:9:93210
at c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:9:93877
at module.exports.t.activate (c:\Users\APCIT\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension.js:9:96601)
at Function._callActivateOptional (c:\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:719:166)
at Function._callActivate (c:\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:718:872)
at define._doActivateExtension.Promise.all.then.e (c:\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:718:79)

enter image description here

最佳答案

(代表问题作者发布解决方案)

好的 - 我删除了 VS Code 配置文件文件夹

'%APPDATA%\Roaming\Code

并安装了新的扩展和 miniconda,并且工作正常。

关于visual-studio-code - 带有 Python 扩展的 VSCode 2019 年 4 月 - "Python Extension Loading...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55843128/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com