News for hackers. Stuff that matters.
Re:NixOS is a good server OS, except when it isn't by turboponyy on Wednesday October 02, 2024 @06:13AM (#41718965)
This is inherently a Hard Problemâ„¢, since completions may require evaluating arbitrary derivations (e.g. building a custom Linux kernel).

For "what symbols are available", the nil LSP implementation[1] works for anything in scope that doesn't require evaluation. It also includes completions for the stdlib and NixOS options (in certain contexts).

Another LSP implementation is nixd[2], which is trying to tackle the problem of evaluations for completion.

[1] https://github.com/oxalica/nil/

[2] https://github.com/nix-community/nixd

Re:NixOS is a good server OS, except when it isn't by k_bx on Thursday October 03, 2024 @09:57AM (#41730856)
Maybe then IDE is not the best target, but rather a clear "REPL-friendliness at all times" is, e.g. everything is built around constant re-evaluation where you can discover things where interested, maybe put stop gaps and prints easily.