Skip to content

Explicitly shut down the build server when SourceKit-LSP is shut down #1719

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
Oct 2, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 27, 2024

The build server is automatically shut down using a background task when BuildSystemManager is deallocated.

This, however, leads to possible race conditions where the shutdown task might not finish before the test is done, which could result in the connection being reported as a leak. To avoid this problem, we want to explicitly shut, down the build server when the SourceKitLSPServer gets shut down.

@ahoppen
Copy link
Member Author

ahoppen commented Sep 27, 2024

@swift-ci Please test

@ahoppen ahoppen force-pushed the explicit-bsp-shutdown branch from 407d1c2 to 48851a4 Compare September 27, 2024 13:38
@ahoppen
Copy link
Member Author

ahoppen commented Sep 27, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 27, 2024

@swift-ci Please test Windows

The build server is automatically shut down using a background task when `BuildSystemManager` is deallocated.

This, however, leads to possible race conditions where the shutdown task might not finish before the test is done, which could result in the connection being reported as a leak. To avoid this problem, we want to explicitly shut, down the build server when the `SourceKitLSPServer` gets shut down.
@ahoppen ahoppen force-pushed the explicit-bsp-shutdown branch from 48851a4 to d25b65c Compare September 30, 2024 18:57
@ahoppen
Copy link
Member Author

ahoppen commented Sep 30, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 30, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit ee29e31 into swiftlang:main Oct 2, 2024
3 checks passed
@ahoppen ahoppen deleted the explicit-bsp-shutdown branch October 2, 2024 17:27
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.

2 participants