kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

`[error] Cannot find type '_ActionViewBase'` from Steep #253

Open stevegeek opened 1 year ago

stevegeek commented 1 year ago

Hi!

Just started adopting RBS/Steep in a project which includes the meta-tags gem.

Running steep check results in the following errors. Is this related to the fact _ActionViewBase and _ActionControllerBase interfaces are defined under the _internal/rails definitions? Do I need to explicitly tell steep to look for them there? If I copy the interface definitions under the MetaTags module then the error is resolved


../../../.asdf/installs/ruby/3.1.3/lib/ruby/gems/3.1.0/gems/meta-tags-2.18.0/sig/lib/meta_tags/view_helper.rbs:2:30: [error] Cannot find type `_ActionViewBase`
│ Diagnostic ID: RBS::UnknownTypeName
│
└   module ViewHelper : Module, _ActionViewBase
                                ~~~~~~~~~~~~~~~

../../../.asdf/installs/ruby/3.1.3/lib/ruby/gems/3.1.0/gems/meta-tags-2.18.0/sig/lib/meta_tags/controller_helper.rbs:2:28: [error] Cannot find type `_ActionControllerBase`
│ Diagnostic ID: RBS::UnknownTypeName
│
└   module ControllerHelper : _ActionControllerBase
                              ~~~~~~~~~~~~~~~~~~~~~
``