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

Log contextual requests that affect sourcekitd’s global state #2094

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 27, 2025

This way we can log them when a sourcekitd request crashes and we can thus replay these contextual requests when diagnosing the crash.

@ahoppen ahoppen force-pushed the contextual-sourcekitd-request branch from 072bef5 to b8a09b5 Compare March 27, 2025 19:52
ahoppen added 2 commits March 28, 2025 14:29
This way we can log them when a sourcekitd request crashes and we can thus replay these contextual requests when diagnosing the crash.
Teach `sourcekit-lsp diagnose` how to extract contextual requests from the system log and use them to reduce sourcekitd crashes.
@ahoppen ahoppen force-pushed the contextual-sourcekitd-request branch from b8a09b5 to c0cd2ac Compare March 28, 2025 21:29
@ahoppen
Copy link
Member Author

ahoppen commented Mar 28, 2025

@swift-ci Please test

@ahoppen ahoppen marked this pull request as ready for review March 28, 2025 21:29
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