Skip to content

Eval plugin appears to stop working after a function def that has more than one pattern match #3312

Closed
@googleson78

Description

@googleson78

Your environment

Which OS do you use?

NixOS

Which version of GHC do you use and how did you install it?

[nix-shell:/tmp]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.2.4

via nix

How is your project built (alternative: link to the project)?

No project

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

Neovim+LanguageClient-neovim

Which version of HLS do you use and how did you install it?

[nix-shell:/tmp]$ haskell-language-server --version
2022-11-01T15:02:05.261746Z | Info | No log file specified; using stderr.
haskell-language-server version: 1.8.0.0 (GHC: 9.2.4) (PATH: /nix/store/d717g1x6mr0310lijj6671pws1k5cvn7-haskell-language-server-1.8.0.0/bin/.haskell-language-server-9.2.4-unwrapped)

via nix-shell -p haskell.packages.ghc924.haskell-language-server

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

No

Steps to reproduce

For the following file

-- >>> 5
-- 5
bla :: Bool -> Bool
bla True = True
bla False = False

The Evaluate... code lens pops up. However, for the following file

bla :: Bool -> Bool
bla True = True
bla False = False
-- >>> 5

it doesn't.

The thing that triggers this issue appears to be any multiline (more than one match) function definition.

This issue does not reproduce if we're using an hls built with 9.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-eval-plugintype: 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