Skip to content

Language server fails to start in Zed editor. #1352

@curioustolearn

Description

@curioustolearn

Hello,

Recently after I changed my Julia version to 1.10.4 to work on an older project, the language server stopped working. Here is the error I get for why the language-server does not start. I reinstalled language server from the REPL, but still get the error below. Any ideas how I can get it working.

Thank you.

Language server error: julia

initializing server julia, id 4
-- stderr--
ERROR: MethodError: no method matching project_rel_path(::Pkg.Types.EnvCache, ::Nothing)

Closest candidates are:
  project_rel_path(::Pkg.Types.EnvCache, !Matched::String)
   @ Pkg ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:922

Stacktrace:
  [1] package_info(env::Pkg.Types.EnvCache, pkg::Pkg.Types.PackageSpec, entry::Pkg.Types.PackageEntry)
    @ Pkg.API ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:68
  [2] package_info
    @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:61 [inlined]
  [3] #9
    @ ./none:0 [inlined]
  [4] iterate
    @ ./generator.jl:47 [inlined]
  [5] _all(f::Base.var"#384#386", itr::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}}, ::Colon)
    @ Base ./reduce.jl:1297
  [6] all
    @ ./reduce.jl:1283 [inlined]
  [7] Dict(kv::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}})
    @ Base ./dict.jl:111
  [8] dependencies
    @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:88 [inlined]
  [9] dependencies()
    @ Pkg.API ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:85
 [10] top-level scope
    @ none:5

caused by: MethodError: no method matching project_rel_path(::Pkg.Types.EnvCache, ::Nothing)

Closest candidates are:
  project_rel_path(::Pkg.Types.EnvCache, !Matched::String)
   @ Pkg ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:922

Stacktrace:
  [1] package_info(env::Pkg.Types.EnvCache, pkg::Pkg.Types.PackageSpec, entry::Pkg.Types.PackageEntry)
    @ Pkg.API ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:68
  [2] package_info
    @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:61 [inlined]
  [3] #9
    @ ./none:0 [inlined]
  [4] iterate
    @ ./generator.jl:47 [inlined]
  [5] Dict{Base.UUID, Pkg.API.PackageInfo}(kv::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}})
    @ Base ./dict.jl:85
  [6] dict_with_eltype
    @ ./abstractdict.jl:581 [inlined]
  [7] dict_with_eltype
    @ ./abstractdict.jl:588 [inlined]
  [8] Dict(kv::Base.Generator{Vector{Pkg.Types.PackageSpec}, Pkg.API.var"#9#10"{Pkg.Types.EnvCache}})
    @ Base ./dict.jl:109
  [9] dependencies
    @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:88 [inlined]
 [10] dependencies()
    @ Pkg.API ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Pkg/src/API.jl:85
 [11] top-level scope
    @ none:5

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