Skip to content
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

feat: ruby_lsp works inside eruby files #3266

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

adam12
Copy link
Contributor

@adam12 adam12 commented Aug 12, 2024

Since 0.17.5, Ruby LSP has supported running inside ERB files.

Since 0.17.5, Ruby LSP has supported running inside ERB files.
@adam12 adam12 requested a review from glepnir as a code owner August 12, 2024 18:42
@glepnir glepnir merged commit 4cd29ab into neovim:master Aug 13, 2024
8 checks passed
@defsdoor
Copy link

What is your experience with ruby-lsp on .erb files ? I'm running 0.17.12 and if I coerce nvim-lspconfig (via lazyvim) to use ruby-lsp for .erb (eruby) all it adds is errors on all <% - as if its not determining the file as Document::LanguageId::ERB

@vinistock
Copy link

@defsdoor please check this issue Shopify/ruby-lsp#2282. ERB support was added in v0.17.13, but if you have other gems constraining versions of rbs, prism or sorbet-runtime in your application, upgrading will fail and you will be unable to get the version of the language server that supports ERB.

@adam12
Copy link
Contributor Author

adam12 commented Aug 13, 2024

What is your experience with ruby-lsp on .erb files ? I'm running 0.17.12 and if I coerce nvim-lspconfig (via lazyvim) to use ruby-lsp for .erb (eruby) all it adds is errors on all <% - as if its not determining the file as Document::LanguageId::ERB

I was able to use it without errors or warnings before submitting this PR, but we've noticed over in the ruby-lsp repo that there are similar errors which you are seeing.

I see those errors now locally, but I had updated a few things after patching lspconfig (as one does when they are procrastinating).

@defsdoor
Copy link

defsdoor commented Aug 13, 2024

Odd thing is that after poking things a bit it's now working fine for me on 0.17.12..... And without this patch.

Updated nvim-lspconfig which now includes this patch and still working.

@elken
Copy link

elken commented Aug 15, 2024

Following up from Shopify/ruby-lsp#2432 (comment) that it seems this PR should be reverted as it's proven quite a disruptive change that Neovim doesn't seem to be ready to handle yet.

(see my comment after, and please correct me if I'm wrong)

EDIT: this will be the case as of #3269

adam12 added a commit to adam12/nvim-lspconfig that referenced this pull request Aug 15, 2024
glepnir pushed a commit that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants