Skip to content

Error is raised when calling codeAction in NeoVim #3276

Open
@datanoise

Description

@datanoise

Description

I initially reported this error it to NeoVim.

Please check neovim/neovim#32757

Essentially, NeoVim added an additional call codeAction/resolve after calling textDocument/codeAction.

Resolve call fails with:

 .rbenv/versions/3.4.2/lib/ruby/3.4.0/uri/common.rb:871:in 'Kernel#URI': bad argument (expected URI object or URI string) (ArgumentError)
  from .rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/ruby-lsp-0.23.11/lib/ruby_lsp/server.rb:855:in 'RubyLsp::Server#code_action_resolve'
  from .rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/ruby-lsp-0.23.11/lib/ruby_lsp/server.rb:59:in 'RubyLsp::Server#process_message'
  from .rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/ruby-lsp-0.23.11/lib/ruby_lsp/base_server.rb:163:in 'block in RubyLsp::BaseServer#new_worker'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedExtra attention is needednon-vscode

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions