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

library method issue #1244

Open
Dandush03 opened this issue Sep 30, 2024 · 2 comments
Open

library method issue #1244

Dandush03 opened this issue Sep 30, 2024 · 2 comments

Comments

@Dandush03
Copy link

When requiring the ActiveRecord gem it breaks everything

Current config

# frozen_string_literal: true

D = Steep::Diagnostic

target :pg_rls do
  signature "sig"

  check "lib"
  library "active_record"
  # ignore "spec/**/*.rb"

  # library "pathname"              # Standard libraries
  # library "strong_json"           # Gems

  # configure_code_diagnostics(D::Ruby.default)      # `default` diagnostics setting (applies by default)
  configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
  # configure_code_diagnostics(D::Ruby.lenient)      # `lenient` diagnostics setting
  # configure_code_diagnostics(D::Ruby.silent)       # `silent` diagnostics setting
  # configure_code_diagnostics do |hash|             # You can setup everything yourself
  #   hash[D::Ruby::NoMethod] = :information
  # end
end

Untitled

@soutaro
Copy link
Owner

soutaro commented Oct 3, 2024

I recommend using rbs_collection.yaml and gem_rbs_collection instead of directly writing library calls in Steepfile.

https://github.com/ruby/gem_rbs_collection

(And, we don't have active_record gem but activerecord gem. 😅)

@aaronmallen
Copy link

@soutaro whats the protocol for gems that don't have signatures and aren't in gem_rbs_collection (i.e. semantic)

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

3 participants