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
- Open a Kotlin file with a simple hierarchy (see attached test file lsp_kotlin_test.kt)
- Request textDocument/prepareTypeHierarchy on any class, interface, or enum
- 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
Environment
Problem
typeHierarchyProvider is announced in server capabilities but always returns null for any symbol.
Steps to Reproduce
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