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

Nimble Zombie Procs + crashing langserver #149

Open
RokkuCode opened this issue Mar 24, 2025 · 2 comments
Open

Nimble Zombie Procs + crashing langserver #149

RokkuCode opened this issue Mar 24, 2025 · 2 comments

Comments

@RokkuCode
Copy link

Prequisites

  • Git Clone the langserver
  • compile it with nimble build
  • place the nimlangserver binary in nim bin directory
  • if not done this way, the langserver will be compiled with 2.2.2 (system nim) due to a bug in nimble

Setup Project

  • Create an empty project with nimble init
  • Choose a binary project (it happens also with library)
  • do not alter the example files
  • look at the processlist
rokku     108810  1.8  0.0  84852 12628 ?        Sl   06:24   0:00 /opt/nim/nim-2.2.2/bin/nimlangserver --stdio
rokku     108812  0.0  0.0      0     0 ?        Z    06:24   0:00 [nimble] <defunct>
rokku     108819  0.0  0.0      0     0 ?        Z    06:24   0:00 [nimble] <defunct>
rokku     108822  0.0  0.0      0     0 ?        Z    06:24   0:00 [nimble] <defunct>
rokku     108861  0.0  0.0      0     0 ?        Z    06:24   0:00 [nimble] <defunct>
rokku     108871 14.6  0.0  50212 40176 ?        Sl   06:24   0:00 /opt/nim/nim/bin/nimsuggest /home/rokku/development/test/src/test.nim --v4 --autobind --clientProcessId:108810 --log --exceptionInlayHints:off
rokku     108902  0.0  0.0      0     0 ?        Z    06:24   0:00 [nimble] <defunct>
rokku     108913 15.2  0.0  49180 40248 ?        Sl   06:24   0:00 /opt/nim/nim/bin/nimsuggest /home/rokku/development/test/src/test.nim --v4 --autobind --clientProcessId:108810 --log --exceptionInlayHints:off

Output Messages of LSP Server

extension-output-NimLang.nimlang.txt

@jmgomez
Copy link
Collaborator

jmgomez commented Mar 25, 2025

Can you share the content of file:///home/rokku/development/test/src/test.nim?
Looking at the nimble issue. Cant repro it but if you are able to repro it consistently, will update the langserver repro with a potential fix so you can try it out

@jmgomez
Copy link
Collaborator

jmgomez commented Mar 25, 2025

The fix is merged in master now. Can you test it out? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants