gleam-lang / vscode-gleam

📟 Gleam support for VS Code
Apache License 2.0
142 stars 30 forks source link

Language Server: Couldn't create connection to server #61

Closed PhilippMolitor closed 4 months ago

PhilippMolitor commented 4 months ago

The language server does not work for my installation. Gleam 1.0 was installed via asdf, as described in the gleam docs.

Gleam Language Server VSCode output:

[Error - 11:04:37 AM] Gleam Language Server client: couldn't create connection to server.
Launching server using command gleam failed. Error: spawn gleam ENOENT
lpil commented 4 months ago

Hello! You need to ensure that your editor has the asdf directory in its PATH for it to be able to find the gleam program.

PhilippMolitor commented 4 months ago

Thank you. I tinkered around with the installation a bit, seems like asdf does indeed get loaded correctly without modifications when rebooting the whole system after install. Still, autocompletion does not work, but linting does. Not sure what the state of the extension and language server currently is, so this might be expected.