Your environment
Which OS do you use?
Ubuntu 22.04
Which version of GHC do you use and how did you install it?
$ cabal --version
cabal-install version 3.16.0.0
compiled using version 3.16.0.0 of the Cabal library (in-tree)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.10.3
I've obtained this using ghcup.
How is your project built (alternative: link to the project)?
Cabal, please see: https://github.com/martijnbastiaan/hls-getlinkable-issue
Which LSP client (editor/plugin) do you use?
VSCode + Haskell plugin
Which version of HLS do you use and how did you install it?
$ haskell-language-server-wrapper --version
haskell-language-server version: 2.13.0.0 (GHC: 9.10.3) (PATH: /home/martijn/.ghcup/hls/2.13.0.0/lib/haskell-language-server-2.13.0.0/bin/haskell-language-server-wrapper)
Have you configured HLS in any way (especially: a hie.yaml file)?
No
Steps to reproduce
See README over at https://github.com/martijnbastiaan/hls-getlinkable-issue
Expected behaviour
No errors
Actual behaviour
(GetLinkable,NormalizedFilePath "..")called GetLinkable for a file without a linkable
Debug information
Reproducer cherry-pickable for this project: martijnbastiaan@eb1bfc9
Potential fix: martijnbastiaan@c440682 Please see PR.
I'm not sure I'm fixing it in the right location. In any case, I found the name artifactIsSource very confusing given that you import boot files with {-# SOURCE #-}..
Your environment
Which OS do you use?
Ubuntu 22.04
Which version of GHC do you use and how did you install it?
I've obtained this using
ghcup.How is your project built (alternative: link to the project)?
Cabal, please see: https://github.com/martijnbastiaan/hls-getlinkable-issue
Which LSP client (editor/plugin) do you use?
VSCode + Haskell plugin
Which version of HLS do you use and how did you install it?
Have you configured HLS in any way (especially: a
hie.yamlfile)?No
Steps to reproduce
See README over at https://github.com/martijnbastiaan/hls-getlinkable-issue
Expected behaviour
No errors
Actual behaviour
Debug information
Reproducer cherry-pickable for this project: martijnbastiaan@eb1bfc9
Potential fix: martijnbastiaan@c440682Please see PR.I'm not sure I'm fixing it in the right location. In any case, I found the name
artifactIsSourcevery confusing given that you import boot files with{-# SOURCE #-}..