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.
@scottjg Thanks for reporting the issue! Parser is a dependency that is specified in sorbet-rails gemspec. Can you check if you see parser in your Gemfile and you have a parser.rbi file in your repo? The file should be autogenerated by sorbet as part of running "srb init" or "srb rbi gems"
sorry it took me so long to come back to this. in my case i hadn't run srb init (i could never get it to work), so i guess it hadn't generated the Parser rbi. I appreciate your help and I realize you're basically playing tech support for me so i apologize in advance.
I tried everything again today:
add sorbet and sorbet-rails into the Gemfile, then bundle.
run bundle exec srb init
upon completion, run bundle exec srb tc
at this point there's no errors so i tried to get the rails stuff working
pick a model (in my case it was called Channel) and set type comment to # typed: true
rerun bundle exec srb tc
at this point, the first error is:
./app/models/channel.rb:117: Method `show_recent_videos` does not exist on `Channel` https://srb.help/7003
117 | show_recent_videos
^^^^^^^^^^^^^^^^^^
in my case, this is a field in the schema (from schema.rb):
Describe the bug:
Trying sorbet and sorbet-rails for the first time. Added sorbet-rails to my gemfile and ran:
which resulted in the following errors
Steps to reproduce:
Add sorbet-rails to gemfile. bundle. run
bundle exec srb typecheck -e 'puts "Hello, world!"
Expected behavior:
no errors
Versions:
The text was updated successfully, but these errors were encountered: