oxalica / nil

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

How to use `nil` with vscode extension, it's failing to find it even though it's present in the system #149

Closed nikitavoloboev closed 3 weeks ago

nikitavoloboev commented 3 weeks ago

Opened the issue here: https://github.com/nix-community/vscode-nix-ide/issues/414

But perhaps you know the solution. 🙏

nikitavoloboev commented 3 weeks ago

Fails with this setup too in vscode settings:

  "nix.enableLanguageServer": true,
  "nix.serverPath": "nil",
  "nix.serverSettings": {
    "nil": {
      "diagnostics": {
        "ignored": ["unused_binding", "unused_with"]
      },
      "formatting": {
        "command": ["nixfmt"]
      }
    }
  },
nikitavoloboev commented 3 weeks ago
image

getting this error

nikitavoloboev commented 3 weeks ago

ok solved it, it was not in my path with the way I opened the editor