Closed denvermullets closed 2 years ago
Hey @denvermullets,
As explained in the documentation, The sorbet/rbi/todo.rbi
file is used to define all unresolved constants as empty modules. Since the constants are "missing", Tapioca does not know if they should be marked as modules or classes and will use modules as a safer default. This file should be reviewed, corrected, if necessary, and then committed in your repository.
You should go over the contents of this file, remove any unnecessary constants and move the other ones to proper shims under sorbet/rbi/shims/
. Note that, sometimes, constants are missing because of missing requires. Ideally you should be able to remove this file all together.
Hope this helps.
am i wrong in that this is coming from the tapioca gem?
The error is indeed appearing on the tapioca
RBI but the culprit is in your todo.rbi
file:
sorbet/rbi/todo.rbi:8: URI::File defined here
8 |module URI::File; end
^^^^^^^^^^^^^^^^
ok, word, i'll poke around. thanks for the update
Note: this is a Rails API
i added a couple of gems (bcrypt / jwt, if you're curious) and then updated my tapioca gem (0.10.0). now i am getting this in the Todo file and shows up when running
srb tc
i deleted the sorbet folder and re-initialized everything and it comes back.
here's my gemfile if that helps:
certainly not a blocker for me but figured i'd mention it if there was a command i missed or something!