haskell / haskell/vscode-haskell

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

Open
#520 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
597
Forks
98
PR merge metrics
No merged PRs in 30d

Description

### 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](https://user-images.githubusercontent.com/2716069/146671879-daf9d789-38da-4fff-8024-8022ff36e74f.gif)

### 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](https://github.com/haskell/vscode-haskell#downloaded-binaries))

Debug output:

```

```

Paste the logs from the lsp-client, you can check instructions about for VS Code [here](https://github.com/haskell/vscode-haskell#troubleshooting)

LSP logs:

```

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.