https://github.com/konn/hls-repro
Minimal reproducing example for issue #70
https://github.com/konn/hls-repro
Last synced: 2 months ago
JSON representation
Minimal reproducing example for issue #70
- Host: GitHub
- URL: https://github.com/konn/hls-repro
- Owner: konn
- Created: 2020-05-02T05:43:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T03:46:33.000Z (over 4 years ago)
- Last Synced: 2025-01-23T17:20:05.144Z (4 months ago)
- Language: Haskell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction Procedure
This repository aims at providing a minimal reproducing example
for [Issue #70 of haskell-language-server][hls70] and [#868 of ghcide][ghcide868]## Setting
1. Checkout `10dbde048e8ac028e80f607445776c8375722f75` of haskell/ghcide.
2. Build with `stack build`.
4. Open this directory with VSCode. Make sure `hieExecutablePath` in `.vscode/setting.json`
is set to the value of `stack exec -- where ghcide`.
5. run `cabal build` in the shell.
6. Open `src/Lib.hs`.
7. HLS complains that:
```
{
"resource": "/Users/hiromi/Documents/Programming/Haskell/git/hls-repro/src/Lib.hs",
"owner": "Haskell (hls-repro)",
"severity": 8,
"message": "Unexpected usage error\nCould not load module ‘Lib.Plugin’\nIt is a member of the hidden package ‘hls-repro-0.1.0.0’.\nPerhaps you need to add ‘hls-repro’ to the build-depends in your .cabal file.\n",
"source": "pragmas",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 1
}
```[hls70]: https://github.com/haskell/haskell-language-server/issues/70
[ghcide868]: https://github.com/haskell/ghcide/issues/868