Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lorri displays "error extending watch paths" warning during successful operation #137

Open
peterldowns opened this issue Nov 8, 2024 · 3 comments

Comments

@peterldowns
Copy link

peterldowns commented Nov 8, 2024

I recently upgraded my version of nix and lorri and began to encounter the following warning lines during lorri builds. It does this on every single new build, but not when loading from a cached build.

Nov 08 16:51:03.439 WARN error extending watch paths:, paths: [Normal("/Users/pd/.config/nixpkgs/config.nix"), Normal("<nix/fetchurl.nix>"), Normal("/Users/pd/Desktop/lorri-init-path-errors/shell.nix"), Normal("<nix/derivation-internal.nix>")], error: Error { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }), paths: [] }, nix_file: /Users/pd/Desktop/lorri-init-path-errors/shell.nix

I was able to create a minimal reproduction using a brand new repository where the only files were created by lorri init, you should be able to check it out here:

https://github.com/peterldowns/lorri-init-path-warnings

Hopefully you can reproduce the behavior by checking out the repository and running:

cd lorri-init-path-warnings
direnv allow .
lorri watch --once

Expected behavior
Lorri functions correctly, updates the current shell environment to add the hello binary to the $PATH.

Actual behavior
Lorri functions correctly, updates the current shell environment to add the hello binary to the $PATH, and prints the warning log visible above.

Metadata

$ lorri info --shell-file shell.nix
Project Shell File: /Users/pd/Desktop/lorri-init-path-errors/shell.nix
Project Garbage Collector Root: /Users/pd/Library/Caches/com.github.nix-community.lorri.lorri.lorri/gc_roots/bad6431c93487fe2821f8b802ac8a0d8/gc_root/shell_gc_root

General:
Lorri User GC Root Dir: /Users/pd/Library/Caches/com.github.nix-community.lorri.lorri.lorri/gc_roots
Lorri Daemon Socket: /Users/pd/Library/Caches/com.github.nix-community.lorri.lorri.lorri/daemon.socket
Lorri Daemon Status: `lorri daemon` is running
$ uname -a
Darwin pld-mbp-22 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64 arm Darwin

Additional context

  • macOS 14.4.1 Sonoma
  • lorri 1.7.1 installed via service.lorri.enable = true; in my system flake
  • system flake nixpkgs (where lorri comes from) is github:NixOS/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933?narHash=sha256-JwQZIGSYnRNOgDDoIgqKITrPVil%2BRMWHsZH1eE1VGN0%3D (2024-11-07 05:50:23)
@peterldowns peterldowns changed the title Lorri dispalys "error extending watch paths" warning during successful operation Lorri displays "error extending watch paths" warning during successful operation Nov 8, 2024
@peterldowns
Copy link
Author

Possibly related to #90 but @nyarly wrote:

This bug is fixed in 1.7.0, which is in nixpkgs as of NixOS 24.05. Thank you for your patience!

and I'm using lorri 1.7.1. Additionally, I couldn't tell which commits or work were supposed to have fixed the problem, or how to debug further. Happy to help provide more information or even attempt to fix it myself if someone can help point the way.

@nyarly
Copy link
Collaborator

nyarly commented Nov 8, 2024

Interesting. Thanks for putting together a reproduction. I'll see if I can take a look over the weekend, but I'm on the road next week.

I agree: the warning should describe which path can't be found, at the very least.

@peterldowns
Copy link
Author

Cool, thanks for the quick response. This isn't an urgent bug in any way, since the only problem is that there is a warning shown — lorri still works great. Thanks for maintaining and for the improvements you've been making, I'm looking forward to the improved flakes support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants