Repository navigation
Error when user folder name contains '&' #18722
Copy link
Copy link
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
Issue Type: Bug
Behaviour
Expected vs. Actual
[ERROR 2022-2-21 10:25:37.522]: Error: Command failed: "C:\Program Files\Python39\python.exe" c:\Users\A.B.CCC&DD~YYY\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\get_output_via_markers.py c:\Users\A.B.CCC&DD~YYY\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\interpreterInfo.py
C:\Program Files\Python39\python.exe: can't open file 'c:\Users\A.B.CCC': [Errno 2] No such file or directory
ϵͳ�Ҳ���ָ����·����
ϵͳ�Ҳ���ָ����·����
Steps to reproduce:
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.0, 3.10.0
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): None
- Value of the
python.languageServersetting: Default
User Settings
defaultLS: {"defaultLSType":"Pylance"}
downloadLanguageServer: true
envFile: "<placeholder>"
venvPath: "<placeholder>"
venvFolders: "<placeholder>"
condaPath: "<placeholder>"
pipenvPath: "<placeholder>"
poetryPath: "<placeholder>"
languageServer: "Pylance"
linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"
sortImports
• args: "<placeholder>"
• path: "<placeholder>"
formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"
testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true
terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"
experiments
• enabled: true
• optInto: []
• optOutFrom: []
insidersChannel: "off"
tensorBoard
• logDirectory: "<placeholder>"
Extension version: 2022.2.1924087327
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Activity
karrtikr commentedon Apr 4, 2022
tccrabyoguy (@tccrabyoguy) Try using the pre-release version of the extension which has the fix:
tccrabyoguy commentedon Apr 6, 2022
Hi, Kartik Raj (@karrtikr)
Thanks for your working!
I had tried the pre-release version of the extension.
But it still not working properly.
Please check the log below.
BTW I found another problem.
As you can see, the log date is incorrect.
The date is one month ago, and the time is correct.
karrtikr commentedon Apr 6, 2022
Sorry Pre-release version with the fix hasn't been released yet. Can you please try to install https://github.com/microsoft/vscode-python/suites/5947251954/artifacts/203903588. You can use
Extension: Install from VSIXcommand to install it. Feel free to give it a try and let me know if it's still a issue.tccrabyoguy commentedon Apr 6, 2022
Hi, Kartik Raj (@karrtikr)
I installed the extension from vsix and tried again. But still not working.
Please check the log, thank you very much!
karrtikr commentedon Apr 6, 2022
Thanks for letting us know! Can you please try to install https://github.com/microsoft/vscode-python/suites/5958529344/artifacts/204630783 and see if it helps?
tccrabyoguy commentedon Apr 7, 2022
Hi, Kartik Raj (@karrtikr)
I can run the python, thanks for your help, have a nice day!