Skip to content

MethodError while using LSP in Neovim #1350

@ronisbr

Description

@ronisbr

Hi!

I am trying to use the LSP in Neovim and I am getting the following error:

[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"ERROR: "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"MethodError: "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"no method matching "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"get_preexisting_using_stmts(::Nothing, ::LanguageServer.Document)"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\nThe function `get_preexisting_using_stmts` exists, but no method is defined for this combination of argument types."
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\n\nClosest candidates are:\n  get_preexisting_using_stmts(!Matched::CSTParser.EXPR, ::LanguageServer.Document)\n   @ LanguageServer ~/.julia/dev/LanguageServer/src/requests/completions.jl:505\n"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\nStacktrace:"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\n"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"[1]"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"textDocument_completion_request(params::LanguageServer.CompletionParams, server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\n"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"   @"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"LanguageServer"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"~/.julia/dev/LanguageServer/src/requests/"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"completions.jl:47"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"\n"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	"[2]"
[ERROR][2025-05-14 13:10:59] ...p/_transport.lua:36	"rpc"	"julia"	"stderr"	" "

I tried also with the dev version and nothing has changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions