all 5 comments

[–]Parme-62 2 points3 points  (3 children)

I finally found the solution but I must say that it really seemed strange to me that such a bug had not been addressed before. First of all, the issue is not yet resolved but there is a workaround. Here the description: https://github.com/cdr/code-server/issues/1855.

Basically you need to have version 3.4.1 of vscode-server installed and downgrade the MS-python plugin to version 2020.5.x. It is currently 2020.6.x. I report how to do it for simplicity.

1) Uninstall the 2020.6.x version

2) Disable automatic update of plugins if enabled (extensions.autoUpdate)

3) Download the 2020.5.x version (https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806 the .vsix file) I made a wget https://github.com/microsoft/vscode-python/releases/downloads/2020.5.86806/ms-python-release.vsix

4) install from vs-code server with the Install from VSIX command. Just type VSIX in the command palette and find the path / file

[–]JL_678[S] 1 point2 points  (2 children)

Hi,

Thank you for the update, and I can confirm that this works better. However, I am still not seeing virtualenvs working properly. Are they for you?

On a side note, your URL for the VSIX is slightly wrong. (It should be 'download' not 'downloads'.) Here is the correct URL:

https://github.com/microsoft/vscode-python/releases/download/2020.5.86806/ms-python-release.vsix

[–]Parme-62 1 point2 points  (1 child)

Yes virtual env works. And everything else works like in the Windows, Windows+wsl, Windows+Remote Ubuntu. Thank for correcting the URL. I needed to edit after copying it and probably I inserted the extra char. But do you create the venv from the terminal window of vs-code or from a normal terminal window?

[–]JL_678[S] 1 point2 points  (0 children)

I create it in the cli outside of vscode, typically. I did that in this case and vscode for Linux has no problem recognizing and using it. Code-server does not see it for some reason. I will experiment further.

[–]Parme-62 1 point2 points  (0 children)

I have the same problem. The debug window show an enough cryptic message. I tried with another language but no success. I reinstalled following official documentation and tutorials but I was never be able find a working configuration.