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

Errors with Net::IMAP in a new Rails application #2134

Open
nathanmsmith opened this issue Dec 30, 2024 · 0 comments
Open

Errors with Net::IMAP in a new Rails application #2134

nathanmsmith opened this issue Dec 30, 2024 · 0 comments

Comments

@nathanmsmith
Copy link
Contributor

Reproduction steps:

  1. Create a new rails application, e.g., rails new test-rails-app.
  2. Add Sorbet and Tapioca to the Gemfile.
  3. bundle install
  4. bundle exec tapioca init
  5. 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!

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

No branches or pull requests

1 participant