-
-
Notifications
You must be signed in to change notification settings - Fork 390
Broken links for haddock docs #2194
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
Doc links generation is imprecise, it uses a heuristic that sometimes results in a wrong location. The ultimate fix for it is to parse .haddock files. This would provides far better doc-on-hover experience with more accurate and exhaustive documentation The bug & PR that I offered to fix it about a year ago: unfortunately it didn't proceed because I tried to raise and fix it upstream in haddock, afaik it's not fixed. I'm happy to contribute this PR again when haddock is fixed, or when HLS deprecates old GHC versions with broken |
@DunetsNM how interacts this (afaiu server specific) with the vscode specific open documentation hooks? Recently that vscode feature got a partial fix: haskell/vscode-haskell#452. It opens directly the docs in hackage or show in a panel but with broken links |
Could we link the issue/pr upstream here? thanks! |
@jneira oh I see, I guess you right ,this particular bug is in VSCode extension not the actual doc html file lookup. the upstream haddock issue is haskell/haddock#1246 |
Yep, this looks like a bug in with the Tbh, I think rather than having |
HLS 1.6.1, GHC 8.10.4, Cabal 3.4.0.0, MacOS.
HTML documentation seems to be totally broken for third-party dependencies. Perhaps nobody is using this feature since it's undocumented.
The
Documentation
link beneath the hover info leads to an almost blank page, with only theOpen on Hackage
link. This URL erroneously refers to thehtml
library (which isn't even a dependency of my project) instead of the one we want to browse: e.g.https://hackage.haskell.org/package/html-1.0.1.2/docs/Data-List-Extra.html#v:splitOn
instead ofhttps://hackage.haskell.org/package/extra-1.7.10/docs/Data-List-Extra.html#v:splitOn
.The text was updated successfully, but these errors were encountered: