Closed mcecode closed 2 weeks ago
I've found the issue! It's related to how we convert from the Language Server Protocol Range
to Harper's Span
. I'll get a fix drafted right away and you can test it. I've been testing Harper this whole time in Neovim, which adds line breaks for us. Since Visual Studio Code doesn't, we're hitting a bunch of new cases. Thanks for finding all these issues.
Alright. The issue should be resolved. Give it go and let me know if you run into anything else.
I can confirm that this issue has been resolved. I'll be closing it now. Thank you for the speedy bug fixes!
How to reproduce
Add a comment with an error on the first line of an empty file. Don't add a new line character at the end. Something like:
Hover on the part with an error (i.e., thur).
harper-ls
panics.Video
harper-issue.webm
Backtrace