Skip to content

Errors get mixed up after edit #167

Closed
@itsfarseen

Description

@itsfarseen

I'm using Neovim + Coc.nvim + HLS.

Suppose I have a function with a bunch of errors:
hls1

Now I fix one of those errors. But the error doesn't disappear yet.
hls2

Curiously, a new error has appeared. Looks like HLS misplaces the text I just inserted earlier into the next line.
gGetState is juxtaposed onto doVarDeclare "foo" TypeInt. There wasn't an error in this line before.
hls3

Reloading the file using :e in neovim fixes the misplaced errors. So does :CocRestart.
Anecdotally, this has happened before in HLS + VSCode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs infoNot actionable, because there's missing informationtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions