Errors with Net::IMAP
in a new Rails application #2134
Open
Description
Reproduction steps:
- Create a new rails application, e.g.,
rails new test-rails-app
. - Add Sorbet and Tapioca to the Gemfile.
bundle install
bundle exec tapioca init
bundle exec srb tc
I get the following errors:
› bundle exec srb tc
sorbet/rbi/gems/[email protected]:529: Parent of class Net::IMAP::Atom redefined from Object to Net::IMAP::CommandData https://srb.help/5012
529 |class Net::IMAP::Atom < ::Net::IMAP::CommandData
^^^^^^^^^^^^^^^^^^^^^^^^
Note:
Pass --suppress-payload-superclass-redefinition-for=Net::IMAP::Atom at the command line or in the sorbet/config file to silence this error.
Only use this to work around Ruby or gem upgrade incompatibilities.
sorbet/rbi/gems/[email protected]:2175: Parent of class Net::IMAP::Literal redefined from Object to Net::IMAP::CommandData https://srb.help/5012
2175 |class Net::IMAP::Literal < ::Net::IMAP::CommandData
^^^^^^^^^^^^^^^^^^^^^^^^
Note:
Pass --suppress-payload-superclass-redefinition-for=Net::IMAP::Literal at the command line or in the sorbet/config file to silence this error.
Only use this to work around Ruby or gem upgrade incompatibilities.
sorbet/rbi/gems/[email protected]:2189: Parent of class Net::IMAP::MessageSet redefined from Object to Net::IMAP::CommandData https://srb.help/5012
2189 |class Net::IMAP::MessageSet < ::Net::IMAP::CommandData
^^^^^^^^^^^^^^^^^^^^^^^^
Note:
Pass --suppress-payload-superclass-redefinition-for=Net::IMAP::MessageSet at the command line or in the sorbet/config file to silence this error.
Only use this to work around Ruby or gem upgrade incompatibilities.
sorbet/rbi/gems/[email protected]:2370: Parent of class Net::IMAP::QuotedString redefined from Object to Net::IMAP::CommandData https://srb.help/5012
2370 |class Net::IMAP::QuotedString < ::Net::IMAP::CommandData
^^^^^^^^^^^^^^^^^^^^^^^^
Note:
Pass --suppress-payload-superclass-redefinition-for=Net::IMAP::QuotedString at the command line or in the sorbet/config file to silence this error.
Only use this to work around Ruby or gem upgrade incompatibilities.
sorbet/rbi/gems/[email protected]:2393: Parent of class Net::IMAP::RawData redefined from Object to Net::IMAP::CommandData https://srb.help/5012
2393 |class Net::IMAP::RawData < ::Net::IMAP::CommandData
^^^^^^^^^^^^^^^^^^^^^^^^
Note:
Pass --suppress-payload-superclass-redefinition-for=Net::IMAP::RawData at the command line or in the sorbet/config file to silence this error.
Only use this to work around Ruby or gem upgrade incompatibilities.
Errors: 5
This can be fixed by adding the --suppress-payload-superclass-redefinition-for
flags for each of the errors but it's certainly not a great experience when one is getting started with Tapioca!
Metadata
Assignees
Labels
No labels