hyprland-community / hyprls

A LSP server for Hyprland config files [maintainer=@ewen-lbh]
https://ewen.works/hyprls
MIT License
129 stars 7 forks source link

Arch Linux, Hyprls not starting #10

Open ARKye03 opened 5 months ago

ARKye03 commented 5 months ago

On VSCode

Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:16:23.416Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.8.9-zen1-2-zen

$ go version

go version go1.22.3 linux/amd64

At the start, Hyprls returns this in the output:

[Error - 6:27:38 PM] Hypr client: couldn't create connection to server.
Launching server using command hyprls failed. Error: spawn hyprls ENOENT

Trying Hyprls in the terminal: $ hyprls

2024-06-04T18:29:51.201-0400    DEBUG   hyprls/main.go:25       going to start server
2024-06-04T18:29:51.201-0400    DEBUG   hyprls@v0.2.0/main.go:18        starting server

Does nothing else. HyprLS is installed, and the binaries folder from go is exported to the PATH. I can use the hyprls command from the terminal, but it won't start.

ewen-lbh commented 5 months ago

Hiii! This looks similar to #8, can you try this workaround? https://github.com/hyprland-community/hyprls/issues/8#issuecomment-2119347937

ARKye03 commented 5 months ago

Hiii! This looks similar to #8, can you try this workaround? #8 (comment)

Thank you, but none of the solutions worked for me, except for the one that invokes VSCode from the terminal; it serves as a workaround for now. Thank you

baudneo commented 5 months ago

You modifed the user JSON settings in VSCode and rebooted? I am on Arch as well and had the same issue until I set the proper PATH in the VSCode env and rebooted. Rebooting was key, it didnt work until after a reboot.