forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Environment data
- Language Server version: n/a
- OS and version: windows 10
- Python version (& distribution if applicable, e.g. Anaconda): XXX
Code Snippet
# asdf.py (empty file)Repro Steps
- set your python interpreter to a location with a space in the path (eg.
c:\users\user\documents\folder name\.venv\Scripts\python.exe) - run both launch configs
Expected behavior
both work
Actual behavior
the following error when running "Python: doesn't work":
> c:; cd 'c:\Users\user\documents\folder name'; c:\Users\user\documents\folder name\.venv\Scripts\python.exe c:\Users\user\.vscode\extensions\ms-python.python-2023.18.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher 49801 -- -m asdf asdf
c:\Users\user\documents\folder : The term 'c:\Users\user\documents\folder' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:68
+ ... ocs no onedrive\pytest-robotframework'; c:\Users\user\documents\folder name ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (c:\Users\user\documents\folder:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
KotlinIsland and nagyPista
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team