Skip to content
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

[Bug] Path Handling Issue in VS Code Ruff Plugin with Spaces in Path #541

Closed
YlguYtrid opened this issue Jul 19, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@YlguYtrid
Copy link

After updating the VS Code Ruff plugin to version 2024.32.0, I encountered an issue where the plugin fails to find the Ruff binary when the path contains spaces. The error message suggests that the path is being split into two parts, causing the command to fail. This issue did not exist in the previous version of the plugin.

Error Message:

[error] Error while trying to find the Ruff binary: Error: Command failed: d:\LeetCodeSolutions\.venv\Scripts\python.exe c:\Users\Ylgu Ytrid\.vscode\extensions\charliermarsh.ruff-2024.32.0-win32-x64\bundled\tool\find_ruff_binary_path.py
C:\Users\Ylgu Ytrid\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'c:\\Users\\Ylgu': [Errno 2] No such file or directory
@MichaReiser
Copy link
Member

I'm sorry you're running into this. I think this should be fixed with astral-sh/ruff#12394 However, it seems that it was only released as a pre-release. Let me double check why this is.

@MichaReiser
Copy link
Member

I'm prepping a stable release #542

@MichaReiser
Copy link
Member

I cut a stable release. Would you mind giving it another try?

@dhruvmanila dhruvmanila added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants