-
Notifications
You must be signed in to change notification settings - Fork 696
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
Internal error in InstallPlan.completed #6396
Comments
Hmm. I cannot reproduce this locally, yet EDIT: cannot reproduce with 1.2.0 nor |
cabal/cabal-install/Distribution/Client/InstallPlan.hs Lines 649 to 650 in 53eddce
I don't know what's the variant violated there is, and why it might be violated. @dcoutts ideas? |
To fix CI, clean up CI caches. That should fix the issue, if it doesn't please report, then I'll need to take a closer look. Hopefully we get the above patch released soon, so one could investigate closer what is broken in the store. |
cleaning up caches did work. I'm closing this issue, this is a duplicate of #4119 |
For the record, to reproduce this kind of error
You'll get something like
|
@phadej I'm getting a similar error trying to build https://github.com/haskell/haskell-language-server (details are in haskell/haskell-language-server#194). You showed how to reproduce this error (which I managed without any help or guidance ;). How can I remedy this error? Cleaning up what caches in my installation, and how? I hope the answer is not "wipe out your |
Say what...?! |
@mouse07410 GitHub has extensive keyboard shortcuts, https://docs.github.com/en/github/getting-started-with-github/keyboard-shortcuts#issue-and-pull-request-lists |
@mouse07410 Another less invasive workaround could be to delete manually all the offending packages from the store dir and run |
What’s a good way to figure if a package is “offending”? Just start with those that the install attempt complains about? And what’s the best way to delete them - is there a command, or should I go manually through all the |
Just tried installing All my builds are dynamic. What subdirectories from this do I need to completely wipe? $ ll ~/.cabal
total 112
drwxr-xr-x@ 16 ur20980 MITLL\Domain Users 512 Jul 3 18:30 ./
drwxr-xr-x@ 758 ur20980 MITLL\Domain Users 24256 Jul 12 16:27 ../
-rw-r--r--@ 1 ur20980 MITLL\Domain Users 6148 Mar 28 2019 .DS_Store
drwxr-xr-x 49 ur20980 MITLL\Domain Users 1568 Jul 8 18:57 bin/
-rw-r--r-- 1 ur20980 MITLL\Domain Users 5554 Jun 22 16:54 config
-rw-r--r-- 1 ur20980 MITLL\Domain Users 4737 Mar 15 17:07 config-orig
-rw-r--r-- 1 ur20980 MITLL\Domain Users 5648 Apr 3 11:09 config.backup
drwxr-xr-x 3 ur20980 MITLL\Domain Users 96 Jun 23 22:08 lib/
drwxr-xr-x 6 ur20980 MITLL\Domain Users 192 Jul 8 22:22 logs/
drwxr-xr-x 5 ur20980 MITLL\Domain Users 160 Apr 1 11:22 packages/
drwxr-xr-x 4 ur20980 MITLL\Domain Users 128 Apr 11 21:18 share/
-rw-r--r-- 1 ur20980 MITLL\Domain Users 5706 Jul 3 18:30 skete-config
-rw-r--r-- 1 ur20980 MITLL\Domain Users 5574 May 1 21:33 static-config
drwxr-xr-x 4 ur20980 MITLL\Domain Users 128 Jun 23 22:08 store/
-rw-r--r-- 1 ur20980 MITLL\Domain Users 699 Jun 12 2018 where-is-my-stuff.txt
-rw-r--r-- 1 ur20980 MITLL\Domain Users 25 May 1 21:19 world And I assume I'll need to rebuild every cabal-installed executable in
Update
Apparently, it doesn't work on Mac at all. |
Describe the bug
Internal error in
InstallPlan.completed
occurs without a clear reason or indication what went wrong.To Reproduce
Happens on CI, here:
https://travis-ci.org/mrkkrp/zip/jobs/619365152
Only with GHC 8.6.5. I believe it started to happen relatively recently (*), so maybe a new version of some dependency was published and it breaks something in an unexpected way, but why would it fail with such an informative error message?
(*) I tried to re-run older builds that used to succeed and now they also fail, and also only for GHC 8.6.5.
Expected behavior
Ideally the build should succeed. If there is a genuine problem, a helpful error message should be displayed.
System information
Whatever Travis CI uses. Cabal version is 3.0.
The text was updated successfully, but these errors were encountered: