Skip to content

Fix u3d console not working on Ruby 3.3+#449

Open
niezbop wants to merge 2 commits intoDragonBox:masterfrom
niezbop:fix/console_irb_workspace
Open

Fix u3d console not working on Ruby 3.3+#449
niezbop wants to merge 2 commits intoDragonBox:masterfrom
niezbop:fix/console_irb_workspace

Conversation

@niezbop
Copy link
Member

@niezbop niezbop commented Mar 4, 2026

Pull Request Checklist

  • My pull request has been rebased on master
  • I ran bundle exec rspec to make sure that my PR didn't break any test
  • I ran bundle exec rubocop to make sure that my PR is inline with our code style
  • I have read the code of conduct

Pull Request Description

As u3d console is heavily inspired (👀) by fastlane own console command, it suffers from the same issue. With the upgrade to Ruby >= 3.3, IRB is changing the way its workspace is setup and this breaks the console command (see fastlane's issue fastlane/fastlane#29924 for a more detailed description).

This PR fixes the console command by properly assigning its workspace and adds a spec file to validate the changes. All credit goes to @lacostej for his own PR on fastlane, which I shamelessly copied here :)

This was validated locally against Ruby 2.6.10 and Ruby 3.3.6.

@niezbop niezbop requested a review from lacostej March 4, 2026 15:14
@niezbop niezbop self-assigned this Mar 4, 2026
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.

1 participant