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

No method matching get_hover(::SymbolServer.FunctionStore, ::String, ::LanguageServerInstance) #1249

Closed
Xazzzi opened this issue Oct 5, 2023 · 0 comments · Fixed by #1250

Comments

@Xazzzi
Copy link

Xazzzi commented Oct 5, 2023

Happens in recent versions of vscode julia extension on Show documentation action.
Last working version for me is 1.51.2.

ERROR: MethodError: no method matching get_hover(::SymbolServer.FunctionStore, ::String, ::LanguageServerInstance)
Closest candidates are:
  get_hover(::SymbolServer.FunctionStore, ::String, ::Any, !Matched::Any, !Matched::Any)
   @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\requests\hover.jl:147
  get_hover(::SymbolServer.SymStore, ::String, ::Any, !Matched::Any, !Matched::Any)
   @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\requests\hover.jl:140
  get_hover(::Any, ::String, ::Any, !Matched::Any, !Matched::Any)
   @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\requests\hover.jl:14
  ...

Stacktrace:
  [1] #187
    @ <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\requests\features.jl:496 [inlined]
  [2] traverse_store!(f::LanguageServer.var"#187#190"{LanguageServerInstance, Symbol, Vector{Pair{Float64, String}}}, store::SymbolServer.ModuleStore)
    @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\utilities.jl:29
  [3] _broadcast_getindex_evalf
    @ .\broadcast.jl:683 [inlined]
  [4] _broadcast_getindex
    @ .\broadcast.jl:656 [inlined]
  [5] getindex(bc::Base.Broadcast.Broadcasted{Nothing, Tuple{Base.OneTo{Int64}}, typeof(LanguageServer.traverse_store!), Tuple{Base.RefValue{LanguageServer.var"#187#190"{LanguageServerInstance, Symbol, Vector{Pair{Float64, String}}}}, Base.Broadcast.Extruded{Vector{SymbolServer.ModuleStore}, Tuple{Bool}, Tuple{Int64}}}}, I::Int64)
    @ Base.Broadcast .\broadcast.jl:610
  [6] macro expansion
    @ .\broadcast.jl:974 [inlined]
  [7] macro expansion
    @ .\simdloop.jl:77 [inlined]
  [8] copyto!(dest::Vector{Nothing}, bc::Base.Broadcast.Broadcasted{Nothing, Tuple{Base.OneTo{Int64}}, typeof(LanguageServer.traverse_store!), Tuple{Base.RefValue{LanguageServer.var"#187#190"{LanguageServerInstance, Symbol, Vector{Pair{Float64, String}}}}, Vector{SymbolServer.ModuleStore}}})
    @ Base.Broadcast .\broadcast.jl:973
  [9] copyto!(dest::Vector{Nothing}, bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(LanguageServer.traverse_store!), Tuple{Base.RefValue{LanguageServer.var"#187#190"{LanguageServerInstance, Symbol, Vector{Pair{Float64, String}}}}, Vector{SymbolServer.ModuleStore}}})
    @ Base.Broadcast .\broadcast.jl:926
 [10] copy(bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(LanguageServer.traverse_store!), Tuple{Base.RefValue{LanguageServer.var"#187#190"{LanguageServerInstance, Symbol, Vector{Pair{Float64, String}}}}, Vector{SymbolServer.ModuleStore}}})
    @ Base.Broadcast .\broadcast.jl:898
 [11] materialize
    @ .\broadcast.jl:873 [inlined]
 [12] traverse_by_name
    @ <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\utilities.jl:23 [inlined]
 [13] julia_getDocFromWord_request(params::NamedTuple{(:word,), Tuple{String}}, server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})
    @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\requests\features.jl:492
 [14] (::LanguageServer.var"#111#112"{typeof(LanguageServer.julia_getDocFromWord_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::NamedTuple{(:word,), Tuple{String}})
    @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\languageserverinstance.jl:265
 [15] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\JSONRPC\src\typed.jl:67
 [16] run(server::LanguageServerInstance; timings::Vector{Any})
    @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\languageserverinstance.jl:394
 [17] run(server::LanguageServerInstance)
    @ LanguageServer <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\packages\LanguageServer\src\languageserverinstance.jl:275
 [18] top-level scope
    @ <USER>\.vscode\extensions\julialang.language-julia-1.52.2\scripts\languageserver\main.jl:104
 [19] include(mod::Module, _path::String)
    @ Base .\Base.jl:457
 [20] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:307
 [21] _start()
    @ Base .\client.jl:522```
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

Successfully merging a pull request may close this issue.

1 participant