Skip to content

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

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

Open
wants to merge 3 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 2 times, most recently 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
@ahoppen ahoppen force-pushed the contextual-sourcekitd-request branch from c0cd2ac to e481ad5 Compare May 8, 2025 11:51
@ahoppen
Copy link
Member Author

ahoppen commented May 8, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 8, 2025

@swift-ci Please test Windows

ahoppen added 3 commits May 12, 2025 15:39
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 e481ad5 to d63419d Compare May 12, 2025 13:48
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2025

@swift-ci Please test Windows

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