oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.28k stars 39 forks source link

Fail silently (or silenter) #122

Closed gytis-ivaskevicius closed 3 months ago

gytis-ivaskevicius commented 6 months ago

When LSP loads it throws errors such as: image

Also, I had the whole screen spammed due to import-from-derivation, maybe this one should be enabled by default? That sounds like an easy fix for this issue

NovaViper commented 3 months ago

I'm having similar issues too, except in my case, my entire computer will end up locking up because it uses all of my ram to run nix flake show 👀 I get this error inside of Doom Emacs

LSP :: Flake input "home-manager" cannot be evaluated: Nix exceeds memory limit
LSP :: Flake input "nixvim" cannot be evaluated: `nix flake show path:/nix/store/5r2d0vxwlzhg2r4p1bfgpxrn18rwwyan-source` failed with exit status: 1. Stderr:

Is there a way to disable this feature from running? It ends up making my computer slow down severely

oxalica commented 3 months ago

Is there a way to disable this feature from running? It ends up making my computer slow down severely

You can disable flake input auto evaluation via configuration nix.flake.autoEvalInputs. See: https://github.com/oxalica/nil/blob/ab3ddb8f063774cf7e22eb610f5ecfdb77309f3c/docs/configuration.md

NovaViper commented 3 months ago

That fixed it, thank you!