dramforever/vscode-ghc-simple

Diagnostics parsing is broken for GHC versions after 9.6.*

EduardSergeev opened this issue · 1 comments

Status

  • A workaround is available
  • A fix is written
  • A fix is released
  • The fixed version is on the marketplace.

  • Version of vscode-ghc-simple: 0.2.3
  • Version of VSCode:
  • Version of Haskell-related tools:
    • GHC: 9.6.3
    • Stack: 2.13.1
    • Cabal: N/A

Steps to reproduce

Open Stack project targeting GHC version newer than 9.6.* (e.g. 9.6.3) which generates warning (and probably some errors?). Check how these warning are displayed in PROBLEMS tab.

When the same project targets GHC versions 6.4.* or older all warning are correctly parsed and displayed. However warning (and probably some errors?) generated by GHC 9.6.* are not being parsed by vscode-ghc-simple, e.g.:
image

Workspace

I believe any Stack project targeting newer version of GHC will have this problem, e.g. this project's branch which targets GHC 9.6.4 generates a lot of warnings which cannot be parsed by the latest version of vscode-ghc-simple

GHC log

vscode-ghc-simple log

closed by #100 and release v0.2.4.