Skip to content

Julia LSP returns a wrong data structure considering the LSP specification #1357

@ronisbr

Description

@ronisbr

Hi!

I was seeing an error while trying to obtain a method signature in Neovim using mini.completion:

nvim-mini/mini.nvim#1884

After an excellent analysis of @echasnovski, it seems that Julia LSP is returning something that does not comply with the LSP specification. See the info for the method get:

{
  documentation = "",
  label = "get(::Base.EnvDict, k::Core.AbstractString, def::Core.Any) in Base at /base/env.jl:165",
  parameters = {
    { documentation = "Base.EnvDict", label = "#unused#" },
    { documentation = "Core.AbstractString", label = "k" },
    { documentation = "Core.Any", label = "def"}
  }
}

The LSP specification states that label should be a substring of the signature, which is not the case with #unused#.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions