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

Can't start stack ghci with Mueval because of funky Cabal file #1094

Closed
bitemyapp opened this issue Oct 3, 2015 · 8 comments
Closed

Can't start stack ghci with Mueval because of funky Cabal file #1094

bitemyapp opened this issue Oct 3, 2015 · 8 comments
Assignees
Milestone

Comments

@bitemyapp
Copy link
Contributor

$ stack ghci mueval:exe:mueval
Using main module: Package `mueval' component exe:mueval with main-is file: /home/callen/work/mueval/watchdog.hs
Configuring GHCi with the following packages: mueval
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
ghc: --interactive can't be used with -prof or -unreg.
Usage: For basic information, try the `--help' option.

Cabal file: https://github.com/bitemyapp/mueval/blob/master/mueval.cabal#L31-L51

I don't see prof/unreg anywhere?

@snoyberg
Copy link
Contributor

snoyberg commented Oct 6, 2015

It appears to be the -static usage. This sounds like a GHC bug (as far as the confusing messages go), would you be able to open up an issue upstream?

@snoyberg snoyberg added this to the Support milestone Oct 6, 2015
@bitemyapp
Copy link
Contributor Author

@snoyberg sure, should it go to GHC Trac?

@snoyberg
Copy link
Contributor

snoyberg commented Oct 6, 2015

Yes, I think so. It should be reproducible with just the command line for ghci.

@chrisdone should we strip out problematic arguments to ghci like -static?

@chrisdone
Copy link
Member

@snoyberg We already do such stripping, so I'll go ahead and skip -static.

@chrisdone
Copy link
Member

@bitemyapp Implemented in c42f625. Can you confirm and close?

@mgsloan
Copy link
Contributor

mgsloan commented Nov 5, 2015

No response, looks fixed to me. Closing!

@bitemyapp
Copy link
Contributor Author

@mgsloan @chrisdone this did indeed solve it, sorry for the delay!

@mgsloan
Copy link
Contributor

mgsloan commented Nov 6, 2015

No worries, just doing issue cleanup :D

dysinger added a commit that referenced this issue Nov 13, 2015
* master: (106 commits)
  Fix ghci -package-id for lib dep from test #1222
  Fix passing of include dirs to GHCI #1222
  Minor change to some local var naming
  Fix a copy-o which breaks ghci test targets #1222
  Only ask for commit count once when compiling
  Move Windows installers above manual download
  Import all modules after loading them (#995)
  replace if then else with case matching (multiway if)
  Control/Concurrent/Execute.hs : redundant do
  Use stack setup so you can ignore most of the output
  Don't cache the GHC folder
  Strip -static before passing to GHCi (#1094)
  Fix: unlisted files in tests and benchmarks trigger extraneous second build (fixes #838)
  Don't fail when registering/looking up library for executable-only packages #1232
  Fix help for default true bool flag's enable hint
  Rebuild when cabal file is changed
  watched command: show files, not directories
  Update changelog
  Fix: Haddocks not copied for dependencies (fixes #1105)
  Remove redundant Version from InstalledMap
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants