Skip to content

Error on opening shell.nix file: spawn nix-instantiate ENOENT #404

@AlexMakesSoftware

Description

@AlexMakesSoftware

After installing vscode-nix-ide in vscode version 1.91.1 today, I found it produced an error 'spawn nix-instantiate ENOENT' when I opened a very basic 'hello world'-style shell.nix script. Auto-completion doesn't seem to work and formatting the file gives me another error 'failed to run nixpgs-fmt: spawn nixpks-fmt ENOENT'.

At first I thought this might be because I hadn't explicitly installed and set up a language server for Nix but upon reading your installation instructions for nixd, they say "vscode-nix-ide extension provide a general interface for nixd, and it should work out of box. Please file a bug if you encountered some trouble using the extension." - so I am. Apologies if I've misunderstood something here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions