I was setting up nixd
as an LSP for nix, and for flakes it needs to get the path to a flake passing it to builtins.getFlake
. It was not working so I was debugging in the repl
and I saw this.
$ nix repl .
Nix 2.24.9
Type :? for help.
warning: Git tree '/Users/ahmedelgabri/.dotfiles' is dirty
Loading installable 'git+file:///Users/ahmedelgabri/.dotfiles#'...
Added 5 variables.
nix-repl> (builtins.getFlake "/Users/ahmedelgabri/.dotfiles")
error (ignored): error: end of string reached
error:
… while calling the 'getFlake' builtin
at «string»:1:2:
1| (builtins.getFlake "/Users/ahmedelgabri/.dotfiles")
| ^
… while fetching the input 'path:/Users/ahmedelgabri/.dotfiles'
error: file '/Users/ahmedelgabri/.dotfiles/.git/fsmonitor--daemon.ipc' has an unsupported type
fsmonitor-daemon
is managed by git core.fsmonitor
feature Git - git-fsmonitor--daemon Documentation
So I was wondering if there are workarounds regarding this limitation other than disabling fsmonitor
and removing the file?