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

Use fallback build settings if build system doesn’t provide build settings within a timeout #1762

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 16, 2024

When we receive build settings after hitting the timeout, we call fileBuildSettingsChanged on the delegate, which should cause the document to get re-opened in sourcekitd and diagnostics to get refreshed.

rdar://136332685
Fixes #1693

@ahoppen
Copy link
Member Author

ahoppen commented Oct 16, 2024

@swift-ci Please test

…tings within a timeout

When we receive build settings after hitting the timeout, we call `fileBuildSettingsChanged` on the delegate, which should cause the document to get re-opened in sourcekitd and diagnostics to get refreshed.

rdar://136332685
Fixes swiftlang#1693
@ahoppen
Copy link
Member Author

ahoppen commented Oct 16, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 16, 2024

Ran the test suite 20 times locally as-is and 20 times with a 1s delay before getting build settings from the build system. This should rule out any nondeterministic failures.

@ahoppen
Copy link
Member Author

ahoppen commented Oct 16, 2024

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Oct 17, 2024

@swift-ci Please test Windows

@ahoppen ahoppen requested a review from bnbarham October 17, 2024 18:54
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.

Return fallback build settings if build system doesn’t return build settings within a timeout
1 participant