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
venv problem with python3.6 and git-bash on win10 #939
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
Actual behavior
backward slash omit in path
Expected behavior
path name contains backward slash
Steps to reproduce:
I'm using win10 + vscode + python3.6 + venv + git-bash.
When I right click in editor and select "Run Python file in terminal", it shows the following:
$ source c:\Documents\Work_folder\venv\Scripts\activate
bash: c:DocumentsWork_foldervenvScriptsactivate: No such file or directory
All the backward slash in path disappear when the bash try to execute the file.
I try this on my other computer, it work as expected, the result is following:
$ source "c:\Documents\Work folder\venv\Scripts\activate"
I realized that the only difference is that I use "Work folder" as folder name rather than "Work_folder". It seems if the path of venv folder do not contain any space, it will omit the double quotation marks, and eventually lead to this bug.
Any one have any idea?
Logs
With out space in path name:
User@PC MINGW64 /c/Documents/Work_folder
$ source c:\Documents\Work_folder\venv\Scripts\activate
bash: c:DocumentsWork_foldervenvScriptsactivate: No such file or directory
With space in path name:
User@PC MINGW64 /c/Documents/Work folder
$ source "c:\Documents\Work folder\venv\Scripts\activate"
The text was updated successfully, but these errors were encountered: