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

LSP signatureHelp result is null #1888

Open
olifink opened this issue Apr 5, 2024 · 1 comment
Open

LSP signatureHelp result is null #1888

olifink opened this issue Apr 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@olifink
Copy link

olifink commented Apr 5, 2024

Description

Hi again,

I'm debugging my Nova integration signatureHelp request of the ruby-lsp and would need your insight. I'm using code from your test file locally as my localtest.rb file.:

class Foo
  def bar(a, b)
  end
	
  def baz
    bar#<-- cursor here, entering '('
  end
end

the file seems to be indexed correctly (I get valid hover responses) but see the following request/response exchange from Nova with the LSP log for signatureHelp:

Ruby Language Server[11:16:17.839000] Sending JSON-RPC request: number(178) textDocument/signatureHelp
{
  "params" : {
	"position" : {
	  "line" : 5,
	  "character" : 6
	},
	"textDocument" : {
	  "uri" : "file:\/\/\/Users\/olifink\/Courses\/pickaxe\/localtest.rb"
	},
	"context" : {
	  "isRetrigger" : false,
	  "triggerCharacter" : "(",
	  "triggerKind" : 2
	}
  },
  "jsonrpc" : "2.0",
  "method" : "textDocument\/signatureHelp",
  "id" : 178
}

Ruby Language Server[11:16:17.850000] Received JSON-RPC response: number(178) textDocument/signatureHelp
{
  "jsonrpc" : "2.0",
  "id" : 178,
  "result" : null
}

the request doesn't seem incorrect and is not very different from the one in your test case, I'm wondering why I get a null result in the response?

@olifink olifink added the bug Something isn't working label Apr 5, 2024
@olifink
Copy link
Author

olifink commented Apr 5, 2024

using 0.16.1 - here is the init.log if it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant