Open fschuindt opened 2 months ago
Apparently, everything works normal if I don't use treesit and elixir-ts-mode. If I just use elixir-mode, everything behaves as expected.
@fschuindt that's incredibly strange. Should we get the author of elixir-ts-mode in on this? I talk to him on slack a bit.
@scohen indeed. I have opened an issue on the project: https://github.com/wkirschbaum/elixir-ts-mode/issues/49
I'm noticing that if I introduce an error to the code, the error will quickly flash in red (indicating an error), but right after it will go back to normal, as if the error was removed. Upon investigating, it seems that the LSP server is sending two
publishDiagnostics
notifications, one followed by the other.The first one contains the message about the error introduced in the
diagnostics
, the second one will contain thediagnostics
as an empty list.Here is the log:
Highlight for that part:
:point_up: This will instruct Flymake to remove the error highlight from my editor buffer.
TBH I'm not sure if this is considered a bug on Lexical's side. Probably there's an Eglot/Flymake configuration somewhere, but I'm wondering what you folks think about it. Any tips?
The relevant part of my
init.el
:Thank you!