Skip to content

Null method received in LSP client #353

@esafak

Description

@esafak

I am writing a new nim plugin for IntelliJ and I encountered this error:

2025-07-20 17:58:55,781 [   3795]   WARN - org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint - Unsupported notification method: extension/statusUpdate
2025-07-20 17:59:04,569 [  12583]   WARN - org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint - Unsupported notification method: extension/statusUpdate
2025-07-20 17:59:04,569 [  12583] SEVERE - org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer - Unable to identify the input message.
com.google.gson.JsonParseException: Unable to identify the input message.
	at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.createMessage(MessageTypeAdapter.java:403)
	at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:139)
	at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:56)
	at com.google.gson.Gson.fromJson(Gson.java:1227)
	at com.google.gson.Gson.fromJson(Gson.java:1186)
	at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:119)
	at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:114)
	at com.intellij.platform.lsp.impl.connector.Lsp4jServerConnector$createMessageJsonHandler$1.parseMessage(Lsp4jServerConnector.kt:158)

I set some breakpoints and determined that the method was null, instead of extension/statusUpdate or whatever. This happens after the "Nimsuggest initialized for..." and eventually exits with code 139, having failed to initialize on time.

I realize this may not be a bug; I would have asked this question in the discussions if they were enabled.

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