Skip to content

lsp-julia crash on Julia v1.4 #20

Closed
@yzcj105

Description

@yzcj105

According to suggestion

I've tried two versions of LanguageServer, v.2.0.0 and v 1.0.0 both failed.

ERROR: MethodError: Cannot `convert` an object of type Dict{Any,Any} to an object of type Function
Closest candidates are:
  convert(::Type{T}, !Matched::T) where T at essentials.jl:171
Stacktrace:
 [1] convert(::Type{Union{Nothing, Function}}, ::Dict{Any,Any}) at ./some.jl:34
 [2] LanguageServer.JSONRPCEndpoints.JSONRPCEndpoint(::Base.PipeEndpoint, ::Base.PipeEndpoint, ::Dict{Any,Any}) at /Users/jchen/.julia/packages/LanguageServer/wMPrf/src/jsonrpcendpoint.jl:19
 [3] LanguageServerInstance(::Base.PipeEndpoint, ::Base.PipeEndpoint, ::Bool, ::String, ::String, ::Dict{Any,Any}) at /Users/jchen/.julia/packages/LanguageServer/wMPrf/src/languageserverinstance.jl:59
 [4] top-level scope at none:1

Process julia-ls stderr finished

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions