-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Direnv hangs (and my whole system slows) when flake inputs update #292
Comments
Currently won't be able to test this flake out as I am on a Darwin host, which this flake doesn't define an output for. It's difficult to figure out where it would be pausing since there's a fair amount of nesting going on in here that is hard to separate out. However, you might be better off looking for a I will try and see if I can get this flake's devShell building tonight when I can get access to a linux x86-64 host. |
To narrow down next time this happens check |
Sorry for the late response: I got that building, but noticed no problems. Not entirely sure what was happening... |
I got it building too. My response was directed to @the-argus |
I just refactored my configuration so it should be a little bit easier to understand for the future.
I was definitely connected to the network, but I have had network issues on my PC host which uses a similar configuration (but a wired connection, so idk how related it is). I don't believe it's DNS related, though, as restarting dhcpcd fixes it on that host. In the future if it happens again I will checkout the status of nix-daemon. Unfortunately I can't do much to replicate the issue any more than anyone else... it's almost random. I'm going to leave this issue open for now, but if it remains inactive after the next few weeks feel free to close it. |
@Mic92 It happened again, this time on my other machine so it seems to more reproducible than I thought. When it happened I checked the status:
This only tells me that my keyboard interrupt did not work (as it did at |
Happened again immediately after This time there are some new logs and also 4 tasks.
|
I think that a |
To reproduce:
direnv allow
This immediately caused the issue for me. Everything freezes when nix gets to [querying source]. I don't think you will actually be able to reproduce it since I have never seen this issue before and it doesn't happen on my PC, only my laptop. I've tried removing all my .direnv/ directories and .cache/direnv and doing nix-collect-garbage -d, to no avail.
The issue
The process (updating a flake as prompted by direnv
use flake
) will hang. Everything on my computer becomes slow. Opening windows takes 10-20 seconds. My zsh prompt takes 5 seconds to load. Additionally, after closing the window, the problem remains. I've tried looking for adirenv
orzsh
ornix
process and killing it, but there don't seem to be any...To make matters worse, it's really inconsistent. I cannot figure out when or why it happens, and sometimes the process does finish if I wait long enough (like 10-20 minutes, I think).
Any other ideas on different things I could try to fix the problem? I thought clearing the caches would at least help.
The text was updated successfully, but these errors were encountered: