Sublime Forum

Crystalline LSP stuck at "initialize"

#1

I am trying to get LSP to work for the Crystal language. I’m using the Crystalline server: https://github.com/elbywan/crystalline

I have installed the crystalline binary in the $PATH, and since there is no Sublime package yet, I tried to just add it into the main LSP.sublime-settings like this:

{
  "log_debug": true,

  "clients": {
    "crystalline": {
      "enabled": true,
      "command": ["crystalline", "--stdio"],
      "selector": "source.crystal",
    },
  },
}

I see the name of the LSP in the bottom of the Sublime window when opening a crystal source file, but the (initialize) marker after the LSP name never disappears, which I guess it should after looking at other working LSPs (python and c++).

The log shows only this:

:: [19:25:12.659] --> crystalline initialize (1): {'initializationOptions': {}, ......

and no replies.

The troubleshooting window doesn’t show any obvious error, but I’m not sure how to interpret the data:

Troubleshooting: crystalline

Version

  • LSP: 1.25.0
  • Sublime Text: 4152

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "crystalline", 
  "--stdio"
]
  • shell command
crystalline --stdio
  • selector
source.crystal
  • priority_selector
source.crystal
  • init_options
{}
  • settings
{}
  • env
{}

Active view

  • File name
/home/tomas/projekt/prog/xkb-layout-monitor/src/libxcb.cr
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/Crystal/Crystal.tmLanguage"
}
  • base scope
source.crystal

Project / Workspace

  • folders
[
  "/home/tomas/projekt/prog/xkb-layout-monitor"
]
  • is project: True
  • project data:
{
  "folders": [
    {
      "path": "/home/tomas/projekt/prog/xkb-layout-monitor"
    }
  ]
}

LSP configuration

{
  "clients": {
    "crystalline": {
      "command": [
        "crystalline", 
        "--stdio"
      ], 
      "enabled": true, 
      "selector": "source.crystal"
    }
  }, 
  "log_debug": true
}

System PATH

  • /home/tomas/.bin
  • /home/tomas/.local/bin
  • /usr/local/bin
  • /usr/bin
  • /bin
  • /usr/games
0 Likes