-
-
Notifications
You must be signed in to change notification settings - Fork 389
Segfault on empty YESOD project #230
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
Comments
You can get same repo, just typing |
Hi, are you using a explicit hie.yaml? if that is the case please attach it. Otherwise try to open the project creating the explicit |
Before you last message i use pretty simple hie.yaml:
But, after reading it, i change hie.yaml to
And got new error:
I think, that i must do some additional installation steps to solve it...
And I want to reiterate that this is not an exception, but a segfault. |
Yeah it is probable, still they could be related (f.e. one could cause the other). The
I've used the utility Without the hie yaml i got With that |
Thank you for support, gen-hie works fine. So, segmentation fault come back.
|
Jumm, ok, when the language server crashes, could you see the same error in the hls output? please, attach that log just in case it could help. The hie.yaml i am using now is this one: cradle:
multi:
- path: "./app/devel.hs"
config: { cradle: { none: } }
- path: "./"
config:
cradle:
stack:
- path: "./src"
component: "yolo:lib"
- path: "./app"
component: "yolo:exe:yolo"
- path: "./test"
component: "yolo:test:yolo-test" |
after opening some hs file in VS code i got message
And yes, it's only os x problem, i use haskell-ide-engine with vim on ubuntu without any problems. |
And the executable was automatic downloaded by the extension so it comes from the release of this repo. |
Can I somehow help identify the problem? For example, I can try to localize the source of the segfault. In the case of haskell-ide-engine, I have already done this, I wrote it off earlier.
with this debugging prints, i got one of:
or
|
One thing to note is that
So, probably best to create a new Github repo with the exact configuration you have to help people reproduce |
Just double checked here, this happens on HLS built from source as well, not just with the static binaries |
Hi. Sorry for the long delay. My repo: https://github.com/makarenya/yolo
|
UP. I tried to reproduce error on MacBook Pro (Late 2013) with macOS Catalina. And it reproduced. |
I'm on Mojave - so I guess whatever the issue is, |
Catalina is the latest version of macOS. Fixed in High Sierra but reproducible on Catalina? Strange ... |
Yeah, I got my Mac OS X version chronology wrong :) |
Also running into this, using MacOS 10.14.6 (Mojave). Are there any recent updates on this? |
+1 Fails on version 0.5 and 0.6 and master of haskell-language-server. OSX |
Likely duplicate of #469 which is a bug upstream in GHC. There are more details in that issue, including a workaround. |
Since everyone else having this problem seems to be on macOS, I'm just leaving a comment to say I've also had this problem on Ubuntu 20.04.3 LTS. As pointed out in other issues, running |
In visual studio code i got The Haskell (yolo) server crashed 5 times in the last 3 minutes. The server will not be restarted on Yesod project, just created by:
stack new yolo yesodweb/sqlite
In the project root command:
/Users/username/Library/Application\ Support/Code/User/globalStorage/alanz.vscode-hie-server/haskell-language-server-0.2.1-darwin-8.8.3
make a lot output, ends with
Ok, I try to use haskell-ide-engine instead of haskell-language-server with same segserv result.
BUT! i insert some debug output in the haskell-ide-engine, and got something:
segserv happends on this line in haskell ide engine, and i think, that in this porject is same.
https://github.com/haskell/haskell-ide-engine/blob/master/hie-plugin-api/Haskell/Ide/Engine/ModuleCache.hs#L256
The text was updated successfully, but these errors were encountered: