microsoft / microsoft/simplechat

devContainer setup causes Python virtual environment recognition failure

Open
#789 0 comments 0 reactions 1 assignee Claimed by @SteveCInVA View on GitHub
bug python
Dominant language
Python
Stars
152
Forks
116
Avg merge
7h 7m
Merged PRs (30d)
122

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.