-
Notifications
You must be signed in to change notification settings - Fork 42
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
add basic devise annotation #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. This needs an index entry in https://github.com/Shopify/rbi-central/blob/main/index.json
I've added an index entry (and fixed a few more bits), but the runtime checks now fail
DeviseController is a bit of a weird one since your application config sets what its parent class is ( https://github.com/heartcombo/devise/blob/main/app/controllers/devise_controller.rb#L4 ) Plus the devise controllers are expected to be loaded by rails so they're not on the load path. I had a lock at the other index entries, but none of the other ones have engine-y things like this |
If it's not possible to require the files that define these you could add a
|
Hello! Is there any progress on this? After updating tapioca I'm encountering the same issue as Shopify/tapioca#1692 |
79d60f2
to
004d0f4
Compare
5741c9e
to
0791ae6
Compare
I haven't tested the signatures themselves because we don't use devise in the repos we own but I assume this was tested in your application. |
Amazing - thanks! |
Type of Change
Changes
This adds some very basic annotations for devise. Prior to tapioca 0.11.8 tapioca would generate rbis for Devise::SessionsController, Devise::RegistrationsController etc. (so that it could define helper related modules on them). As of tapioca 0.11.9 this is no longer the case, so subclasses of devise controllers cause a sorbet error whatever the type checking level requested on those files since the parent class is not known to sorbet.
I also added the actions for each controllers and the core devise controller methods