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
I have a project where many files in app/models are not actually models. With 'ignore_unknown_models' => 'true' they are skipped by bin/annotate as expected, but
alexey@DESKTOP-41AVESA:~/shaka/blade$ bin/annotate -d
Traceback (most recent call last):
6: from bin/annotate:29:in `<main>'
5: from bin/annotate:29:in `load'
4: from /home/alexey/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotate-3.2.0/bin/annotate:31:in `<top (required)>'
3: from /home/alexey/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotate-3.2.0/lib/annotate/annotate_models.rb:699:in `remove_annotations'
2: from /home/alexey/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotate-3.2.0/lib/annotate/annotate_models.rb:699:in `each'
1: from /home/alexey/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotate-3.2.0/lib/annotate/annotate_models.rb:702:in `block in remove_annotations'
/home/alexey/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotate-3.2.0/lib/annotate/annotate_models.rb:585:in `get_model_class': file doesn't contain a valid model class (AnnotateModels::BadModelFileError)
Version
annotate version: 3.2.0
rails version: 6.1.5.1
ruby version: 2.7.2
The text was updated successfully, but these errors were encountered:
I have a project where many files in
app/models
are not actually models. With'ignore_unknown_models' => 'true'
they are skipped bybin/annotate
as expected, butVersion
The text was updated successfully, but these errors were encountered: