-
Notifications
You must be signed in to change notification settings - Fork 184
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
[codespaces] Python virtual environment setup #922
Comments
@philliphoff do we see this extension issue on VSCode? |
This reproduces on devcontainer and Codespaces. The root cause seems to be that VSCode server is creating a settings.json in {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
} which |
@weikanglim @danieljurek any updates on the investigation? Is this a blocker for Codespaces release in Jan? |
@weikanglim , have you tried overriding the |
@rajeshkamal5050 This was fixed in devcontainers/features#258. Verifying before closing out. |
Verified working as expected. Closing. |
When launching Python codespaces alerts come up before build... What's the earliest time we could/should run the vscode
azd restore
command? Python projects should also communicate with the Python extension, if possible, and indicate the appropriate interpreter (this could get interesting with multiple python projects)Example error message in first run:
Example error message in first debugging run:
To fix:
Python: Select Interpreter
... select the one created in therestore
stepThe text was updated successfully, but these errors were encountered: