Skip to content

devContainer setup causes Python virtual environment recognition failure #789

@SteveCInVA

Description

@SteveCInVA

When building the SimpleChat devContainer, the Python virtual environment is being created before Visual Studio Code is configured. This prevents the Python extension from recognizing the virtual environment and causes post deployment scripts to fail.

Steps to reproduce:

  1. Start building the devContainer for SimpleChat.
  2. Observe that the Python venv is created prior to VS Code configuration.
  3. Notice the Python extension does not detect the venv.
  4. Post deployment scripts do not execute successfully.

Expected behavior:

  • Python extension should recognize the venv automatically.
  • Post deployment scripts should execute without failures.

Actual behavior:

  • Venv is not recognized by the Python extension.
  • Post deployment scripts fail to run.

Suggested fix:
Configure the devContainer build so that Visual Studio Code is fully set up before creating the Python virtual environment.

Environment:

  • SimpleChat devContainer
  • Python
  • Visual Studio Code

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonPull requests that update python code

Type

Projects

Status

Pending Evaluation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions