-
Notifications
You must be signed in to change notification settings - Fork 56
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
Starting ruff server fails #483
Comments
i downgraded to extension version v2024.20.0 and the error went away. |
Do you have a Dockerfile or docker-compose file which I can use to try reproducing this locally?
Are you referring to https://github.com/devcontainers/cli by "tool"? Can you provide the command you used to create this? Sorry, this might be some basic questions but I haven't worked with VS Code dev containers. |
Been using Ruff vscode for more than a year. This time I decided to beta test the rust LSP in my test projects on windows 10. Now it's constantly crashing. The odd thing is I never installed ruff in my virtual environment and continued to use bundled version with Vscode Ruff extension setting: "ruff.importStrategy": "useBundled" Here is the traceback: `2024-07-10 20:01:17.450 [info] Traceback (most recent call last): 2024-07-10 20:01:17.481 [info] [Error - 8:01:17 PM] Server initialization failed. VSCode Config: |
@vasudev-gm I'm sorry that you ran into this issue. I think this should be fixed on main (#509) but hasn't yet been released. |
Thank you Dhruv and Micha for giving me the heads up. Will check out the next upcoming releases to see if the issue is fixed
…________________________________
From: Dhruv Manilawala ***@***.***>
Sent: Wednesday, July 10, 2024 9:45 PM
To: astral-sh/ruff-vscode ***@***.***>
Cc: Vasudev ***@***.***>; Mention ***@***.***>
Subject: Re: [astral-sh/ruff-vscode] Starting ruff server fails (Issue #483)
Yeah, #509<#509> should resolve this and additionally, the error message (RuntimeError: Ruff >=0.3.5 required, but found 0.0.254 at C:\Users\Vasudev\AppData\Local\Programs\Python\Python311\Scripts\ruff.EXE) has been improved in #512<#512>.
—
Reply to this email directly, view it on GitHub<#483 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANCXKE53WYT2BDZVV2JUYWDZLVMZ7AVCNFSM6AAAAABIRYJXDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQHE2DIOJRGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@vasudev-gm |
@vasudev-gm Can you try upgrading the extension and try again? |
Hi Dhruv,
I don't see rust server failed to start errors anymore. Then again, I've
configured the rust server to be in auto mode if lint, formatting and
import sort are enabled on existing projects.
Thanks for reaching out.
…------------------------------------------------------------------------
*From:* Dhruv Manilawala ***@***.***>
*Sent:* Tuesday, July 23, 2024 9:55 AM
*To:* astral-sh/ruff-vscode ***@***.***>
*Cc:* Vasudev ***@***.***>; Mention
***@***.***>
*Subject:* Re: [astral-sh/ruff-vscode] Starting ruff server fails (Issue
#483)
@vasudev-gm <https://github.com/vasudev-gm> Can you try upgrading the
extension and try again?
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANCXKE3DVIOSICADN3KCUJ3ZNXLMZAVCNFSM6AAAAABIRYJXDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGIZDKOJRGI>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--------------NhL5fI1HqPwJ4uyLswxiwNX4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Dhruv,<br>
<div><br>
</div>
<div>I don't see rust server failed to start errors anymore. Then
again, I've configured the rust server to be in auto mode if lint,
formatting and import sort are enabled on existing projects. </div>
<div><br>
</div>
<div>Thanks for reaching out.</div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt;" data-ogsc="" face="Calibri, sans-serif" color="#000000"><b>From:</b>
Dhruv Manilawala <a class="moz-txt-link-rfc2396E" ***@***.******@***.***></a><br>
<b>Sent:</b> Tuesday, July 23, 2024 9:55 AM<br>
<b>To:</b> astral-sh/ruff-vscode
<a class="moz-txt-link-rfc2396E" ***@***.******@***.***></a><br>
<b>Cc:</b> Vasudev <a class="moz-txt-link-rfc2396E" ***@***.******@***.***></a>; Mention
<a class="moz-txt-link-rfc2396E" ***@***.******@***.***></a><br>
<b>Subject:</b> Re: [astral-sh/ruff-vscode] Starting ruff server
fails (Issue #483)</font>
<div> </div>
</div>
<div>
<p dir="auto"><a href="https://github.com/vasudev-gm" data-auth="NotApplicable" class="x_user-mention x_notranslate" data-hovercard-type="user" data-hovercard-url="/users/vasudev-gm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" data-ogsc="" ***@***.***</a>
Can you try upgrading the extension and try again?</p>
<p style="font-size: small; color: rgb(102, 102, 102);">—<br>
Reply to this email directly, <a href="#483 (comment)" data-auth="NotApplicable" data-ogsc="" style="">
view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANCXKE3DVIOSICADN3KCUJ3ZNXLMZAVCNFSM6AAAAABIRYJXDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGIZDKOJRGI" data-auth="NotApplicable" data-ogsc="" style="">
unsubscribe</a>.<br>
You are receiving this because you were mentioned.<img alt="" src="https://github.com/notifications/beacon/ANCXKE6H4UARSJIAD7D23SDZNXLMZA5CNFSM6AAAAABIRYJXDCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUFYQVXQ.gif" width="1" height="1"><span style="color: transparent; font-size: 0px; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0px; height: 0px; max-width: 0px; max-height: 0px;">Message
ID: <span><astral-sh/ruff-vscode/issues/483/2244225912</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</div>
</body>
</html>
--------------NhL5fI1HqPwJ4uyLswxiwNX4--
|
Thank you for confirming. |
I continuously get this output:
every time I start the ruff server. I am using uv 0.2.4 inside a debian 12 docker container with vscode 1.89.1 on linux. the ruff extension is installed inside the container using vscode's dev containers tool. I am using ruff v2024.22.0
The text was updated successfully, but these errors were encountered: