-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I experienced this crash when using the latest version of this gem against a large project using the command. Hopefully just a simple mistake of calling a method that doesn't exist.
bundle exec annotaterb models --nested-position --force.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotated_file/generator.rb:71:in `block in determine_annotation_position': undefined method `type_map' for an instance of AnnotateRb::ModelAnnotator::FileParser::YmlParser (NoMethodError)
class_entries = parsed.starts.select { |name, _line| parsed.type_map[name] == :class }
^^^^^^^^^
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotated_file/generator.rb:71:in `select'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotated_file/generator.rb:71:in `determine_annotation_position'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotated_file/generator.rb:50:in `content_annotated_before'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotated_file/generator.rb:41:in `generate'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/single_file_annotator.rb:46:in `call'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/single_file_annotator.rb:8:in `call_with_instructions'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/project_annotator.rb:22:in `block in annotate'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/project_annotator.rb:21:in `map'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/project_annotator.rb:21:in `annotate'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotator.rb:21:in `do_annotations'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/model_annotator/annotator.rb:8:in `do_annotations'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/commands/annotate_models.rb:17:in `call'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/runner.rb:38:in `run'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/lib/annotate_rb/runner.rb:11:in `run'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/annotaterb-4.19.0/exe/annotaterb:18:in `<top (required)>'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/bin/annotaterb:25:in `load'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/bin/annotaterb:25:in `<top (required)>'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:59:in `load'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:59:in `kernel_load'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:23:in `run'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli.rb:452:in `exec'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor.rb:538:in `dispatch'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli.rb:35:in `dispatch'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/cli.rb:29:in `start'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/exe/bundle:28:in `block in <top (required)>'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/bundler-2.6.9/exe/bundle:20:in `<top (required)>'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/bin/bundle:25:in `load'
from /home/wmakley/.local/share/mise/installs/ruby/3.3.8/bin/bundle:25:in `<main>'
OdenTakashiOdenTakashi
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested