-
-
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
ghcide not starting for stack projects with docker enabled builds #1037
Comments
This seems an issue with hie-bios rather than ghcide, since it gets ExitFailure when it tries to load the session. CC @mpickering |
How does stack's docker integration work? Does it mean that |
Thank you for responding, guys. I believe that with docker enabled stack builds, ghc is only available inside a spawned docker container, yes, and that one have to pass flags and params to ghc via stack commands, such as A small snippet from an 2015 fpcomplete-blog-post explaining the integration between stack and docker : "When Docker is enabled in stack.yaml, every invocation of stack (with the exception of certain sub-commands) transparently re-invokes itself in an ephemeral Docker container which has the project root directory and the stack home (~/.stack) bind-mounted. The container exists only to provide the environment in which the build runs, nothing is actually written to the container's file-system (any writes happen in the bind-mounted directories) and it the container is destroyed immediately after stack exits (using docker run --rm)" |
Should be fixed once haskell/hie-bios#97 is merged. |
We looked into this a little (haskell/hie-bios#101) and came to the conclusion that it was out of scope for Therefore, you should use |
Thanks for looking into that. I agree that this can’t be fixed in |
That possibility never closed my mind, thanks! |
Steps to reproduce:
Run a stack build with a stack.yaml containing
now running
ghcide
results in (I had to retry this command due to some docker-pull in the background that gave a different error message)The text was updated successfully, but these errors were encountered: