Skip to content

Setting up completion + snippets fails #1681

Closed Answered by abeldekat
gbishop asked this question in Q&A
Discussion options

You must be logged in to vote

On v0.10.4, the resolved on line 1122 is:

{
  error = {
    code = -32601,
    message = "Unhandled method completionItem/resolve",
    <metatable> = {
      __tostring = <function 1>
    }
  }
}

On nightly, that same resolved is:

{
  err = <1>{
    code = -32601,
    message = "Unhandled method completionItem/resolve",
    <metatable> = {
      __tostring = <function 1>
    }
  },
  error = <table 1>
}

As there is no err key on v0.10.4, on line 1123 the value becomes resolved.result, which is nil.

@echasnovski, shall I write a PR?

EDIT:

See lsp.lua in Neovim from this commit on 20241024:

-- The error key is deprecated and will be removed in 0.13
results[ctx.client_id] = { err = err, e…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@abeldekat
Comment options

@abeldekat
Comment options

Answer selected by echasnovski
@echasnovski
Comment options

@abeldekat
Comment options

@gbishop
Comment options

@echasnovski
Comment options

Comment options

You must be logged in to vote
2 replies
@gbishop
Comment options

@abeldekat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.completion
3 participants