formulahendry / formulahendry/vscode-code-runner

[Bug] code runner not going to the right path when running python file.

Aperta
#975 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
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.
![Screenshot 2022-09-17 162119](https://user-images.githubusercontent.com/47627728/190861847-b5027328-b8ce-42c6-b9fa-71d24a2affc9.png)

When i disable the "Run in terminal" function in code runner it does work:
![Screenshot 2022-09-17 162420](https://user-images.githubusercontent.com/47627728/190861940-8402d863-eeb9-4128-9f68-bf10ad2f8bf4.png)

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.