Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support WSL binaries for zig/zls #55

Open
Zelinzky opened this issue Jul 23, 2024 · 5 comments
Open

Support WSL binaries for zig/zls #55

Zelinzky opened this issue Jul 23, 2024 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Zelinzky
Copy link

The plugin works relatively well, but when working with wsl projects it continues to use windows zig binaries.
It would be ideal that the plugin detects when running a wsl project and uses zig and zls from the wsl path.

@FalsePattern
Copy link
Owner

You can change the zig and zls paths to point to the "wsl" binaries in the per-project settings under Settings -> Languages & Frameworks -> Zig; Zig Settings -> Toolchain location and ZLS launch settings -> Executable path

@Zelinzky
Copy link
Author

yes, i attempted to do this. I point to zls binary no problem, but whenever i select my instalation path for zig itself it is ignored.
Screenshot 2024-07-23 115730

After i hit apply and reopen the config it is gone. and it never shows the toolchain version like it does with the windows binaries.

image

@FalsePattern
Copy link
Owner

FalsePattern commented Jul 23, 2024

ZigBrains can only run native executables for zig and zls at the moment, support for cross-platform and remote binaries is planned in the future, but for now you'll need to use a windows exe for them (or alternatively, install a linux version of your IDE into the WSL environment, and then use intellij Code With Me to remotely connect to it).

@Zelinzky
Copy link
Author

Gotcha!

@FalsePattern FalsePattern changed the title Ussage with WSL Support WSL binaries for zig/zls Jul 24, 2024
@FalsePattern FalsePattern added enhancement New feature or request help wanted Extra attention is needed labels Jul 24, 2024
@cmcpasserby
Copy link

@Zelinzky how are you running things i have been using it with WSL just fine, since its running on the remote side using the gateway stuff in clion. works almost as well as when i am booted into a proper linux distro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants