elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
424 stars 21 forks source link

Server initialization failed #85

Closed BigBoyBarney closed 2 months ago

BigBoyBarney commented 2 months ago

Hi!

I get the following error:

[Crystal] loading lsp /home/barney/crystalline
[Error - 14:35:26] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

when trying to use Crystalline with VScodium.


Steps:

  1. Download crystalline and make it executable
    wget https://github.com/elbywan/crystalline/releases/latest/download/crystalline_x86_64-unknown-linux-musl.gz -O crystalline.gz &&\
    gzip -d crystalline.gz &&\
    chmod u+x crystalline

    image

  2. Set path in VScodium extension image
  3. Restart VScodium
  4. Error
    [Crystal] loading lsp /home/barney/crystalline
    [Error - 14:35:26] Server initialization failed.
    Message: Pending response rejected since connection got disposed
    Code: -32097 
    [Info  - 14:35:26] Connection to server got closed. Server will restart.
    true
    [Error - 14:35:26] Crystal Language client: couldn't create connection to server.
    Message: Pending response rejected since connection got disposed
    Code: -32097 
    [Error - 14:35:26] Server initialization failed.
    Message: Pending response rejected since connection got disposed
    Code: -32097 
    [Info  - 14:35:26] Connection to server got closed. Server will restart.

Thanks in advance!

BigBoyBarney commented 2 months ago

EDIT:

This does not seem to be a Crystalline issue, but rather flatpak issue. Installing a non-flatpak version of VSCodium works correctly.