You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
After running bundle exec rake rails_rbi:models, many files no longer typecheck with this error:
Unable to resolve constant BatchEnumerator
).returns(ActiveRecord::Batches::BatchEnumerator)
This is surprising to me because I see this definition in sorbet/rbi/gems/activerecord.rbi:3845:
class ActiveRecord::Batches::BatchEnumerator
def delete_all; end
def destroy_all; end
def each; end
def each_record; end
def initialize(relation:, of: nil, start: nil, finish: nil); end
def update_all(updates); end
include Enumerable
end
Doing a bit of searching, I found this issue which describes a similar problem but seems to have been resolved: #355
I'm not sure if this is an issue specifically with sorbet-rails, sorbet, or (most likely) with my understanding of how this should work. Any help is much appreciated!
Steps to reproduce:
Run bundle exec rake rails_rbi:models
Run bundle exec srb tc
Expected behavior:
Expect to find this constant that sorbet-rails is using to generate type definitions.
Versions:
Ruby: 2.7.2
Rails: 6.1.4.1
Sorbet: 0.5.9449
Sorbet-Rails: 0.7.27
The text was updated successfully, but these errors were encountered:
Describe the bug:
After running
bundle exec rake rails_rbi:models
, many files no longer typecheck with this error:This is surprising to me because I see this definition in
sorbet/rbi/gems/activerecord.rbi:3845
:Doing a bit of searching, I found this issue which describes a similar problem but seems to have been resolved: #355
I'm not sure if this is an issue specifically with
sorbet-rails
,sorbet
, or (most likely) with my understanding of how this should work. Any help is much appreciated!Steps to reproduce:
bundle exec rake rails_rbi:models
bundle exec srb tc
Expected behavior:
Expect to find this constant that
sorbet-rails
is using to generate type definitions.Versions:
The text was updated successfully, but these errors were encountered: