pocke / rbs_rails

Apache License 2.0
285 stars 33 forks source link

How to fix `Cannot find compatible overloading of method`? #231

Open khrisnagunanasurya opened 2 years ago

khrisnagunanasurya commented 2 years ago

Rails Version: 7.0.2.2 Ruby Version: ruby 3.0.3p157

Hi, I got this error on my helpers, but not sure how to fix this, I already tried to include the Hash / Time / ActiveSupport lib on the Steepfile but the Steepfile cant found it.

image
# Steepfile
D = Steep::Diagnostic

target :app do
  signature 'sig'

  library 'pathname', 'set', 'hash', 'securerandom', 'time'

  check 'app/models/**/*.rb'
  check 'app/helpers/*.rb'

  configure_code_diagnostics(D::Ruby.strict)
end

And I already tried to update the method inside .gem_rbs_collection > activesupport > 6.0 > activesupport-generated.rbs on line 12278

    def at: (*untyped args) -> untyped

into this

    def at: (*untyped args, **untyped) -> untyped

But no luck, and I can't think anything else regarding this problem.

Can someone help me to fix this?