-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pythonPath not respected in remote container #7813
Comments
yes, same issue here. workplace settings takes precedence over devcontainer's settings.json |
Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will be triaging it as soon as we can. |
@sandy081 The |
|
Is there at least temporary workaround for this issue? |
looking for a workaround here. any suggestion please ? currently every time i switch between local and container development, interpreter path gets messed up. |
@jahan01 If you use the latest version of the extension ( |
@karthiknadig i think we are talking different things here, i don't have issues with list of interpreters vscode detects. When switching from local to remote container development However enabling |
@jahan01 Try |
@karthiknadig I had already tried that, it says
|
@jahan01 @karthiknadig We can only use |
For others running into this issue: This is still an experimental feature so you may run into bugs. You can opt into this by adding |
@karthiknadig is the below setting still valid in // Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/zsh",
"python.pythonPath": "/usr/local/bin/python", |
@karthiknadig I seem to have the container overwriting the Do you know what I should do about that? You mentioned |
You can do it using But if you have manually selected an interpreter in the dev container, that setting will not have any effect. You can try using |
Ah I see, we'll try to have a look as soon as possible, expect by end of next week. |
Hi so I tried it out, but the behavior does not seem to be just specific to Can you name any settings for which devcontainer are prioritized over workspace? ( |
I see what you're saying, so maybe it's better to put the Do you know why the extension is writing |
Yes.
If no workspace is opened, I'm closing this issue for the above reasons. |
Mirroring microsoft/vscode-remote-release#1579
Environment data
Expected behaviour
In "Remote Container" mode, I expect VSCode to respect the
pythonPath
setting and use the interpreter from the virtualenv.Actual behaviour
The path is not respected, and only the system-installed interpreters of the docker container are shown in the VSCode interpreter selection drop-down.
Steps to reproduce:
settings.json
pointpythonPath
to the python interpreter in the virtualenv (i.e. something likeC:\Users\username\.virtualenvs\SomeProject-09hncfd\bin\python.exe
my-image:latest
), in this image create a virtualenv based on the project's Pipfile using pipenv. Assume the virtualenv (in the image) is created at/root/.local/share/virtualenvs/SomeProject-1298hf
The text was updated successfully, but these errors were encountered: