Closed ogoffart closed 3 months ago
https://github.com/slint-ui/slint/pull/5805 should make this one much more bearable.
I didn't notice any change. Still really easy to reproduce on slintpad, and vscode when the preview is visible.
Yes, I did not claim it was fixed, the text is just updated now so you have a chance for the issue to fix itself again.
This is reproducable both in slintpad and vscode when the preview is visible
Imagine a component with something like
Of course this is an error. Add
px
, by quickly typingp
thenx
and notice that you still get an error thatp
is not an unit.What I think happens is that:
p
, editor send that to the LSPx
, editor sends that to LSPWe do report the error from the preview and the language thread separately, because the preview do more passes and therefore can catch errors that the language thread doesn't. But it seems we don't clear error from the preview thread when there are no more errors