You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
I'm having an issue similar to #531 and #538 using hie @ 824c185 and VS Code 1.23.1 with hie extension 0.0.16.
STR:
open an empty test.hs
type f = 5<*>
Hit Undo, you should end up with f =| (| indicating the caret position)
Hit Redo
The temporary ghc-mod file (/private/var/folders/qc/6yf8538j3bxb57076xqy6qjw0000gn/T/ghc-mod98991/test98990-11.hs) now contains:
f = >5*<
The relevant part of /tmp/hie.log reads (I've omitted the common prefix {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"file:///Users/nickolay/dev/haskell/tmp/test.hs", of the JSON for brevity):
I'd like to confirm the issue and link to similar issue we encountered when working on Rust Language Server.
The root cause was handling text edits not in the order specified by the sent file versions (which VS Code sometimes outputs not in an ordered fashion during undo/redo).
I'm having an issue similar to #531 and #538 using hie @ 824c185 and VS Code 1.23.1 with hie extension 0.0.16.
STR:
test.hs
f = 5<*>
f =|
(|
indicating the caret position)The temporary ghc-mod file (
/private/var/folders/qc/6yf8538j3bxb57076xqy6qjw0000gn/T/ghc-mod98991/test98990-11.hs
) now contains:The relevant part of
/tmp/hie.log
reads (I've omitted the common prefix{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"file:///Users/nickolay/dev/haskell/tmp/test.hs",
of the JSON for brevity):The last line, corresponding to redo looks sane:
The full logs are attached.
hie-wire.log
hie.log
The text was updated successfully, but these errors were encountered: