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

Switch tool detection for lsp-unzip (#3022) #4472

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

Horrih
Copy link
Contributor

@Horrih Horrih commented Jun 9, 2024

It caused issues on windows if unzip was found on the PATH, because it fell back to the bash command + unzip.

Changing in order of detection fixes the issue.

@yyoncho
Copy link
Member

yyoncho commented Jun 9, 2024

This will force powershell on linux which IIRC was causing trouble in the past. Can you add additional condition (if on windows and if powershell there - use it)

@Horrih
Copy link
Contributor Author

Horrih commented Jun 9, 2024

Just pushed a new version, is this what you had in mind ?
Just checked it on both my systems, it seems to work fine.

Btw, thanks a lot for your selfless work on lsp-mode.
Lsp-mode is the sole reason I came back to emacs in 2019 years after I gave up on the tags system.

@yyoncho
Copy link
Member

yyoncho commented Jun 10, 2024

((executable-find "powershell") lsp-ext-pwsh-script

can you keep that too in the end?

It caused issues on windows if unzip was found on the PATH
@Horrih
Copy link
Contributor Author

Horrih commented Jun 10, 2024

Sure, is that better ?

I rebased onto master + squashed the previous commits

@jcs090218 jcs090218 merged commit 532d38b into emacs-lsp:master Sep 30, 2024
11 of 13 checks passed
@jcs090218
Copy link
Member

LGTM! Thank you for taking care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants