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

Error while trying to find the Ruff binary - VS Code Ruff Extension #12394

Closed
DG119 opened this issue Jul 18, 2024 · 6 comments · Fixed by astral-sh/ruff-vscode#539
Closed

Error while trying to find the Ruff binary - VS Code Ruff Extension #12394

DG119 opened this issue Jul 18, 2024 · 6 comments · Fixed by astral-sh/ruff-vscode#539
Assignees
Labels
bug Something isn't working server Related to the LSP server

Comments

@DG119
Copy link

DG119 commented Jul 18, 2024

  • The current Ruff settings: all default with Lint disabled
  • The current Ruff version: 2024.32.0
    In the newly released version 2024.32.0 for Ruff VS Code Extesion, the following error is logged on VS Code on start up:
2024-07-18 21:32:04.253 [info] Name: Ruff
2024-07-18 21:32:04.254 [info] Module: ruff
2024-07-18 21:32:04.254 [info] Python extension loading
2024-07-18 21:32:04.254 [info] Waiting for interpreter from python extension.
2024-07-18 21:32:04.421 [info] Python extension loaded
2024-07-18 21:33:41.151 [error] Error while trying to find the Ruff binary: Error: Command failed: c:\Users\D Censored\Desktop\Python\Xreply\Scripts\python.exe c:\Users\D Censored\.vscode\extensions\charliermarsh.ruff-2024.32.0-win32-x64\bundled\tool\find_ruff_binary_path.py
'c:\Users\D' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

2024-07-18 21:33:41.211 [info] Falling back to bundled executable: c:\Users\D Censored\.vscode\extensions\charliermarsh.ruff-2024.32.0-win32-x64\bundled\libs\bin\ruff.exe

There is a space in my user name, which I suspect is the reason for this error. This did not happen in the previous version. I think some thing broke it in version 2024.32.0
2024-07-18 214632

@charliermarsh
Copy link
Member

I'll look into it...

@charliermarsh
Copy link
Member

Okay yeah I see the problem. Will fix!

@charliermarsh charliermarsh self-assigned this Jul 18, 2024
@charliermarsh charliermarsh added bug Something isn't working server Related to the LSP server labels Jul 18, 2024
@charliermarsh
Copy link
Member

I'll ship a fix for this tonight, apologies.

@charliermarsh
Copy link
Member

Ok, I actually did fix this (astral-sh/ruff-vscode#539), but Azure is down so we can't ship new versions of the extension. Sorry! Will go out tomorrow.

@MichaReiser
Copy link
Member

I just published the release. @DG119 could you update your extension and give it another try?

@DG119
Copy link
Author

DG119 commented Jul 19, 2024

I just published the release. @DG119 could you update your extension and give it another try?

I can confirm it's working now after installing the latest pre-release. Thank you all for the fast action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Related to the LSP server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants