-
Notifications
You must be signed in to change notification settings - Fork 97
Use implicit-hie when no explicit hie.yaml #782
Conversation
See my comment in haskell/haskell-language-server#386 (comment) The test suite hangs because lsp-test has a timeout of 30? seconds, thus failing tests become super slow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
EDIT: I have just read the comment, and I think this is correct, gen-hie works for cabal and stack projects, only.
-- This is needed to prevent a GHC crash when building | ||
-- Development.IDE.Session with stack on 8.10.1 on Windows | ||
if (impl(ghc > 8.9) && os(windows)) | ||
ghc-options: -fexternal-interpreter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this been removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for nor mentioning it, my local windows build was failing due to a segfault in the external interpreter (the thing that line try to fix in ci!)
The ci job has failied for other reason, let's see if it continue failing due to segfault without -fexternal-interpreter
after fixin the actual error.
//cc @bubba
We maybe need more code-paths to support stand-alone files. |
jumm i assumed incorrectly gen-hie would keep the fallback to the direct cradle with no build system present. I'll take a look. |
My original plan was use |
Can we turn EDIT: My motivation is, that this is essentially a single code-path, since the implicit cradle won't select |
Well, i am not sure if
|
I think this is great and I'm happy to merge it, but I have a couple of requests that can either be done in this PR of in follow-ups:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the rest can be adressed in follow-up PRs
Agree with all of them, i would add a fifth one: state in the (at least) the hls readme the cases when the implicit cradle will fail: common stanzas and conditionals that introduce new modules+path definitions. I think (hope?) they are not so frequent but still. |
* Use implicit-hie when no explicit hie.yaml * Use implicit-hie-cradle master in all build config files * Set correct hie-bios version for ghc-8.10.1 * Fix windows ci build
* Use implicit-hie when no explicit hie.yaml * Use implicit-hie-cradle master in all build config files * Set correct hie-bios version for ghc-8.10.1 * Fix windows ci build
* Use implicit-hie when no explicit hie.yaml * Use implicit-hie-cradle master in all build config files * Set correct hie-bios version for ghc-8.10.1 * Fix windows ci build
//cc @Avi-D-coder