Refactor plugin shows "bug in srcspan parser" when trying to construct code action #4079
Labels
status: needs triage
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Which OS do you use?
Linux
Which version of GHC do you use and how did you install it?
9.4.8
How is your project built (alternative: link to the project)?
Which LSP client (editor/plugin) do you use?
VSCode
Which version of HLS do you use and how did you install it?
latest master
Have you configured HLS in any way (especially: a
hie.yaml
file)?hie.yaml
This compiler error:
leads to this error being shown in the clinet:

The error is coming from here:
haskell-language-server/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs
Line 952 in e93528b
After adding some tracing I see that srcspan that's being passed to the parser is this:
which seems like the regex extracting the input for srcpan parser is consuming too much input.
I'll look into this later.
The text was updated successfully, but these errors were encountered: