-
Notifications
You must be signed in to change notification settings - Fork 30k
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
copilot-debug terminal integration breaks python venv activation #237338
Comments
copilot-debug only appends to the path, it doesn't overwrite it. If this is destructive I think there might be something up with how Python does the contribution or how the terminal applies them |
From what I can see from Python: Copilot: My guess is that, for both exensions, the "old path" ( |
We are experiencing a similar issue after the update. We are utilising
All Linux commands cease to function, leading to numerous similar errors:
Could this be looked into? Thank you. |
I think that's the case and to fix this we will need to do an initial pass of all the mutators to merge multiple append/replace mutators that target the same environment variable (mainly PATH) together. Relevant code:
|
Also I believe this method of activating Python terminals will get removed soon. There's a setting that @anthonykim1 can point you to in the meantime. |
I wonder if my issue is related but since last update my vscode keep forgot to which python interpreter i used on that specific workspace, which is quite irritating since I have to set it over and over again every time I open a project. I also use |
It looks like this works fine for things that happen at |
Steps to Reproduce:
(get-command python).Source
(or equivalent for your shell): it should point to the python interpreter from the virtual environment, because the Python extension activates the environment for you and prepends it toenv:PATH
(get-command python).Source
: this time, it should point to the global python interpreter.The issue seems to be that both Python extension and Copilot Chat seem to be trying to modify the PATH at the same time, probably overriding each others changes (even if in my case, Copilot Chat seems to always override Python).
Even worse, Copilot Chat seems to completely ignore the
"github.copilot.chat.copilotDebugCommand.enabled": false
setting, with the extension still trying to add features to the terminal.EDIT: Adding a separate issue for this, microsoft/vscode-copilot-release#3499
The text was updated successfully, but these errors were encountered: