VS Code HLS Plugin doesn't work for projects with multiple libraries #2276
Labels
build tool: stack
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
I have a problem with a project that has more than one library. I'm using
hpack
for bootstrapping the project. VS Code doesn't work for the source code files in the libraries. VS Code shows me an inline error message (screenshot below), which doesn't seem to appear in the LSP logs.This might be similar to #233, but I felt it's different enough to create a new issue.
I also don't know whether this is an issue with the VS Code plugin or with HLS itself.
Your environment
I'm using VSCode with the official HLS plugin.
haskell-language-server version: 1.4.0.0, GHC 8.10.7
Which OS do you use: Ubuntu 21.04
Which lsp-client do you use: VS Code
Describe your project (alternative: link to the project):
I'm using stack and I have more than one lib. I can't share the actual project, but I have a minimal project to reproduce that: https://github.com/L7R7/haskell-multi-lib
Steps to reproduce
Clone the project, open it in VS Code and open
another-src/Lib.hs
Expected behaviour
I would expect HLS to work as usual in projects that have a single library
Actual behaviour
The error message reads
Include debug information
LSP logs:
The text was updated successfully, but these errors were encountered: