Skip to content

copilot-debug terminal integration breaks python venv activation #237338

@dnabb

Description

@dnabb
  • Copilot Chat Extension Version: 0.23.2
  • VS Code Version: 1.96.2
  • OS Version: Windows 11
  • Logs:

Steps to Reproduce:

  1. Start with a clean VSCode profile
  2. Install the python extension
  3. Create a virtual environment and set it as the python interpreter
  4. Open a new terminal and run (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 to env:PATH
  5. Now, install Copilot Chat and restart VSCode
  6. Open a new terminal and re-run (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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugterminal-env-collectionIssues related to the EnvironmentVariableCollection API

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions