Skip to content
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

WIP: Hie bios docker support #101

Closed
wants to merge 1 commit into from

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Dec 13, 2019

Currently with hard-coded arguments for the output file in docker mode.
Does not work for me, in a project with docker enabled, I currently get the error message:

⨯ hie-bios check src/Lib.hs                                               
hie-bios: hie-bios: can't find a package database at /opt/ghc/8.6.4/lib/ghc-8.6.4/package.conf.d

The output file looks like this for me:

⨯ cat out
/home/baldr/Documents/haskell/fprog
--interactive
-i
-odir=/home/baldr/Documents/haskell/fprog/.stack-work/odir
-hidir=/home/baldr/Documents/haskell/fprog/.stack-work/odir
-hide-all-packages
-i/home/baldr/Documents/haskell/fprog/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1/build
-i/home/baldr/Documents/haskell/fprog/src
-i/home/baldr/Documents/haskell/fprog/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1/build/autogen
-i/home/baldr/Documents/haskell/fprog/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1/build/global-autogen
-stubdir=/home/baldr/Documents/haskell/fprog/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1/build
-package-id=base-4.12.0.0
-package-id=containers-0.6.0.1
-package-id=data-ordlist-0.4.7.0-JijOptHq8X5AysaK6Liyhk
-optP-include
-optP/home/baldr/Documents/haskell/fprog/.stack-work/ghci/1930ce2a/cabal_macros.h
-ghci-script=/tmp/haskell-stack-ghci/834e85f2/ghci-script

Aims to fix https://github.com/digital-asset/ghcide/issues/221#issuecomment-565626118

@fendor fendor force-pushed the hie-bios-docker-support branch from c236288 to 11ef88e Compare December 13, 2019 23:58
@mpickering
Copy link
Collaborator

Where does that path come from?

@mpickering
Copy link
Collaborator

Perhaps this will never work of the packaged are only in scope inside the container. You would have to run the IDE inside the container as well.

@fendor
Copy link
Collaborator Author

fendor commented Dec 14, 2019

No idea where this path comes from.

Yeah, that would definitely work.

@mpickering
Copy link
Collaborator

And if you run the IDE inside the same container then the stack support will work without any modifications I think.

@mpickering
Copy link
Collaborator

Closing as out-of-scope.

@mpickering mpickering closed this Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ghcide not starting for stack projects with docker enabled builds
2 participants