`devenv lsp` fails inside devcontainer
Author: robertclarkenhspsCreated Sep 21, 2026Updated Sep 21, 2026
Labelsbug
Describe the bug
When running inside a devcontainer devenv lsp errors with
• Validating lock
✓ Validating lock in 7.35ms
evaluating file '«nix-internal»/derivation-internal.nix'
• Starting nixd language server
terminate called after throwing an instance of 'nix::Error'
what(): error: Already registered store with name 'Dummy Store'To reproduce
Gist: https://gist.github.com/robertclarkenhsps/71ca1f075f13cbf00842f101f2c467f3
After running devenv shell to create the devcontainer.json and install the command line run:
devcontainer up to build the dev container and then
devcontainer exec devenv lsp to view the error
Version Host: devenv 2.3.1 (x86_64-linux) Devcontainer: devenv 2.3.1+2418e1b (x86_64-linux)
Additional info Running nixd from within devenv also fails with the same error
Source: cachix/devenv