haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.66k stars 355 forks source link

Importing a hsc file results in error #4407

Open cheerio-pixel opened 1 week ago

cheerio-pixel commented 1 week ago

Your environment

Which OS do you use?

Which version of GHC do you use and how did you install it? Linux lenovotp-20n3s7bc02 5.15.165-1-MANJARO

How is your project built (alternative: link to the project)? ghc: 9.4.8 cabal: 3.10.3.0

Which LSP client (editor/plugin) do you use?

emacs+lsp-mode Which version of HLS do you use and how did you install it?

Have you configured HLS in any way (especially: a hie.yaml file)? 2.9.01 from ghcup

What's wrong?

If I create a .hsc file and import it from a another .hs file, then it doesnt find it. Is like is not compiling the hsc file. I have checked that cabal compiles it, so I think is a hls problem.

Debug information

soulomoon commented 6 days ago

the following example works for me : https://github.com/soulomoon/helloworld

Tool versions found on the $PATH
cabal:          3.12.1.0
stack:          2.15.7
ghc:            9.8.2
image