We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"~" in folder names must be left as is.
Note the first "" in "comapple~CloudDocs" folder name got replaced with "/Users/johndoe".
Did running it from the command line work? No
The issue is gone when downgrading Pylint to "v2023.11.13481007 (pre-release)".
The text was updated successfully, but these errors were encountered:
We experience a similar problem where tilde is replaced to home directory without any way to escape it.
Sorry, something went wrong.
Could we instead rely only on ${userHome} instead of replacing the tilde character? It's a predefined variable in vscode: https://code.visualstudio.com/docs/editor/variables-reference
${userHome}
~
@kysucix @QuantumChronoton Can you try this build and see if it helps? https://github.com/microsoft/vscode-pylint/actions/runs/11674148957/artifacts/2143837620
You will have to extract the zip file and use "Install from VSIX" command to install it.
@karthiknadig It worked. Now I see correct paths in the output and Pylint functions as expected.
Yes it works thanks!
Perfect, I will merge the fix, it should be available in the pre-release soon.
karthiknadig
Successfully merging a pull request may close this issue.
Diagnostic Data
Behaviour
Expected Behavior
"~" in folder names must be left as is.
Actual Behavior
The first occurrence of the "~" symbol in folder name gets replaced with the /user/, corrupting the path, which leads to the following error:
[error] Server: Start failed: Launching server using command /Users/johndoe/Library/Mobile Documents/com/Users/johndoe apple
CloudDocs/ProjectFolder/.venv/bin/python failed. Error: spawn /Users/johndoe/Library/Mobile Documents/com/Users/johndoe appleCloudDocs/ProjectFolder/.venv/bin/python ENOENTNote the first "
" in "comapple~CloudDocs" folder name got replaced with "/Users/johndoe".Reproduction Steps:
Logs:
Click here for detailed logs
2024-11-01 15:38:27.934 [info] Name: Pylint 2024-11-01 15:38:27.934 [info] Module: pylint 2024-11-01 15:38:27.934 [info] Python extension loading 2024-11-01 15:38:27.934 [info] Waiting for interpreter from Python extension. 2024-11-01 15:38:27.934 [info] No interpreter found from setting pylint.interpreter 2024-11-01 15:38:27.934 [info] Getting interpreter from ms-python.python extension for workspace /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder 2024-11-01 15:38:27.934 [info] Python extension loaded 2024-11-01 15:38:27.934 [info] Interpreter from ms-python.python extension for /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder: /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder/.venv/bin/python 2024-11-01 15:38:27.934 [info] No interpreter found from setting pylint.interpreter 2024-11-01 15:38:27.934 [info] Getting interpreter from ms-python.python extension for workspace /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder 2024-11-01 15:38:27.934 [info] Interpreter from ms-python.python extension for /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder: /Users/johndoe/Library/Mobile Documents/com~apple~CloudDocs/ProjectFolder/.venv/bin/python 2024-11-01 15:38:27.934 [info] Server run command: /Users/johndoe/Library/Mobile Documents/com/Users/johndoeapple~CloudDocs/ProjectFolder/.venv/bin/python /Users/johndoe/.vscode/extensions/ms-python.pylint-2024.1.12811009/bundled/tool/lsp_server.py 2024-11-01 15:38:27.934 [info] Server: Start requested. 2024-11-01 15:38:27.934 [info] [Error - 3:38:27 PM] Pylint client: couldn't create connection to server. 2024-11-01 15:38:27.934 [info] Launching server using command /Users/johndoe/Library/Mobile Documents/com/Users/johndoeapple~CloudDocs/ProjectFolder/.venv/bin/python failed. Error: spawn /Users/johndoe/Library/Mobile Documents/com/Users/johndoeapple~CloudDocs/ProjectFolder/.venv/bin/python ENOENT 2024-11-01 15:38:27.934 [error] Server: Start failed: Launching server using command /Users/johndoe/Library/Mobile Documents/com/Users/johndoeapple~CloudDocs/ProjectFolder/.venv/bin/python failed. Error: spawn /Users/johndoe/Library/Mobile Documents/com/Users/johndoeapple~CloudDocs/ProjectFolder/.venv/bin/python ENOENTOutcome When Attempting Debugging Steps:
Did running it from the command line work? No
Extra Details
The issue is gone when downgrading Pylint to "v2023.11.13481007 (pre-release)".
The text was updated successfully, but these errors were encountered: