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

[Tapioca Add-on] Limit what we require from the Rails add-on #2085

Merged

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Nov 22, 2024

The Tapioca add-on was requiring the entire ruby-lsp-rails gem, which in turns requires rails. As @st0012 identified, this caused a change to the behaviour of .to_json which resulted in the Dependencies view not being displayed correctly.

Closes https://github.com/Shopify/team-ruby-dx/issues/1317

cc @KaanOzkan

@andyw8 andyw8 requested a review from a team as a code owner November 22, 2024 14:24
@andyw8 andyw8 force-pushed the andyw8/limit-rails-addon-requires branch 2 times, most recently from 6fa9df0 to a905779 Compare November 22, 2024 14:27
@andyw8 andyw8 marked this pull request as draft November 22, 2024 14:27
@andyw8 andyw8 added the bugfix label Nov 22, 2024
@andyw8 andyw8 force-pushed the andyw8/limit-rails-addon-requires branch from a905779 to 7f1dcdd Compare November 22, 2024 17:23
@andyw8
Copy link
Contributor Author

andyw8 commented Nov 22, 2024

I've pushed an update, and have verified gem DSL generation on code-db.

@andyw8 andyw8 marked this pull request as ready for review November 22, 2024 17:24
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove https://github.com/Shopify/ruby-lsp-rails/blob/main/lib/ruby_lsp_rails/railtie.rb. We've had the deprecation warning for long enough

@andyw8
Copy link
Contributor Author

andyw8 commented Nov 22, 2024

We should remove https://github.com/Shopify/ruby-lsp-rails/blob/main/lib/ruby_lsp_rails/railtie.rb. We've had the deprecation warning for long enough

Shopify/ruby-lsp-rails#535

@andyw8 andyw8 merged commit 5662b54 into tapioca-addon-feature-branch Nov 26, 2024
28 checks passed
@andyw8 andyw8 deleted the andyw8/limit-rails-addon-requires branch November 26, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants