You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating Dev Container for development of extension #21387
Creating Dev Container support for development of VSCode-Python extension on Codespaces, in which consists of:
Creating Dockerfile with multiple supported versions of Python, Node.js installed
Creating devcontainer.json that will point to the Docker file and relate to customization of necessary VSCode extension(s) customization
Script(s) and prebuilds related materials
Note the base image in the Dockerfile will be the latest version of Fedora Linux instead of mcr.microsoft.com/devcontainers/python:3.7 (Debian) referenced in #20960.
After completion should be able to close: #20942 and #20960
Check to see .venv appear as one of the directories on the file explorer.
Open a new instance of terminal, make sure it is the terminal with virtual environment activated (.venv)
run "npm run test:functional"
run "npm run test:unittests"
run "npm run test"
Expected output:
Virtual environment is activated successfully after creating new instance of terminal as:
Typing "python" on virtual environment activated terminal gives access to "Python 3.7.16"
Typing "node" on virtual environment activated terminal gives access to "Node.js v16.17.1."
Expected output for step 4: One test failing ("pyenvs common utils - finding Python executables
mixed
"before all" hook in "mixed":....)
Expected output for step 5: Five tests failing (One from Interpreter Path Service and four tests from Activated Env Launch)
Expected output for step 6: Failing with ("error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Exit code: 127
End Standard tests (with errors) Failed")
changed the title [-]Creating Dev Container support for extension support [/-][+]Creating Dev Container for development of extension [/+]on Jun 8, 2023
Actually the expected output looks different for me:
first the steps should mention that you need to run npm run compile
after step 4 I get:
Python envs locator - WindowsPathEnvVarLocator
iterEnvs()
no executables found
no executables match
some executables match
120 passing (21s)
21 pending
It seems like virtual environment wasn't activated automatically (I'm assuming because of the killed terminal process). I was able to get the same result without the virtual environment and I believe this is issue with test itself since the base image is linux not windows..
However, manually activating .venv by typing "source /workspaces/vscode-python/.venv/bin/activate" should yield the same result as the pictures.
Activity
[-]Creating Dev Container support for extension support [/-][+]Creating Dev Container for development of extension [/+]dbaeumer commentedon Jun 28, 2023
Actually the expected output looks different for me:
npm run compileAnthony Kim (@anthonykim1) please decide whether this is still OK or not.
anthonykim1 commentedon Jun 28, 2023
Dirk Bäumer (@dbaeumer)
Thank you for testing!
It seems like virtual environment wasn't activated automatically (I'm assuming because of the killed terminal process). I was able to get the same result without the virtual environment and I believe this is issue with test itself since the base image is linux not windows..
However, manually activating .venv by typing "source /workspaces/vscode-python/.venv/bin/activate" should yield the same result as the pictures.
I'll look more into the issue. Thank you!