-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Python file is not running - Code-server: 3.10.1 #3425
Comments
It's possible this is because our Python extension is broken. Uninstalling Python and Jupyter and installing Python from Open VSX instead might work around the issue for now (the Python extension on Open VSX is bundled with Jupyter). See #3364 (comment) |
I have exactly the same issue as you. But I figured it out that it was simply a bug of ms-python extension. Just choose an old version and hopefully the problem will be solved. |
Interesting...I could not reproduce this issue locally. I'm using the Python extension v2021.5.842923320 with code-server 3.10.1 on macOS + Chrome. ScreenshotScreen.Recording.2021-05-24.at.9.47.10.AM.mov |
I have exactly the same issue, with 3.10.1 and 3.10.2. It's not just for Python execution, but also when I try to select the interpreter, I have this error:
Also, I've manually installed the latest version of Python extension (that works on 3.10.0 and downwards), with the same result. |
I have this same issue, appears to only be an issue when clicking the play button in the top right, if I type out my command as you did then it runs as expected. I am a total novice so cannot speculate as to why this issue is arising, I am only using the platform currently as a learning tool. |
I had the same issue after upgrading to 3.10.2. For me it turned out to be the version of Jupyter v2021.5.0 not working correctly. After reverting to v2021.3.0 everything started working fine again. Maybe it is worth a try. |
Heads up - I'm looking at Jupyter again and will try to land a fix soon, depending on how complex the bug is. |
Workaround reported by @marcel-hamer does not work for me (but using 3.10.0, see below):
Actually, the problem is hard to bisect (for me). I've came across a working solution with 3.10.2, but after an un-recorded upgrade path... When trying to remove everything, including user .local settings and install from scratch, I cannot get any combination of code-server and Python/Jupyter extensions that works. |
Hey there, I've pushed new versions of the extensions, can you please install PS: there appears to be an upstream bug that causes autocomplete to break (without Pylance, which we are not allowed to ship) with the LSP set to Default, so please change the language server to |
@ericct it's possible you were running into a similar bug to the one I ran into while diagnosing this - with the language server set to default, closing and reopening made autocomplete no longer work correctly. Can you update both extensions, set the LSP to Jedi, and try again? |
For me this fixed the issue. |
I've just updated the extensions with the versions mentioned and set LSP to Jedi: With interactive code or notebook, the Python environment starts correctly and I can run "Python: Select interpreter". But then with interactive code and notebook, any cell with output will fail (Chunk load error / timeout behavior) |
But everything seems to be OK so far with v3.10.2 👍 |
Hi ! Is it possible to download ms-python.python 2021.5.842923320 and ms-toolsai.jupyter 2021.6.832593372 offline ? Is where I've downloaded : https://sotnikov-link.github.io/get-vscode-extension-for-offline-install/ Is exists a simple way to download last working extensions for last code-server ? Thanks ! |
We have some docs about installing extensions manually here but you do need to be online to download them. Once they're downloaded though, you should be fine.
The latest version of code-server should work with the Python extension (just downloaded now). But the marketplace and code-server are decoupled meaning you can downgrade code-server but the marketplace will download the latest version of the extension. There is an option to download older versions of the extension but if you downgrade code-server, you'll have to test previous versions to see what works. |
Thanks for your reply ! EDIT : I have always : cannot access extensions.coder.com when I use my .vsix file to my offline install. |
Hmm...I think when extensions are installed, the .vsix files are unpacked 🤔 So you'd have to download outside of code-server. You could talk directly to the open-vsx API. Example: curl 'https://open-vsx.org/api/foam/foam-vscode' | jq '.files.download' | xargs curl --compressed -L -o foam.vsix And then you'd have the .vsix file and you could put it on a USB drive or something to transfer to your offline env. |
Thanks! It's difficult to manage an offline env ^^ |
Ah shoot...that's right. Hmm.. I am not sure how to get the latest 😅 cc @oxy or @code-asher - maybe they can help.
I can imagine! Props to you lol |
Ah, right - You first need to install What happens is that when you install Python, Jupyter is listed as a mandatory dependency, and by default VSCode will try and resolve that against the default gallery. But since the dependency isn't the other way around, installing Jupyter first and Python second should work! |
Okay all rigthts ! I've triied this : # code-server --install-extension Téléchargements/jupyter.VSIXPackage
Installing extensions...
[2021-06-03T19:50:50.534Z] error vscode getaddrinfo EAI_AGAIN extensions.coder.com
[2021-06-03T19:50:50.534Z] error vscode Error: getaddrinfo EAI_AGAIN extensions.coder.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) Why code-server hits coder.com ? When online : Installing extensions...
[2021-06-03T19:54:46.793Z] error vscode Unexpected end of JSON input:
[2021-06-03T19:54:46.796Z] error vscode SyntaxError: Unexpected end of JSON input:
at JSON.parse (<anonymous>)
at D (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:24:74905)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async x.queryGallery (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:10711)
at async x.query (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:9654)
at async x.getExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:7344)
at async /usr/lib/code-server/lib/vscode/out/vs/server/entry.js:19:670
at async Promise.all (index 0)
at async O.getGalleryExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:19:639)
at async O.installExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:18:26265)
at async /usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:90861
at async M (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:94206)
at async process.<anonymous> (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:103823)
Maybe, an error while downloading ? Thanks for your help, really ! |
@Rwanito Could you create another issue for this actually? The current issue (the Python extension not working) was fixed, but installing extensions offline is a separate issue that we'd have to address. |
OS/Web Information
code-server --version
: 3.10.1 421237f LatestSteps to Reproduce
Expected
It should run my python file.
Actual
'python.execlnTerminal'
not found'python.execlnTerminal-icon'
not foundLogs
backend.log
Screenshot
Notes
This issue can be reproduced in VS Code: Yes
The text was updated successfully, but these errors were encountered: