-
Notifications
You must be signed in to change notification settings - Fork 710
Cabal-install assertion failed #7660
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
Comments
Suggestion: make |
I just tried and failed to reproduce. macOS Big Sur (11 -- 12 isn't out yet!). Cabal-install 3.6, ghc 8.10.4. Have you tried running |
(this does remind me of another issue that confuses me though -- why/how do we even have asserts on it our distribution builds? I thought they were supposed to be compiled out -- is it possible ghc doesn't handle compiling out asserts in general the way the docs promise -- or are we doing something wrong in our building process? or... is this intended behaviour and i'm just terribly confused about asserts?) |
Also, if that fails, please try passing an explicit new store dir with |
I guess it's intended. Better to have the exe crash than to wipe out user's data or compile a program that is subtly wrong and not provide any feedback to us that things are broken. However, assertion failures should provide more info to devs (of particular importance is info that helps to reproduce the failure) and a more understandable message to user (though, the message is essentially going to be "the program broke in a way we haven't forseen so please report a bug"). I have a tiny package that helps printing extra debug info, but it requires adding stuff at each |
I tried again with .. but I moved my old I still have no clues, but I will close this for now, as I can no longer provide any useful evidence. Sorry :( |
@ksqsf: thank you for the report. Indeed, the program may be sloppy in dealing with data from old versions that no longer match its changed assumptions (expressed in assertions, among others). So perhaps it was just that. We don't have the resources to track down and fix such issues and wiping out all old data would presumable inconvenience people too much, given how rarely it breaks (probably randomly corrupted data is a bigger problem, so people need to learn to wipe out their data anyway). Please do reopen if it occurs again. |
This may be related to #6006. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
To Reproduce
monomer
cabal v2-build
Expected behavior
cabal v2-build
should work.System information
Additional context
cabal v2-build
will report this assertion failure very early, even before actual building happens. Butcabal build --verbose=0
seems to defer this error later, and finally I arrived at:edit: cabal 3.4 works fine.
The text was updated successfully, but these errors were encountered: