Skip to content
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 v2-haddock --haddock-for-hackage does not generate hyperlinks to subprojects in the same source tree #7068

Open
cohomology opened this issue Sep 14, 2020 · 2 comments

Comments

@cohomology
Copy link

cohomology commented Sep 14, 2020

Describe the bug
I am invoking v2-haddock in a haskell repository with multiple subprojects and a cabal.project file. In this project are haskell packages A and B and B depends on A. Then the types in A are not correctly hyperlinked from B.

To Reproduce

git clone https://github.com/cohomology/gi-cairo-render
cd gi-cairo-render
cabal v2-haddock all --builddir=docs --haddock-for-hackage --enable-doc

I get the following warning:

Warning: GI.Cairo.Render.Connector: could not find link destinations for:
    Render

Render is defined in GI.Cairo.Render included in the same git repository.

When I copy the subdirectory gi-cairo-connector out of the repository to somewhere else and invoke the command only for gi-cairo-connector, the link is generated correctly.

I have:

cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library
@phadej phadej changed the title cabal v2-haddock does not generate hyperlinks to subprojects in the same source tree cabal v2-haddock --haddock-for-hackage does not generate hyperlinks to subprojects in the same source tree Sep 14, 2020
@Mikolaj
Copy link
Member

Mikolaj commented Jul 16, 2021

I wonder if this purely a cabal bug, or if it's in any way helped by the recent progress in the haddock tool: #5949 (comment)

@ulysses4ever
Copy link
Collaborator

Compilingwith Cabal 3.8 / GHC 9.4 I only get

Warning: GI.Cairo.Render.Connector: could not find link destinations for:

	- GI.Cairo.Render.Internal.Render

which, indeed, I do not see.

@cohomology could you confirm that this is fixed for you with the latest versions of the tooling? In which case we could close it (along with #6569).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants