Open jakio6 opened 3 weeks ago
Hi, thank you for the bug report!
I feel like the reason why this is difficult to do correctly is that it is impossible to tell when the expected output ends... We would need a terminating character, or another identifier for multi line outputs. Or, we might want to forbid multi-line outputs altogether.
Maybe we can take inspiration from cabal-docspec
and see how it behaves in this situation?
Append an extra <BLANKLINE>
to the last two case would be enough to pass doctest
.
I'll try to work on this issue
Your environment
Which OS do you use? Linux
Which version of GHC do you use and how did you install it? 9.8.2, ghcup
How is your project built (alternative: link to the project)? single file
Which LSP client (editor/plugin) do you use? neovim builtin
Which version of HLS do you use and how did you install it? 2.7.0.0, ghcup
Have you configured HLS in any way (especially: a
hie.yaml
file)? noSteps to reproduce
Evaluate twice
Expected behaviour
No diff for the last two test.
Actual behaviour
First evaluate:
Second evaluate:
Debug information