Skip to content

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

@martijnbastiaan

Description

@martijnbastiaan

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 #-}..

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions