Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode远程连接linux服务器出错:Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details. #580

Open
asilverlight opened this issue Oct 19, 2024 · 0 comments

Comments

@asilverlight
Copy link

Product and Version [VSCode]:1.94
IntelliCode Extension Version: 1.3.1
Target Platform or Language [Python]:3.9.19
Steps to Reproduce / Scenario:3.9.19
我之前远程连接的linux服务器因为cache过满而连不上去,清除cache缓存后能够成功连接,但是编译出了如下问题:
Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.
在连接上服务器后,并没有立即跳转到我的初始终端,而是只显示VS Code远程连接Linux服务器时的输出日志信息:

d6ebabf91aff: running
Script executing under PID: 3532601
Found existing installation at /data00/.vscode_server/.vscode-server...
Starting VS Code CLI...
printenv:
    LANGUAGE=zh_CN:zh
    USER=douzc
    SSH_CLIENT=10.46.173.125 10889 5102
    XDG_SESSION_TYPE=tty
    SHLVL=0
    MOTD_SHOWN=pam
    HOME=/home/douzc
    DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus
    LOGNAME=douzc
    _=/usr/bin/sh
    XDG_SESSION_CLASS=user
    XDG_SESSION_ID=174979
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    XDG_RUNTIME_DIR=/run/user/1012
    LANG=zh_CN.UTF-8
    SHELL=/bin/bash
    PWD=/home/douzc
    SSH_CONNECTION=10.46.173.125 10889 183.174.229.163 5102
Removing old logfile at /data00/.vscode_server/.vscode-server/.cli.384ff7382de624fb94dbaf6da11977bba1ecd427.log
Spawned remote CLI: 3532619
Waiting for server log...
Waiting for server log...
d6ebabf91aff: start
listeningOn==127.0.0.1:35949==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1012==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==74==
execServerToken==30dda280-127c-4491-97c1-682dacaf5689==
platformDownloadPath==cli-alpine-x64==
d6ebabf91aff: end

之后,右下角报错:

Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.

并且左下角一直显示“正在重新激活终端”

我的python输出为:

2024-10-19 13:20:00.103 [error] sendStartupTelemetry() failed. [l [Error]: Failed to resolve env "/data00/yifei_chen/anaconda3/envs/fei/bin/python"
	at ae (/data00/.vscode_server/.vscode-server/extensions/ms-python.python-2024.16.1-linux-x64/out/client/extension.js:2:2051686)
	at oe (/data00/.vscode_server/.vscode-server/extensions/ms-python.python-2024.16.1-linux-x64/out/client/extension.js:2:2049646)
	at Immediate.<anonymous> (/data00/.vscode_server/.vscode-server/extensions/ms-python.python-2024.16.1-linux-x64/out/client/extension.js:2:2045940)
	at process.processImmediate (node:internal/timers:483:21)] {
  code: -4,
  data: undefined
}

我的vs intellicode输出为:

Acquiring model
Acquiring model 'intellisense-members-lstm-pylance' for python
Acquiring model 'intellisense-members-lstm-pylance' for python
vs-intellicode-python was passed a model: {}.
Found bundled model for python
Activating Python extension
Error while activating Python: {"code":-4}

我的代码能够正常运行,但是完全不高亮。我不知道我重连服务器后,我的intellicode出了什么问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant