Closed moskyb closed 2 weeks ago
Hi team,
First, I’d like to thank the maintainers of ruby-lsp-rails
for their work on this valuable tool. I wanted to mention that I'm also experiencing this compatibility issue in a project using Rails v7.0.3, with the same error and LSP crash as described in #512.
As a temporary workaround, I updated my Gemfile
to lock ruby-lsp-rails
to an earlier version, v0.3.21
, which resolved the issue for my setup:
group :development do
gem 'ruby-lsp-rails', '0.3.21'
...
end
I hope this information is helpful. Thanks again to the team for their efforts on this project.
Thanks for the report, https://github.com/Shopify/ruby-lsp-rails/pull/513 will fix this.
Since the merge of https://github.com/Shopify/ruby-lsp-rails/pull/503, this plugin crashes the entire LSP in my VSCode setup, with the following error:
This is because my rails app is running 7.0.8.6, which does not have the method
ActiveRecord::Migration#check_all_pending!
- it was added in Rails 7.1.Related: https://github.com/Shopify/ruby-lsp-rails/issues/500, as it would likely have shown this issue prior to merge.