gleam-lang / vscode-gleam

📟 Gleam support for VS Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[WIN10] [WSL] Gleam Language Server client: couldn't create connection to server.

harrisonhoward opened this issue · comments

Windows 10 Home - 22H2
WSL 2 - Debian

I installed Gleam in both the Linux and Windows systems.

For Linux, I installed it via Homebrew (4.2.17) and added /home/linuxbrew/.linuxbrew/bin/gleam to the $PATH
For Windows, I installed it via Scoop(0.3.1) and added C:\Users\askme\scoop\apps\gleam\current to the Path

I can confirm via the Debian and Powershell terminal that Gleam is functioning and that I can run my project from both terminals.
image
image

Is there something I missed, I only installed Gleam into Windows 10 as I assumed VSCode would be using that and it didn't make a difference. Any help would be appreciated.

Sorry forgot the error output

[Error - 10:02:36 PM] Gleam Language Server client: couldn't create connection to server.
Launching server using command gleam failed. Error: spawn gleam ENOENT

I don't know what changed by in the spar of the moment I restarted my computer once more and it fixed the issue. I don't know, I didn't even change anything in between the last restart I did. Oh well, all good now...