-
Notifications
You must be signed in to change notification settings - Fork 208
HIE reports garbled source code #538
Comments
Yes, I noticed this myself recently, using vscode too. I think something has changed in the latest/current library in terms of managing changes. |
And the log does not show the problem itself, which will be in prior But I think I have a usable log locally too. |
And this is a fragment of log from my incident observed in the wild
The user is typing the And I suspect that either the machine is heavily loaded. and gnome is sending repeat chars (which is something I have seen recently on my machine), or there is a bug in vscode. @kfigiela, what operating system/distribution did you see this on? |
And I just realised that the input in vscode is not garbled, so it is not extra UI events being injected by gnome etc. |
Could the duplicate didChange events be related to #531? |
@alanz I am using macOS (10.13.4). |
I think this problem has gone away? Can I close it? |
Yup, haven't seen this for a long while. Will reopen if issue appears again. Thanks! |
This is really strange. Not sure if this is issue with VS Code plugin of HIE.
It looks like HIE under some conditions is working on malformed source. HIE stops working properly and reports strange parse errors for some files: source code in error message is garbled, some characters are repeated and sections are duplicated and reversed. Changing file (also emptying it and reverting previous content) does not help. Restarting HIE does not help too. Sometimes restart of VS Code helps. Source code in subject ofc is correct and compiles fine. Parse errors are reported both from ghc-mod and hlint sources of HIE.
the actual source was
I am unable to provide reproducible steps, however it happens quite often for me. Are there any other logs I should look into?
Full log:
The text was updated successfully, but these errors were encountered: