Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Have to reinstall ZLS when using VSCode each time you switch between WSL and Windows #56

Open
tristanisham opened this issue Nov 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tristanisham
Copy link

Zig Version

0.11.0-dev.231+476b94680

Zig Language Server Version

1.1.1

Steps to Reproduce

Use ZLS on Windows or WSL with VSCode, then switch to the other environment. ZLS will prompt you to install itself.

Expected Behavior

I expected ZLS to be installed in both environments after installing it on each and not prompting me to redownload it every time I switch windows.

Actual Behavior

Use ZLS on Windows or WSL with VSCode, then switch to the other environment. ZLS will prompt you to install itself.

@tristanisham tristanisham added the bug Something isn't working label Nov 21, 2022
@SuperAuguste
Copy link
Member

Ah I actually figured it out!

Windows -> Linux:
zls tries to run the Windows executable but it fails so it prompts for install and then switches the path to the Linux executable.

Same thing in the other direction. This is a design oversight.

@SuperAuguste SuperAuguste transferred this issue from zigtools/zls Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants