Open samuela opened 4 years ago
That is a good insight. We could maybe query the daemon in the lorri direnv
call (via a command that does not yet exist) and display a warning if the last build failed.
This would work by adding a lorri internal project-status
or similar, which returns the required information (e.g. last build crashed), similar to how lorri internal stream-events
shows some history at the beginning.
lorri direnv
would add a call to lorri internal project-status
, which itself would print the warnings. This means every time direnv is invoked (either by the editor or the shell), we get the latest project status and it will be printed.
Describe the bug Currently lorri will automatically watch the
shell.nix
file for changes and rebuild the environment when it is modified. This is really awesome! But unfortunately whenshell.nix
is edited, but does not build properly -- syntax error, package not found, etc -- there's no indication given to the user that their changes have not been applied...To Reproduce Steps to reproduce the behavior:
lorri init
in a directory.cd
into the directory with direnv to automatically enter into the lorri environment.shell.nix
with a "good" edit, eg. addpkgs.python3
.which python3
gives you a nix path.shell.nix
again, but this time with a "bad" edit, eg. rename topkgs.python3asdfasdfasdf
.Expected behavior An error message.
Metadata
n/a
Additional context
n/as