Skip to content

andys8/demo-haskell-language-server-jump-to-def-issue

Repository files navigation

Demo: Jump to definition issue

See haskell/haskell-language-server#1286

Update: Solution

Issue seems to be solved: haskell/haskell-language-server#1286 (comment)

Steps

  • Open test/Spec.hs
  • Jump to def with testHelper works
  • Jump to def with libraryFunction doesn't work

Known workaround

See branch workaround.

package.yaml contains:

tests:
  demo-hls-jump-to-definition-test:
    source-dirs: test
    dependencies: demo-hls-jump-to-definition

if src is additionally added as directory, it'll work. Downside: Higher compile times, redundant

tests:
  demo-hls-jump-to-definition-test:
    source-dirs:
      - test
      - src
    dependencies: demo-hls-jump-to-definition

Versions

haskell-language-server version: 0.9.0.0 (GHC: 8.8.3) (GIT hash: 6b6c405d14a29ab3d2e7dbb4e2f79229758d26ba)
cabal:          3.2.0.0
stack:          2.5.1
ghc:            8.8.3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published