ITADN

(GetLinkable,NormalizedFilePath "..")called GetLinkable for a file without a linkable

#4912Openmartijnbastiaan 创建于 2026-04-24
type: bugcomponent: ghcide
M
martijnbastiaancommented
### 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: https://github.com/martijnbastiaan/haskell-language-server/commit/eb1bfc9a6f9696276a9e3f10f1833171906c7525 Potential fix: https://github.com/martijnbastiaan/haskell-language-server/commit/c4406823792fde65695abe1089bfe7880e7fd3ef 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 #-}`..
1 条评论