-
Notifications
You must be signed in to change notification settings - Fork 843
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
Bug in stack build
: Cannot satisfy -package-id text-1.2.1.3-3718968f98d5614ccdc45c27d4e8b0a1 (version 0.1.4.0)
#980
Comments
stack build
: Cannot satisfy -package-id text-1.2.1.3-3718968f98d5614ccdc45c27d4e8b0a1 (version 0.1.4.0)
Hmm, that's odd! I can't reproduce this with Version 0.1.4.1, Git revision fee700e . |
I found a workaround when some Googling turned up a related bug someone had
Apparently (from my incomplete comprehension of that other issue report) On Fri, Sep 11, 2015 at 8:56 PM, Michael Sloan notifications@github.com
|
@snoyberg, is there anything we can do to help out users of HP? A warning, perhaps, if certain kinds of issues are detected in the global package database (or even falling back to --no-system-ghc automatically)? |
I think there may be a bug in stack, because it should be able to work On Sun, Sep 13, 2015, 6:39 AM Emanuel Borsboom notifications@github.com
|
@michaelochurch I would recommend deleting the HP installation. There seem to be a few problems with it, especially on Mac (missing dynamic libraries causing trouble with GHCi). However, for diagnosing any problem here, could you provide the output for the following commands (preferably as a separate Gist or paste)?
|
This looks like https://ghc.haskell.org/trac/ghc/ticket/4012. |
I managed to get this to go away by |
Wow, there's something very strange going on here. The output indicates that text-1.2.1.3-3718968f98d5614ccdc45c27d4e8b0a1 is definitely registered, and stack is obviously finding it, but then for some reason GHC isn't able to use it. That does look more like a Haskell Platform bug than anything else, but I can't be certain. It's your call how you want to proceed; since you've got it working (I'm guessing you mean by __un__installing HP?), feel free to close this and just continue using things. If you're interested in debugging further, the next set of commands I'd ask for a Gist of is:
|
@snoyberg, did you see #980 (comment)? This is a well-known bug in |
@peti Even with non-deterministic builds, stack should be able to handle the situation here correctly. It should be able to tell Cabal/GHC to build with a coherent set of dependencies. For some reason, that appears to not be the case. But it also appears to only be happening on Mac OS X (see #992, which seems quite similar to this). |
What do you mean by "a coherent set of dependencies"? The dependency set is coherent in the sense that all constraints are fulfilled. |
What seems to be happening is that stack is providing package IDs for foo and bar, where bar depends on a different package ID for foo. |
What do you mean by "stack is providing package IDs"? Stack has no idea those IDs exist. A library's ID is determined at compile-time by hashing the interface definitions, etc., and this is one level below what a package manager sees. You should let go of the notion that stack is somehow responsible for this error or that it could have done anything to prevent it from happening. It can't. The issue is completely orthogonal. @michaelochurch should simply erase |
@snoyberg I'm satisfied but I'll only close it if that's what you want. I don't think I understand this problem as well as you do, but it doesn't seem to be a problem in Stack. Would running those commands still provide useful information, given that I've uninstalled the Haskell Platform? I'll do so if it'll be useful. |
Thanks, but I don't think it's worth it. I'll wait to see if anyone else files a bug after installing HP, and badger them to run all of these commands ;) |
I've been working through the stack tutorial and when I try to add a dependency to the
.cabal
file, it breaksstack build
. Here's a full repro:If it helps, I'm running version 0.1.4.0 of stack, version 7.10.2 of ghc, and on OS X. I'm running with the Haskell Platform on this machine, which may be a factor.
The text was updated successfully, but these errors were encountered: