nix-community / vscode-nix-ide

Nix language support for VSCode editor [maintainer: @jnoortheen]
https://marketplace.visualstudio.com/items?itemName=jnoortheen.nix-ide
MIT License
273 stars 23 forks source link

Command nil not found in $PATH but it is installed #414

Closed nikitavoloboev closed 3 weeks ago

nikitavoloboev commented 3 weeks ago
image

It's in my shell. So I am confused why it is happening.

My settings in vscode:

  "nix.enableLanguageServer": true,
  "nix.serverPath": "nil",
  "nix.formatterPath": "~/.flox/run/aarch64-darwin.default/bin/nixfmt",
  "nix.serverSettings": {
    "nil": {
      "diagnostics": {
        "ignored": ["unused_binding", "unused_with"]
      },
      "formatting": {
        "command": ["nixpkgs-fmt"]
      }
    }
  },

I see how to hardcode path to formatter but not lsp.

nikitavoloboev commented 3 weeks ago

CleanShot 2024-08-21 at 18 35 30@2x

even added it to ~/.profile, still breaking

nikitavoloboev commented 3 weeks ago

Also getting this:

image
nikitavoloboev commented 3 weeks ago

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