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

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

Open
khrisnagunanasurya opened this issue Jul 21, 2022 · 0 comments
Open

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

khrisnagunanasurya opened this issue Jul 21, 2022 · 0 comments

Comments

@khrisnagunanasurya
Copy link

khrisnagunanasurya commented Jul 21, 2022

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?

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