This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
Cannot change default_checked_level of Sorbet when using this gem. #408
Labels
bug
Something isn't working
Describe the bug:
This gem makes it impossible to set
T::Configuration.default_checked_level
in a Rails app.I suspect this is the same issue as found and fixed here: sorbet/sorbet#2717 which was caused by type signatures being loaded during
sorbet-runtime
initialization.sorbet-rails
must be doing the same thing somewhere during initialization.Steps to reproduce:
Create a new Rails app, install sorbet-rails, set
T::Configuration.default_checked_level = :tests
inconfig/initializers/sorbet.rb
, try and start the Rails app.This fails with:
Note this does not fail when
sorbet-rails
is not installed.Expected behavior:
This library would not interfere with the ability to change Sorbet's default checked level.
Versions:
The text was updated successfully, but these errors were encountered: