Poolside AI Plugin UI missing in Android Studio - LSP4J EnumTypeAdapter Serialization Crash (IllegalArgumentException)

### Environment
- IDE: Android Studio - Android Studio Panda 2 | 2025.3.2
  Build #AI-253.30387.90.2532.14935130, built on February 25, 2026
  Runtime version: 21.0.9+-14787801-b1163.94 amd64
  VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.


- Plugin: Poolside Assistant - Version - 3.2.0
- Setup: On-Premise Server deployment (Endpoint verified operational via Browser and VS Code)

### Description
The Poolside AI plugin successfully installs, but the sidebar UI button does not appear on the right side of the IDE. Reviewing the idea.log reveals that the plugin's background LSP notification engine crashes immediately during editor view lifecycle changes.

The crash happens when Gson attempts to serialize a notification via `org.eclipse.lsp4j.jsonrpc`. It appears `EnumTypeAdapter` throws an `IllegalArgumentException` because it encounters a non-integer value where an integer enum value was strictly expected.

### Steps to Reproduce
1. Install Poolside Assistant plugin in Android Studio.
2. Configure on-premise server endpoint.
3. Open a project and switch between/close text editor tabs.
4. The plugin UI component fails to render, and the following stack trace is generated.

### Relevant Stack Trace

2026-06-11 13:48:03,999 [163807326]  WARN - org.eclipse.lsp4j.jsonrpc.RemoteEndpoint - Failed to send notification message.
java.lang.IllegalArgumentException: The field 'value' must contain an integer value.
at org.eclipse.lsp4j.jsonrpc.json.adapters.EnumTypeAdapter.(EnumTypeAdapter.java:61)
at org.eclipse.lsp4j.jsonrpc.json.adapters.EnumTypeAdapter$Factory.create(EnumTypeAdapter.java:43)
at com.google.gson.Gson.getAdapter(Gson.java:627)
...
at ai.poolside.helper.HelperCommandAPI.notifyViewChanges(HelperCommandAPI.kt:127)
at ai.poolside.helper.eventListening.DocumentViewState.syncLatest(DocumentViewState.kt:58)
at ai.poolside.helper.eventListening.HelperDocumentListener$2.editorReleased(HelperDocumentListener.kt:44)

0
1 comment

Looks like a Poolside plugin bug. The LSP notification payload has an enum value in the wrong format, causing Gson serialization to crash before the sidebar loads.

Check plugin/server version compatibility and capture the failing JSON-RPC message. Likely needs a fix from Poolside rather than an Android Studio setting change.

 

0

Please sign in to leave a comment.