oxalica / nil

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

nil_ls crashes on formatting buffer using Alejandra #134

Open sachinchaudhary1808 opened 4 months ago

sachinchaudhary1808 commented 4 months ago

so i have a .nix file which i formatted using alejandra and after that nil_ls server crashed with this error msg in the bottom images.. image

also i got no root directory found thing.....

this is Lspinfo before formatting

image

and this one after formatting

image

also i'm using nixvim...

sachinchaudhary1808 commented 4 months ago

https://gist.github.com/sachinchaudhary1808/98bd30b8a92d95e5eb07a7ff8df9c355

this is the file

oxalica commented 3 months ago

Cannot reproduce.

Could you provide the error log? In your screenshot, it says /home/coco/.local/state/nvim/lsp.log. Please also provide your configuration, especially about how you setup the formatter.