-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected local variable or method diagnostic in erb when multiple ruby fragments on the same line #2448
Comments
|
I would imagine it would, since it would stop ruby-lsp from working at all with erb, but thats not what im looking to do :) |
Yeah sorry, please ignore that. |
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 |
Please see my comments in #2432 (comment). |
Closing this as there's no fix from the Ruby LSP side. |
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.
The text was updated successfully, but these errors were encountered: