Skip to content

Fix use .CMD server for windows#17

Merged
camc314 merged 4 commits intomainfrom
fix-use-exe-for-windows
Aug 19, 2025
Merged

Fix use .CMD server for windows#17
camc314 merged 4 commits intomainfrom
fix-use-exe-for-windows

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Aug 10, 2025

closes #16

Not tested, but looks similar to oxc-project/oxc#12932.

The target file has a sh shebang, but can not work under windows.

@camc314 camc314 self-assigned this Aug 15, 2025
@camc314 camc314 requested a review from Copilot August 15, 2025 00:49

This comment was marked as outdated.

@Sysix Sysix requested a review from Copilot August 15, 2025 11:05

This comment was marked as outdated.

@camc314 camc314 requested a review from Copilot August 19, 2025 14:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes oxc language server execution on Windows by using the .CMD wrapper script instead of the Unix shell script. The PR addresses the issue where the oxc language server fails to start on Windows due to the shell script shebang not being supported.

  • Adds Windows platform detection to conditionally use .CMD extension
  • Reorganizes imports and constants for better readability
  • Updates fallback server path logic to handle Windows-specific executable format

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@camc314 camc314 merged commit b3bfaa7 into main Aug 19, 2025
@camc314 camc314 deleted the fix-use-exe-for-windows branch August 19, 2025 14:43
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.

Failed to run oxc on Windows

4 participants