Skip to content

Fix and simplify jetls spawning logic for Windows#375

Merged
aviatesk merged 1 commit intoaviatesk:masterfrom
visr:bad-bat
Dec 9, 2025
Merged

Fix and simplify jetls spawning logic for Windows#375
aviatesk merged 1 commit intoaviatesk:masterfrom
visr:bad-bat

Conversation

@visr
Copy link
Contributor

@visr visr commented Dec 9, 2025

Fixes #339, since #372 was not sufficient.

#372 was an improvement and the shell=true was needed. There was still a flaw in the name of the executable.

Normally jetls will be jetls.bat, but it can still be spawned with jetls, as long as it gets shell=true. That allows us to simplify the logic, fixing #372 in the process. The problem was that the default value of jetls was used, and since that didn't end with .bat, it did not get shell=true. I think we can just always use the shell on Windows, since folks will have a .bat in practice, and the code is simpler.

Copy link
Owner

@aviatesk aviatesk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Using jetls always seems much reasonable to me.

@aviatesk aviatesk merged commit 92e9aac into aviatesk:master Dec 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server startup issue on Windows

2 participants