-
Notifications
You must be signed in to change notification settings - Fork 200
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
New project appears to be broken right from the start. #1787
Comments
Can you install the latest version of |
That's basically what I did before although I had a system installed version from nixpkgs. I made sure to remove the system installed version and tried again and got exactly the same results. |
Strange. Is your |
Auto troubleshooting script gives me this:
I realised that I had a custom
|
This is very strange. Direnv is correctly loaded, but it's not finding Can you run |
|
I was having similar issues. It seems like ihp-new doesn't work when run in an existing direnv or perhaps doesn't play well with nix-direnv's autoloading. I was able to resolve my issue by installing the packages at the system level (NixOS), so something like:
in configuration.nix. Unideal but I was able to
|
I wound up trying ihp-new in VM after WSL assuming that it doesn't ship broken. Is there a way to ihp-new with v1, with the assumptiong that migrating would be easy enough? |
So this is definitely broken in general as far as I can tell, as I've just built a completely fresh machine and I get the same kind of output:
This is using an almost identical config to the machine I got the previous output on, but it has never had IHP installed on it ever at all prior to what I've just run. |
I spent a bit of time this morning and managed to figure out the issue. I'm not sure if this is something that has changed in more recent versions of nix, but by creating a git repository at the root of the project and You can see someone referencing this issue here: https://discourse.nixos.org/t/nix-flakes-nix-store-source-no-such-file-or-directory/17836/12 |
That makes sense. That's default behaviour in nix flakes. In your initial bug report at the top you have a line We should extend |
Yup my home folder is a git-annex repo, so that explains that side of it. Be handy if it was possible to limit how far up the hierarchy nix flakes looks. But I can imagine that might involve changing nix itself. |
Yeah, i think that's unlikely to get changed in nix as this could have unintended side effects (e.g. large repos with deep directory hierarchies) |
Is there a workaround to that though? Much as some kind of informative error is an improvement, if it just prevents people from creating a project then people in my situation are kinda stuck. |
Found a better way: We run |
Yay! |
When I create a new project and try to get it up and running the project just appears to be broken:
The direnv errors I don't believe to be an issue as I'm using Fish and I've used direnv for a few years with it without any problems. But the
error: getting status of ...
messages seem to be the cause of the environment not loading properly. I have played with IHP 1.0 just after release on this machine and it worked fine, I'm just coming back to it now thinking about using it for a real project.Assorted system info:
The text was updated successfully, but these errors were encountered: