Skip to content

Fix an error that causes SourceKit-LSP to exit immediately on Windows #1882

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

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 11, 2024

For reasons that are completely oblivious to me, DispatchIO.write, which is used to write LSP responses to stdout fails with error code 5 on Windows unless we call AbsolutePath(validating:) on some URL first.

@ahoppen ahoppen requested a review from bnbarham December 11, 2024 06:03
@ahoppen
Copy link
Member Author

ahoppen commented Dec 11, 2024

@swift-ci Please test

For reasons that are completely oblivious to me, `DispatchIO.write`, which is used to write LSP responses to stdout fails with error code 5 on Windows unless we call `AbsolutePath(validating:)` on some URL first.
@ahoppen ahoppen force-pushed the windows-immediate-exit branch from 958e29f to e6b8e07 Compare December 11, 2024 18:39
@ahoppen
Copy link
Member Author

ahoppen commented Dec 11, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 9a1c75e into swiftlang:main Dec 12, 2024
3 checks passed
@ahoppen ahoppen deleted the windows-immediate-exit branch December 12, 2024 22:25
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.

1 participant