-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
hls fails with multiple executables, stack and implicit hie-bios config #233
Comments
Hi! This is currenlty expected behaviour. You need to add a If you need more information, please ask! We are trying to improve the docs for |
Only want to mention that there is a utility to help generating the |
Thanks for the info! A great improvement would be parsing this response and providing info/links about |
This file is required to run `haskell-language-server` properly. Without this file `hie` does not know which `main` target to utilize. Related `haskell-language-server` issue: haskell/haskell-language-server#233
This file is required to run `haskell-language-server` properly. Without this file `hie` does not know which `main` target to utilize. Related `haskell-language-server` issue: haskell/haskell-language-server#233
I did this and generated the
I did |
@sjshuck If you build your project once, does that work afterward? I mean, running |
@Ailrun I had previously built the package. Reran
Also, when I open a source file that's shared between my two executables, the error is different:
The relevant part of my |
Hm... maybe you installed HLS of a different version of GHC from what you are using for the project? In your previous comment, you said you ran
You can check whether it use the same version by checking that your list of binaries includes |
Re-downloaded everything just to make sure.
Same error. |
Interesting that it says |
It would be better if I can see your full log and the generated hie.yaml. @bubba, this may be related to binary build process? I'm not sure but for the case. |
Please find my |
@bubba No, that other error went away, thanks! |
Same problem here. After enabling [typecheck] [E] Installation error: unable to load package ghc-prim-0.5.3 Stack snapshot: lts-16.7 |
I've got the same issue with template haskell enabled. This issue seem to occur if loading dynamic library fails (this linking happens even for fully static HLS executable). I've got following in the HLS log:
This error comes from #293, that fix probably works fine in other distributions but fails on NixOS as libm is not in it's usual path. |
To anyone stuck with the same issue on NixOS: hls version in haskell-updates branch of nixpkgs have hls 0.3.0 that does not have this problem (normal unstable branch still have hls 0.2.2). |
Not sure if it is only th related but it would worth to revisit this once we use ghcide version with better support for th: #526 |
We are using in 0.6.0 a ghcide version with better th support: @eborden @Vorticity-Flux @sjshuck please, could you check if that version fix the error for you? |
@jneira I took a stab at running it in my "large" repo. It worked as expected on modules/packages it had previously worked on. When I moved to the previously failing module the extension crashed 5 times and then stopped functioning. In the logs I'm seeing:
I can dump my whole log with a few messages redacted (ones that include source code) if that would be helpful. |
@eborden thanks for trying |
@jneira not sure if there is anything useful for you in here: https://gist.github.com/eborden/a2648dc9374d7de2029d32303238ccfd |
I can confirm I get the libm error using stack --nix:
|
It'd be useful for scripting or integration tests.
Is there a known solution for this with nixos? I'm using
|
I am gonna close this issue as all compiler crashes seems to have the same root cause:
If any of you think the issue should not be included generically feel free to reopen it (with a brief explanation if possible) |
The new VSCode static binaries work fantastically. However they seem to fail in the presence of
stack
and multiple executables within a project.When running the project for this repo I get the following. This is consistent with other multiple executable repos I've tried.
The text was updated successfully, but these errors were encountered: