Describe the bug:
This problem is related to using Sobert in a Ruby on Rails 6 project!
I opened an issue in the Sorbet-Rails repo, but perhaps this repo is more appropriated.
The first step of the Sorbet-Rails Initial Setup requires to run the basic Sorbet initialization. But following it doesn't conclude well.
Steps to reproduce:
run:rails new app
add to the Gemfile:
gem 'sorbet', :group => :development
gem 'sorbet-runtime'
run: bundle install
Do the Verify installation
~ No problems until here.
run: srb init
This step gives an error:
/usr/lib/ruby/gems/2.7.0/gems/sorbet-0.5.5316/lib/hidden-definition-finder.rb:149:in `write_constants': /tmp/d20200131-18296-1s6k0uv/reflection.rbi had unexpected errors.
More data:
Full output
reflection.json.err
Expected behavior:
The last step should complete and initialize the folder sorbet/, but it stops with an error.
Versions:
I'm not using rvm, I'm using Ruby from Arch Linux repo.
Thanks for the bug report!
We haven't tested with ruby-2.7, is it possible for you to run with ruby-2.6 instead?
@elliottt With ruby-2.6 the process ends fine. It seems this is an issue with ruby-2.7!
Glad to hear that it's working, it sounds like we will have some work to do once we start work on 2.7 support!