-
-
Notifications
You must be signed in to change notification settings - Fork 40
Possible features and ideas #41
Comments
I think we should also make a plan when/what to release:
|
As discussed with @aaronjanse via DM, we'll proceed here like this:
Further |
We may be able to use something from lf-/nix-doc for the documentation hovering. |
That's a nice idea, will keep that in mind when we get to it, thanks! :) |
I was considering updating rnix-lsp on nixpkgs to the latest commit because 0.1.0 is over a year old now, @Ma27 do you think 0.2.0 is close enough to be released for me to wait and update to that instead of using the latest commit of the master branch? |
@Kranzes there's still #33 open. While I have a hard time reproducing this (I encountered it twice in the last ~75 days), others experience it rather regularly, unfortunately. It doesn't mean I've given up though, however I'm currently lacking time & energy to investigate it more thoroughly, so in case you're affected by this as well, you'd have to be patient a little bit. Apart from that, |
Thank you to @Ma27 and @fufexan for figuring out how to reproduce & possibly fix the memory leak: nix-community/rnix-parser#31. If the crash goes away after merging that PR, I think it would make sense to tag a 0.2.0 release then update nixpkgs |
Another idea: in the expression |
I still remember quite a few occasions where nested |
some code actions would be nice, here are some that I can think of:
|
Whoa, these ideas are so cool! Thank you so much @figsoda! I especially love the idea of rnix-lsp helping fill in sha256 hashes. That would significantly improve my workflow while using Nix. |
Would it make sense to provide hard-coded builtins docs for when nix-unstable is not found? |
once NixOS/nix#5527 is fleshed out, it should be a lot easier (hopefully) to show documentation on arbitrary functors as well 🤞 |
Hi there, I really really think that the LSP idea is a very needed tool in the Nix community, esp. the sha256 autofill hash stuff and autocompletion with docs. How much do you think it would be possible to get someone to work on this as a funded (Open Collective, grants?) gig in the future? |
any news? how can i help? also other tools like nix-gui are hitting this limitation. this could be based on an incremental parser like
see my experiments in nixos-config-webui - javascript is nice for prototyping related: |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-eval-js-a-nix-interpreter-in-javascript/22182/1 |
Here's are some informal ideas for things that we might want in rnix-lsp, some of which would be possible via evaluation. Feel free to add to this list:
with
statementspkgs.withPackages ({rustPackages}: ...)
would let us know the value ofrustPackages
based onpkgs
functionName { /* attributes here */ }
, maybe also use the comments next to paremeter definitions in the function source codeSome of these might not be possible, and we might not want others. But I thought I'd at least write them down somewhere.
The text was updated successfully, but these errors were encountered: