Skip to content

Clicking "Source" to open haddock source on hackage opens invalid URL #520

@jhrcek

Description

@jhrcek

Your environment

Which OS do you use:
Linux, fedora 34

Which lsp-client do you use:
Vscode
Describe your project (alternative: link to the project):
stack based project

Steps to reproduce

See steps gif:
open-source-incorrect

Expected behaviour

Correct page is opened on hackage
https://hackage.haskell.org/package/base-4.14.3.0/docs/src/Data-Foldable.html#concatMap

Actual behaviour

Invalid URL is opened on hackage
https://hackage.haskell.org/package/base-4.14.3.0/docs/src/Data.Foldable.html#concatMap
` ^ It should be Data-Foldable, not Data.Foldable

Include debug information

Execute in the root of your project the command haskell-language-server-wrapper --debug . and paste the logs here:
(if you are using the vscode extension check the executable location here)

Debug output:
<paste your logs here>

Paste the logs from the lsp-client, you can check instructions about for VS Code here

LSP logs:
<paste your logs here>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions