flathub / flathub/com.visualstudio.code

When the python project is opened, the terminal cannot activate the virtual environment

Aperta
#567 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
217
Fork
82
Merge medio
1g 7h
PR unite (30g)
1

Descrizione

Good, ubuntu24+vscode 1.97 a project,
.vscode/settings.json

`"terminal.integrated.profiles.linux": {

"bash": {

"path": "bash",

"args": [

"-c",

"Source /opt/pyenv/envpy3.12/bin/activate; bash"

]

},
"python.terminal.activateEnvironment": true,`

Open the project: menu: terminal - - > the new terminal, and can't open the virtual environment, manual **source /opt/pyenv/envpy3.12/bin/activate**; Can open, where is not configured well, thank you.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the issue in the project's .vscode/settings.json with the shown terminal.integrated.profiles.linux and python.terminal.activateEnvironment settings on Ubuntu 24 with VS Code 1.97. Compare the new terminal behavior with manually sourcing /opt/pyenv/envpy3.12/bin/activate; done means the configured new terminal activates the virtual environment reliably.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
bash, python, ubuntu, vscode
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.