-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
recompiled Termonad has references to files from /nix/store that are invalid after garbage collecting #165
Comments
@yoctocell Could you list the exactly commands you used to build and run Termonad? Also, just to make sure, you may want to delete |
This solved the problem for me, Thanks! Feel free to close this issue. |
I had the same problem just now and this helped me too. I use NixOS btw. |
Here's my guess as to what happened:
Since you garbaged collected, the file If you delete Is anyone able to confirm that this is actually the problem? The logic for how Termonad determines when it should recompile itself is detailed here: https://hackage.haskell.org/package/termonad-4.4.0.0/docs/Termonad.html#v:defaultMain Termonad is checking timestamps between the Or maybe Termonad could just use I'm open to suggestions on what the best way to fix this would be. |
Your description is exactly accurate, this is exactly what happened in my case. |
IMHO, this is the solution. If you agree, and give me some pointers, I would like to open a PR. |
@refaelsh Thanks for taking a look at this. Here's the line where the Line 374 in d6c8d74
I imagine the easiest change could be to stop using data-files here, and instead just use https://hackage.haskell.org/package/file-embed to directly embed the file with TH. |
I will try it. If I get somewhere, I will open a PR. Thank you for the pointers, it helps :-) |
I am stuck. The |
@refaelsh I poked around a little in Maybe you can find a way to convert the |
Yea, I've seen that possibility too. I did not want to mention it because a quick google search tolled me that converting a |
I've opened PR #227 to continue discussion. |
When I install termonad with
nix-build
and run./result/bin/termonad
I get an error sayingIt seems to be looking for the image for termonad 3.1.0.1, but I am on version 4.0.0.1. Is this termonad's problem or is it nix's problem?
The text was updated successfully, but these errors were encountered: