-
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
Don't set ${workspaceFolder} in settings.json #2459
Comments
I stumbled upon this issue by way of #1664. My workspace settings (set automatically, I think): {
"python.pythonPath": "${workspaceFolder}/venv/bin/python"
} What I tried: {
"label": "runserver",
"type": "shell",
"command": "${config:python.pythonPath} manage.py runserver",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
} Output:
Changing Aside: this makes me wonder if VS Code has a facility for defining a new task |
This issue was moved to microsoft/vscode#57551 |
We don't' have anything to do directly with |
Gotcha. Thanks for bumping this up the food chain. I think one way this might still be an issue for this extension is that So, for this specific use case, it seems like automatically setting the |
I've re-oriented the issue to change what the extension does. |
Another point of reference (from the docs):
|
Just to be sure I've understood, we don't need to change |
Correct. The fact that we are injecting |
Environment data
Actual behavior
When
python.pythonPath
includes${workspaceFolder}
, tasks that use${config:python.pythonPath}
fail to start:Expected behavior
The tasks should start correctly. It's quite useful to use
${config:python.pythonPath}
in your tasks so as to use the Python version used by vscode-python to run the tasks.Steps to reproduce:
virtualenv venv
python.pythonPath
should be set to a path using${workspaceFolder}
).${config:python.pythonPath}
to run anything you want, and try to run it.Logs
Nothing relevant under default log level.
The text was updated successfully, but these errors were encountered: