-
Notifications
You must be signed in to change notification settings - Fork 55
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
Frequent server panic exits – «Ruff language server exited with a panic» #607
Comments
Hi @rnckp. I'm sorry you're running into this. Could you tell me a bit more about your workflow so that I can reproduce this issue?
|
@MichaReiser Thanks for your fast response!
|
Hmm interesting. I played around with a notebook, even with mixed languages but haven't been able to trigger the same panic. Would you mind restarting VS code, open a notebook, and then open Output - Ruff. You should then see something similar to
Could you share the log with me? I'm specifically interested in the ruff version. |
Sure! What I notice is that the used interpreter is the homebrew one. However, I use miniconda environments for all my projects. These are also the kernels that I always select when I start working in the notebooks.
|
Thanks. Hmm. this looks all good... Maybe @dhruvmanila has an idea? It might take him a few days to reply because he's currently traveling. |
Is the environment activated when you start VS Code? Regardless, the panic that you're facing doesn't seem to be related to the selected interpreter. Are you able to share the notebook where you're facing this panic? I can play around with that and try to reproduce it myself. |
Thanks @dhruvmanila I do activate the environment when I start working in the notebook. When I execute the first cell, VS Code let me select the environment and I choose from my miniconda environments. I will have a look at the notebook tonight and see if I can share it. |
The extension should probably restart if a user changes the interpreter which should result in Ruff selecting the correct interpreter.
Thanks, that should be helpful. |
Is there a way I could share the notebook directly with you, e.g. email? |
New logs from a different notebook where I observe the server panics.
|
Are you on discord? I'm 'dhruvmanila' or you can email me at "[GitHub username] at gmail". |
I have sent two sample notebooks via email. I also noticed that the crashes occur on a different computer too (Mac mini M1 2020, Sonoma 14.6.1). VS Code is 1.93.0, Ruff v2024.46.0. |
Thanks, I tested it against the provided notebooks and I can't seem to reproduce the panic :( Are you able to reproduce it consistently? Can you provide the steps you took which leads to the panic? Or, record a video that reproduces it? Whatever is easier for you. |
Thanks for testing and looking into this issue! Unfortunately I am not able to reproduce it consistently. However, when it appears, than the server usually crashes again and again. I will try to record a video and send this to you. This might take until Friday or the weekend. |
Yeah, no worries. |
Hi,
|
@dhruvmanila I could record some server panics. I have sent this to you by mail. PS: I have the feeling that the server crashes are more probable if I have more and longer text print outs in a notebook or more larger text or markdown documents in my VS Code workspace. Just a hunch. I cannot reliably confirm this. |
@rnckp Thanks! I'll look into it this week |
@dhruvmanila I have added two more screen recordings to the Google Drive folder with the respective notebook where the crashes occur. |
@rnckp The |
@dhruvmanila Sorry about that. I just fixed it and uploaded the proper file. |
Can you provide the Ruff config that you're using? I see that in the video some of the cells are giving diagnostics but it's not doing the same for me. Also, the Ruff version and extension version that is being used. |
Nevermind, you've provided it in the issue description. |
I'm a bit confused, the |
@dhruvmanila I use this However, for the last tests that I did where I recorded the videos I only had opened one single repo in VS Code (not the entirety of all repos/projects). Therefore I think the |
Hi @rnckp, thank you for your patience and open to sharing all the relevant details for us to debug the issue. Although, we're still unable to reproduce this on our end :( There are couple of things we can try:
Let's start with (1) and if that can help figure out the root cause otherwise we can collaborate on (2) if that's feasible from your end (totally fine if not). |
@dhruvmanila Thanks again for looking into it! I appreciate that. Suggestion 1 should be easy. Let's start with that. I will mail you results when I do a next coding session (~ until beginning of next week). |
@rnckp Just following up on whether you had the chance to generate detailed logs, no need to rush :) |
@dhruvmanila I am still observing and will log the data once the opportunity arises. |
I observe frequent server panic exits with no appearant reason. What can I do to fix this?
Note: I do not drag any cells. So this does not seem related to #575
Minimal code snippet
I do not invoke specific commands or cells. I observe the crashes throughout various of my projects in VS Code.
Settings
settings.zip
Versions
VS Code 1.93.0
Ruff extension v2024.44.0 (Auto Update active)
Environment
MacBook Pro 16'' 2023, Apple M2 Max, 64GB
MacOS Sonoma 14.6.1
Panic logs
The text was updated successfully, but these errors were encountered: