-
Notifications
You must be signed in to change notification settings - Fork 701
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
cabal haddock --executables fails with "internal error when calculating transitive package dependencies" #1919
Comments
@kosmikus: I have prepared a minimal Cabal package reproducing this error. With GHC 7.8.2 and
#1085 may be a related ticket. |
Seeing this error on one of my projects as well. |
I can confirm this error as well with the --executable flag. |
I've tracked this error down to the
From the local documentation:
It seems to be a problem resolving the inplace package dependency of the local library. When I remove that dependency I am able to generate the haddocks for the executable. Would anyone familiar with the cabal code be able to give me anymore pointers for digging into this more? I don't mind spending more time to fix this. |
Has any progress been made on this issue? We have some projects with significant code in the modules which only appear in the executable and it would be great if documentation could be generated for those as well. Of course removing the dependency on the local library is not really an option. |
This problem still occurs with 1.24.0.0. |
I think this is fixed with latest Cabal.
Christopher Lewis <[email protected]> schrieb am Sa., 27. Okt. 2018,
06:54:
… This problem is also present in 2.2.0.1.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1919 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AByiie6zza8agAdypNbxg2ile2qvVlkBks5uo5KNgaJpZM4CA20M>
.
|
FWIW, this bug still exists for the |
My |
I get the same error when I use Is the only workaround to just not use internal libraries? Does anyone have an idea where to start poking to work towards a patch? |
Due to a bug about haddock, cabal, and intenal libraries (haskell/cabal#1919), `haddock` fails, so remove it from CI for now.
FYI I'm getting this on darcs 2.16.2:
I'm using cabal-install 3.2 on Windows:
|
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Seems like this is still an issue? I'm surprised this issue is still open after 7 years. Is there any progress yet? Is this work blocked by another issue, or can it be worked on today? |
I don't see any label suggesting this is blocked (e.g., on a haddock bug), so I guess any work on this would be very welcome. I'm surprised this is still failing: I'm running haddock on projects with multiple libraries and it works for me (even if it's rather useless until this haddock work is streamlined: haskell/haddock#1379). Apparently the pattern of internal library deps matters. |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Here's an up-to-date minimal repro: https://github.com/brandonchinn178/cabal-repro-1919 |
It works for me with development version of cabal (I run |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ oh interesting. It fails with
so maybe it's a GHC bug? EDIT: never mind, this is the cabal executable built by stack |
Could you make stack build a newer cabal executable? Preferably dev version from branch master? This one looks like 3.2 and it works fine with 3.5 for me and the invocation you show does not see particularly wild, so perhaps this was fixed already? |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Hm so I checked out the
So it's probably a Stack bug. I believe this issue can be closed. Mostly because |
It would still be nice to report on Stack issue tracker and perhaps improve Cabal to avoid this problem, if it's more on our side. |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ It is tracked for Stack: commercialhaskell/stack#4428 But it actually might be a bug in GHC/Cabal, now that I'm digging further. Can you clone my minimal repro again (https://github.com/brandonchinn178/stack-repro-4428) and do the following:
|
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Ok I think I have a better idea of what's going on. It seems that when calling But when manually building Technical detailscabal haddock
Then
Setup.hs, Cabal-the-library
|
Reproduced. Got So it looks like cabal problem? The Setup way outdated vs the v2 way? |
When running
the command fails with
I have tagged my source code tree where this problem exists:
https://github.com/massysett/penny/tree/cabal_error
This is cabal-install version 1.20.0.2.
The text was updated successfully, but these errors were encountered: