-
Notifications
You must be signed in to change notification settings - Fork 1.2k
${workspaceFolder}
& .
not being resolved in settings in some cases
#11671
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
${workspaceFolder}
& .
not being resolved in testing settings${workspaceFolder}
& .
not being resolved in settings in some cases
For this particular case, we use
vscode-python/src/client/common/configSettings.ts Lines 641 to 654 in 620b614
We can change this line if (pathToCheck.indexOf(path.sep) === -1) { to if (pathToCheck.indexOf('\\') === -1 || pathToCheck.indexOf('/') === -1) { |
The real problem here is command line escaping, or lack thereof. Briefly, in cmd.exe, for historical reasons, the following is valid:
and is the same as:
There are many convoluted rules there that affect this behavior, and it's not really worthwhile trying to figure them all out. We should just avoid APIs like So, basically, always either And |
Tried this and it is working for me on the rewrite, please reopen if this is not the case and anyone thinks the problem still exists. Thanks |
Uh oh!
There was an error while loading. Please reload this page.
Resolving
${workspaceFolder}
Having
instead of
doesn't work.
Resolving
.
This problem arises when using forward slashes in path.
"python.pythonPath": "./.venv/Scripts/python.exe"
doesn't work but"python.pythonPath": ".\\.venv\\Scripts\\python.exe"
does.doesn't search for tests in
./test/src
directoryThe text was updated successfully, but these errors were encountered: