-
Notifications
You must be signed in to change notification settings - Fork 28
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
intero fails to install when the stack resolver has incompatible boot packages #154
Comments
This is a bug with upstream intero, you may want to post an issue there. That you have multiple versions of |
Well, that's stacks problem not mine. I'm not manually installing random libraries. That's all stacks doing. |
Can you post the resolver you're using? I'm curious if I can reproduce the issue locally. |
resolver: lts-11.13
extra-deps:
- happy-1.19.9@rev:2
- containers-0.5.11.0
- IfElse-0.85
compiler: ghc-8.2.2
compiler-check: match-exact |
The problem is that you're specifying a newer |
That sounds like a bug. |
It's an unfortunate downside of how dependencies are managed with GHC. This comment has more explanation and information, and the issue thread contains more of the trade-offs. In short, you can't depend on As a workaround, you can either use Or, as a third workaround (this may or may not work), you can comment out the |
intero-neovim can copy what the emacs package does for this: https://github.com/chrisdone/intero/blob/60e2e3f76f647b20d9de8418f9576ea157e21864/elisp/intero.el#L2224..L2231 (let ((default-directory (make-temp-file "intero" t)))
(intero-call-stack
nil (current-buffer) t nil "build"
"--copy-compiler-tool"
(concat "intero-" intero-package-version)
"--flag" "haskeline:-terminfo"
"--resolver" (concat "ghc-" ghc-version)
"ghc-paths-0.1.0.9" "mtl-2.2.2" "network-2.7.0.0" "random-1.1" "syb-0.7"))
|
fantastic, thank you! 😄 @hasufell I am going to edit the title to make it more clear what the problem is. |
thanks @chrisdone |
On startup, just fails.
The text was updated successfully, but these errors were encountered: