-
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
python workspaceFolder bug #691
Comments
@zzylog7 please could you go into your work space settings and let me know the exact value of the |
This is my workspace settings.json nowadays :
"python.pythonPath": "D:\\project\\zzy\\newAnt\\env\\Scripts\\python.exe"
and before :
"python.pythonPath": "${workspaceFolder}/env/Scripts/python.exe"
I use the python 3.6.4 x64 in my work space and develop in python venv
environment
<http://www.baidu.com/link?url=UdvjtP2aTql2_B9-pgfk7mX38GDIk0iTIOZDNcBPZrjvdJw_YqDmR5zX6FDQXctBuohA2S14jg85rcJKINhe3I11-omIl4bmmjyM16vEhRK>
.
Hope it is useful to you
2018-02-02 21:46 GMT+08:00 Don Jayamanne <[email protected]>:
… @zzylog7 <https://github.com/zzylog7> please could you go into your work
space settings and let me know the exact value of the "python.pythonPath"
setting?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQFJ6CsFWBzhhCRhugfzpNG_200pTiEGks5tQxHSgaJpZM4R21-w>
.
|
@zzylog7 please could you test this on the latest stable version of vscode and the latest version of the extension (not insiders build if vscode). |
I'm hitting this too, right after I upgraded to the latest VSCode 1.20.0. Previously I had vscode-python 2018.1.0. This issue did not happen with vscode-python 2018.1.0 and the previous version of VSCode. My previous pythonPath was: "${workspaceRoot}/.virtualenv/bin/python". I am using .virtualenv as a symlink to a virtualenv in my user dir, managed by virtualenvwrapper. But even if I don't use a symlink, and have the entire virtualenv in my workspace folder with the python path pointing to it, it doesn't work. Note: I'm not sure if this is related, but in at least VSCode 1.20.0, it looks like workspaceRoot support has been deprecated in favor of workspaceFolder. I didn't even realize that the workspaceRoot env var was deprecated. Support hasn't been dropped though, I can still use workspaceRoot in launch.json. But even if I make pythonPath = "${workspaceFolder}/.virtualenv/bin/python" that doesn't work. |
I got this bug after I upgraded to vscode 1.20.0, and my pythonPath is "${workspaceFolder}\venv\Scripts\python.exe". If I change pythonPath to ".\venv\Scripts\python.exe" then everything works fine. |
I'm having the same issue as well. This might be related to the multi-root workspace; when I directly open the project, the setting |
Seeing this as well with I have my As mentioned above changing to a fully qualified path or relative path, No symlinks involved on my end. |
@Jasper0819X Thanks for the workaround. I'm new to Python and this issue was making it hard for me to get started. |
@YMIndustries @rhummer @ksesong @Jasper0819X @adiun @zzylog7 @alexandrudima I've created a new issue microsoft/vscode#43303 for this in the VS Code repo. |
@zzylog7 @ksesong, @adiun, @joshsleeper @MetaFight @joshsleeper @adiun @Jasper0819X @rhummer The fix will be in the next release (end of this month). Until then please use the Insiders build of this extension as it contains the fix (Note: I'm not referring to VS Code Insiders). The instructions to download and install this insiders build of the extension can be found here, under Insiders Buid |
@DonJayamanne excellent! Thank you very much :) |
@DonJayamanne thanks, it worked! |
${config:python.pythonPath} seems to be NOT working inside the tasks.json file for building the task. Though ${config:python.pythonPath} seems to be working fine with the launch.json for the debugger. |
@saamkhya |
Moved from microsoft/vscode#42787
From @zzylog7
Issue Type
Bug
Description
python debug Error: spawn ${workspaceFolder}\env\Scripts\python.exe ENOENT, "env" is python venv directory , I modify .vscode/setting.json >> python.pythonPath to a full dir and it worked!
VS Code Info
VS Code version: Code - Insiders 1.20.0-insider (519088548b09221e9d590d2e10e14ec6d27ac79a, 2018-02-01T14:21:12.284Z)
OS version: Windows_NT x64 10.0.16299
System Info
Extensions (14)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: