Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on hovering constant #101

Open
r7kamura opened this issue Nov 9, 2022 · 0 comments
Open

Error on hovering constant #101

r7kamura opened this issue Nov 9, 2022 · 0 comments

Comments

@r7kamura
Copy link
Owner

r7kamura commented Nov 9, 2022

bundler: failed to load command: rucoa (/home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bin/rucoa)
/home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:419:in `module_ancestors_of': undefined method `prepended_module_qualified_names' for #<Rucoa::Definitions::ConstantDefinition:0x00007fe3578a6730 @description="", @location=#<struct Rucoa::Location range=#<Rucoa::Range:0x00007fe3578a0b00 @beginning=#<Rucoa::Position:0x00007fe3578a0e20 @column=12, @line=109>, @ending=#<Rucoa::Position:0x00007fe3578a0c90 @column=72, @line=109>, @including_ending=true>, uri="file:///home/r7kamura/ghq/github.com/rubocop/rubocop-rspec/lib/rubocop/cop/rspec/rails/http_status.rb">, @qualified_name="RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::ALLOWED_STATUSES"> (NoMethodError)

        *definition.prepended_module_qualified_names.filter_map do |qualified_name|
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:387:in `block in ancestors_of'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:386:in `each'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:386:in `flat_map'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:386:in `ancestors_of'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:294:in `singleton_method_definitions_of'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/definition_store.rb:206:in `instance_method_definitions_of'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/node_inspector.rb:30:in `block in method_definitions'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/node_inspector.rb:29:in `each'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/node_inspector.rb:29:in `flat_map'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/node_inspector.rb:29:in `method_definitions'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/node_inspector.rb:21:in `definitions'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/text_document_hover_handler.rb:39:in `definition'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/text_document_hover_handler.rb:18:in `contents'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/text_document_hover_handler.rb:60:in `responsible?'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/text_document_hover_handler.rb:44:in `hover'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/text_document_hover_handler.rb:10:in `call'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/handlers/base.rb:17:in `call'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/server.rb:132:in `handle_client_request'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/server.rb:123:in `handle'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/server.rb:88:in `block in start'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/message_reader.rb:25:in `read'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/server.rb:81:in `start'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/cli.rb:22:in `call'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/lib/rucoa/cli.rb:8:in `call'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rucoa-0.13.0/exe/rucoa:6:in `<top (required)>'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bin/rucoa:25:in `load'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bin/rucoa:25:in `<top (required)>'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
	from /home/r7kamura/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
	from /home/r7kamura/.rbenv/versions/3.1.2/bin/bundle:25:in `load'
	from /home/r7kamura/.rbenv/versions/3.1.2/bin/bundle:25:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant