Skip to content
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

VSCode starts python with source file argument missing first character #245098

Closed
endlessterror opened this issue Mar 31, 2025 · 2 comments
Closed
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@endlessterror
Copy link

endlessterror commented Mar 31, 2025

Does this issue occur when all extensions are disabled?: Yes

Tried to report this from Help -> Report issue but does not work

  • VS Code Version: 1.98.2 (user setup)
  • OS Version: Windows 10 Pro 22H2

Steps to Reproduce:

  1. Try to run a python program from my Google Drive Folder.
  2. An error 02 (No such file or directory is received)

More info: I've got some Python tutorials on my Google Drive, on my Windows 10 Pro rig. Locale is Greek.

I'm editing some python code under path:
PS C:\Users\username\Το Drive μου\Εκπαιδευτής\ΙΕΚ\Γλώσσα προγραμμaτισμού Python - ΔΙΕΚ 2025Α\Εργασία εξαμήνου

VSCode tries to start python.exe calling it with an argument that removes the first Greek characters from each directory sub-path, for example:

PS C:\Users\username\Το Drive μου\Εκπαιδευτής\ΙΕΚ\Γλώσσα προγραμμaτισμού Python - ΔΙΕΚ 2025Α\Εργασία εξαμήνου> & C:/Users/username/AppData/Local/Programs/Python/Python313/python.exe "c:/Users/username/ο Drive μου/κπαιδευτής//λώσσα προγραμμaτισμού Python - 2025/ργασία εξαμήνου/νότητα 05_1 - λύση.py"
C:\Users\username\AppData\Local\Programs\Python\Python313\python.exe: can't open file 'c:\Users\username\ο Drive μου\κπαιδευτής\λώσσα προγραμμaτισμού Python - 2025\ργασία εξαμήνου\νότητα 05_1 - λύση.py': [Errno 2] No such file or directory

For some reason these characters are replaced/removed, however the Powershell prompt within VSCode shows these characters just fine.

EDIT: Tried this on a test folder C:\Ελληνικά (Ε is Greek capital epsilon). Failed the same way, so it's not Google Drive related.

@vs-code-engineering vs-code-engineering bot added *english-please Issue not using English and removed *english-please Issue not using English labels Mar 31, 2025
@roblourens
Copy link
Member

I tried this with the same path on Windows, and I can't repro. Can you file on https://github.com/microsoft/vscode-python-debugger?

/extPython

Copy link

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

@vs-code-engineering vs-code-engineering bot added the *caused-by-extension Issue identified to be caused by an extension label Mar 31, 2025
@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

2 participants