Skip to content

Restart sourcekitd and clangd after they have crashed #353

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 3 commits into from
Jan 19, 2021

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 30, 2020

This is a rebase of #219 to the current state of main.

Since the rebase was non-trivial and the project has changed in the meantime I would appreciate a re-review ;-)

…ng of clangd

This will later allow us to restart clangd while keeping the same shim.
@ahoppen ahoppen requested a review from benlangmuir as a code owner November 30, 2020 21:05
@ahoppen
Copy link
Member Author

ahoppen commented Nov 30, 2020

@swift-ci Please test

@benlangmuir
Copy link
Contributor

Thanks! It'll take me a bit to go through the whole change again since it's been a while. In the meantime, please regenerate the linux test manifests:

swift test --generate-linuxmain

@ahoppen ahoppen force-pushed the crash-recovery-again branch from f57eafc to f5f26bf Compare December 19, 2020 16:31
@ahoppen
Copy link
Member Author

ahoppen commented Dec 19, 2020

Thanks for the thorough review @benlangmuir! Unfortunately I can't answer all of your questions in full detail, since it's just been too long since I wrote the original code. I can look into some of the questions in more detail if you think that's useful, though.

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 19, 2020

@swift-ci Please test

@ahoppen ahoppen force-pushed the crash-recovery-again branch from f5f26bf to 8e7968b Compare January 5, 2021 16:33
@ahoppen
Copy link
Member Author

ahoppen commented Jan 5, 2021

@swift-ci Please test

version: snapshot.version,
text: snapshot.text)
// Re-open the document but don't register for build system notifications again since
// the document is still open in the build system server from before the sourcektid crash.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is now out of date. Otherwise, LGTM.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes. I’ve removed the comment. Let’s get this merged. 🚀

@ahoppen ahoppen force-pushed the crash-recovery-again branch from 8e7968b to a0c9b30 Compare January 18, 2021 12:30
@ahoppen
Copy link
Member Author

ahoppen commented Jan 18, 2021

@swift-ci Please test

@benlangmuir benlangmuir merged commit d9b2d65 into swiftlang:main Jan 19, 2021
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