formulahendry / formulahendry/vscode-code-runner

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

Open
#975 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.