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
On Neovim v0.10.1 going through lspconfig/mason with ruby-lsp v0.17.13
Reproduction steps
Given erb with multiple ruby fragments on the same line, the diagnostic "unexpected local variable or method" shows up when it should not. If you add a line break in the source, it goes away. If you remove the line break, it comes back.
The expectation should be that each fragment is distinct.
Note that the first example has line breaks and no diagnostics
The text was updated successfully, but these errors were encountered:
Yeah sorry, please ignore that.
I can't reproduce this issue in VS Code though. The diagnostics feature should also be disabled for erb files anyway. Can you check with folks in #2432 to see if they have similar issues?
I don't really know whats going on, but taking a guess, i'm thinking that this isn't diagnostics, this is parse errors that show through diagnostics ui in neovim, but don't on vsc. However the raw ruby is getting parsed out of the erb is probably missing an explicit ; or something at the end of each fragment
Description
On Neovim v0.10.1 going through lspconfig/mason with ruby-lsp v0.17.13
Reproduction steps
Given erb with multiple ruby fragments on the same line, the diagnostic "unexpected local variable or method" shows up when it should not. If you add a line break in the source, it goes away. If you remove the line break, it comes back.
The expectation should be that each fragment is distinct.
Note that the first example has line breaks and no diagnosticsThe text was updated successfully, but these errors were encountered: