LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Status message not updated properly

Open haferburg opened this issue 4 years ago • 6 comments

E. g. the status message is not cleared when textDocument/publishDiagnostics becomes empty after I fixed all issues.

It always seems to lag behind one change:

image

image

image

image

The message is updated if I move the cursor to another line, then come back. image

I just updated to LSP 0.14.3.

haferburg avatar Nov 28 '20 13:11 haferburg

This is fixed in the ST4 branch. I don't personally see me fixing this in the ST3 branch, as I have been using ST4 full-time for about a year now. You can download an alpha version of ST4 through the Discord channel (see the bottom of the readme page of this repo to find the invite link). Overall, there have been a ton of both small and big improvements.

rwols avatar Nov 28 '20 15:11 rwols

I checked ST4 and LSP 4070 1.2.6. https://github.com/7mail/lsp_1495/blob/main/1495.log here's a log corresponding to changing a line const auto t = 1l; const auto t = 1s; const auto t = 1sv; const auto t = 1s; in somewhat this order and saving in between. rafal suggested that something is replacing file's contents. The problem was auto format on save https://packagecontrol.io/packages/Clang%20Format Disabling it fixes the issue. lsp's auto formatting on save doesn't cause this issue.

matter-it-does avatar Dec 31 '20 11:12 matter-it-does

I've created a project trying to reproduce your issue, but I cannot reproduce it: https://github.com/rwols/lsp-issue-1495

I installed the Clang Format plugin. Packages/User/clang_format.sublime-settings is:

{
    "style": "File",
    "format_on_save": true,
    "binary": "/usr/local/bin/clang-format",
}

lsp_format_on_save is set to false in Packages/User/LSP.sublime-settings.

rwols avatar Dec 31 '20 13:12 rwols

@rwols Thanks for taking the time! I see that the bug doesn't show on small files. https://github.com/7mail/lspbug/ I've invited you to see this repo. I added some gibberish files and lots of gtest macros and some clang-tidy errors too. The bug now shows up. i've also added my lsp settings if they're of any use.

matter-it-does avatar Dec 31 '20 19:12 matter-it-does

Closing because I cannot reproduce this.

rwols avatar Jun 04 '21 18:06 rwols

It’s apparently still an issue.

rwols avatar Jun 04 '21 19:06 rwols

I'll assume this was fixed as there were some related changes and there is no reliable reproduction steps in here.

rchl avatar Oct 09 '22 11:10 rchl