Skip to content

HLS suggests quick fixes but cannot apply them #3241

Closed
@mfriley

Description

@mfriley

Your environment

  • Arch Linux
  • Emacs 28.2 + Eglot (also tested: lsp-mode, VSCode OSS with Haskell LSP plugin 2.2.1)
  • GHC 9.2.4
  • HLS 1.8.0.0
  • Cabal 3.6.2.0
  • Stack 2.9.1

Steps to reproduce

Write any code that HLS will suggest a quick fix for, such as: f x = id x.

Expected behaviour

HLS should suggest a quick fix, then apply the change after selecting the quick fix.

Actual behaviour

HLS offers the appropriate code actions, but quick fixes throw errors instead of applying the changes to the code. Other code actions, such as "Ignore hint ... in this module" still work. Other HLS features also work.
I have tested this with both Emacs LSP packages as well as VSCode, with identical results in all three cases.

Debug information

Error condition, please check your setup and/or the issue tracker: ReactorMessageActionException ExitFailure 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    level: easyThe issue is suited for beginnerstype: 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