nimlsp icon indicating copy to clipboard operation
nimlsp copied to clipboard

Nimlsp pegs CPU to 100% in Nim 2.2.0

Open xTrayambak opened this issue 1 year ago • 8 comments

image

My CPU is fully maxed out with Nimlsp (compiled with Nim 2.2.0) on NixOS. I know that Nimlsp has been compiled with Nim 2.2.0 because the build manifest is set to compile it with the latest Nim version available in nixpkgs, that being 2.2.0 for the past few weeks.

xTrayambak avatar Oct 24 '24 10:10 xTrayambak

This sounds like a nimsuggest bug, it's known to do that. I'll check later to see if nimlsp is the culprit though.

PMunch avatar Oct 24 '24 13:10 PMunch

Alright, please let me know if you need any further debug info.

xTrayambak avatar Oct 24 '24 13:10 xTrayambak

This sounds like a nimsuggest bug, it's known to do that. I'll check later to see if nimlsp is the culprit though.

Well if it isn't it could suggest that it's a nim bug and should be reported here

Eveeifyeve avatar Oct 25 '24 06:10 Eveeifyeve

Please let me know asap as we are just about a corner to releasing 24.11 NixOS

Eveeifyeve avatar Oct 26 '24 04:10 Eveeifyeve

Still haven't had time to follow up on this, but did you raise it to nimsuggest?

PMunch avatar Nov 05 '24 20:11 PMunch

I did not, sorry. I'll make an issue in the Nim repo quickly.

xTrayambak avatar Nov 06 '24 10:11 xTrayambak

This is an issue for me now on 2.2.6 (nimlsp v0.4.7). Is there a known solution?

PattMayne avatar Nov 25 '25 16:11 PattMayne

See the nimsuggest issue above. Seems like multiple people are having this regardless of which LSP implementation they use, so it's not a nimlsp bug.

PMunch avatar Nov 25 '25 18:11 PMunch