You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then you exit the insert mode using , you will be seeing a red mark marking the beginning of the comment. It says something about your comment is not finished correctly. However, the error message is incorrect.
The way I remove this error is to write the file and reload it using ":e" command, or using ":CocRestart"
It's not a big problem, but it's annoying.
I'm using clangd-8 BTW.
Maybe this type of comments will shadow everything afterward before it's completed, and after completing the comments, the language server will need to process a lot more new symbols that slow it down, this might be the reason why I can constantly reproduce the problem.
According to #596 (comment)
I'm still having this problem, and I found an example which will consistently reproduce the problem on my machine
So suppose you have a file like the above code snippet
Then you put your cursor on the line: typedef ...
Then press O to insert a line above.
Enter:
/*<cr><cr><cr><backspace>/
So your comment should be completed, your code will look like the snippet below.
And then you exit the insert mode using , you will be seeing a red mark marking the beginning of the comment. It says something about your comment is not finished correctly. However, the error message is incorrect.
The way I remove this error is to write the file and reload it using ":e" command, or using ":CocRestart"
It's not a big problem, but it's annoying.
I'm using clangd-8 BTW.
Maybe this type of comments will shadow everything afterward before it's completed, and after completing the comments, the language server will need to process a lot more new symbols that slow it down, this might be the reason why I can constantly reproduce the problem.
Also reproduce with below javascript code.
Cursor on the line:
function ...
Then press O to insert a line above.
Enter:
/*<cr><cr><cr><cr><backspace>/<esc>
then got the follow diagnostic:
tsserver channel output
The text was updated successfully, but these errors were encountered: