formulahendry / formulahendry/vscode-code-runner
[Bug] code runner not going to the right path when running python file.
- Lingua principale
- TypeScript
- Stelle
- 2.4k
- Fork
- 351
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
hi everyone, Im kinda lost.
So i am running VSCode with wsl to get an zsh terminal in my VSCode.
But when i try running an python file with coderunner in the terminal it gives me an error :
/usr/bin/python3: can't open file '/mnt/g/Onedrive/HvA/Python/g:\\Onedrive\\HvA\\Python\\test.py': [Errno 2] No such file or directory
But when i run the python file manually it does work.

When i disable the "Run in terminal" function in code runner it does work:

But i need it to run in the terminal so i can use the input function in python which i cant do when it runs in the output window.
From what i see I am guessing that it tries to go to the wrong path so thats why it cant run, but i dont know how to fix this.
Any ideas?
OS: Win10 version 19044
VSCode: 1.71
Runner: 0.11.8
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo la configurazione segnalata: Windows 10 con VS Code 1.71, WSL che usa zsh, Code Runner 0.11.8 e un file Python nel percorso OneDrive montato. Esamina come vengono costruiti il comando Python e il percorso quando si esegue nel terminale; il lavoro è completato quando il file viene avviato dal terminale con il percorso corretto e continua ad accettare input().
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, typescript, vscode
- Ambito
- devtools, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100