Skip to content

typeHierarchyProvider always returns null #197

@Hanatarou

Description

@Hanatarou

Environment

  • Server: IntelliJ Language Server by JetBrains
  • Version: LS-262.4739.0
  • OS: Windows 11
  • JDK: JBR 25.0.2+1-b432.38 (bundled)
  • Client: CudaText with LSP plugin

Problem

typeHierarchyProvider is announced in server capabilities but always returns null for any symbol.

Steps to Reproduce

  1. Open a Kotlin file with a simple hierarchy (see attached test file lsp_kotlin_test.kt)
  2. Request textDocument/prepareTypeHierarchy on any class, interface, or enum
  3. Server always returns null

Logs

Server capabilities announce typeHierarchy:
"typeHierarchyProvider": true

Server responds null to every prepareTypeHierarchy request:
{"jsonrpc":"2.0","id":3,"result":null}
{"jsonrpc":"2.0","id":4,"result":null}
{"jsonrpc":"2.0","id":5,"result":null}
{"jsonrpc":"2.0","id":6,"result":null}

Client log confirms:
Prepare type hierarchy: no result [49ms]
Prepare type hierarchy: no result [60ms]
Prepare type hierarchy: no result [31ms]
Prepare type hierarchy: no result [35ms]

Expected Behavior

textDocument/prepareTypeHierarchy should return supertypes and subtypes for Kotlin symbols.

Attachments

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