forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Folders that start with a '$' #23135
Labels
triage-needed
Needs assignment to the proper sub-team
Comments
github-actions
bot
added
the
triage-needed
Needs assignment to the proper sub-team
label
Mar 26, 2024
@jimclay75051 What do you use as the terminal shell in Spyder? You can change your default terminal to be |
github-actions
bot
added
the
info-needed
Issue requires more information from poster
label
Mar 27, 2024
I believe you are correct. I did some experiment using a folder with ‘$’ in the front. Using Powershell, VSC would not work. But change it CMD and it does.
Thank you.
From: Karthik Nadig ***@***.***>
Sent: Tuesday, March 26, 2024 7:45 PM
To: microsoft/vscode-python ***@***.***>
Cc: jimclay75051 ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-python] Folders that start with a '$' (Issue #23135)
@jimclay75051<https://github.com/jimclay75051> What do you use as the terminal shell in Spyder? You can change your default terminal to be cmd. When you use powershell the $ are variables for that shell. You can do this from the terminal tab:
image.png (view on web)<https://github.com/microsoft/vscode-python/assets/3840081/cf4445ba-d876-47b2-b9ef-0f3b410cb69b>
Select Command Prompt:
image.png (view on web)<https://github.com/microsoft/vscode-python/assets/3840081/fbbe257d-b614-4b71-bb7e-6d63ce996db5>
—
Reply to this email directly, view it on GitHub<#23135 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHFDZMUVYAN5INYTKTMEG43Y2IJBTAVCNFSM6AAAAABFJR7BUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRG4ZDAMBQGA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
github-actions
bot
removed
the
info-needed
Issue requires more information from poster
label
Mar 27, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I will often give a working directory a name that starts with '$'. Such as '$Python-Programming'. This it to make the folder appear at the top of file explorer where it is easily found.
I've discovered that Python in Visual Studio Code does not like that. I'm assuming this is bug. Spyder has no problem running files in such a folder. But VSC gives me a '[Errno 2] No such file or directory'.
Just for clarity, when I remove the '$' from the folder name, the python files will run as expected
Here's the whole thing:
`PS C:$Python-Programming> cd c:/$Python-Programming
cd : Cannot find path 'C:-Programming' because it does not exist.
At line:1 char:1
PS C:$Python-Programming> & c:/Users/jimcl/anaconda3/python.exe c:/$Python-Programming/Untitled-1.py
C:\Users\jimcl\anaconda3\python.exe: can't open file 'c:\-Programming\Untitled-1.py': [Errno 2] No such file or directory
PS C:$Python-Programming>
PS C:$Python-Programming> `
The text was updated successfully, but these errors were encountered: