Skip to content

Add log messages to track target preparation #1478

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
Jun 13, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 12, 2024

These should help us figure out the root cause of rdar://129698768 if we hit it again.

These should help us figure out the root cause of rdar://129698768 if we hit it again.
@ahoppen ahoppen requested review from bnbarham and hamishknight June 12, 2024 21:40
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 12, 2024 21:40
@ahoppen
Copy link
Member Author

ahoppen commented Jun 12, 2024

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge June 12, 2024 22:13
@ahoppen ahoppen merged commit 1e0639c into swiftlang:main Jun 13, 2024
3 checks passed
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this pull request Jun 20, 2024
…nForEditorFunctionality`

We fulfilled the `allDocumentsOpened` expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.

This fixes the issue first reported as rdar://129698768 and for which I added logging in swiftlang#1478.
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this pull request Jun 20, 2024
…nForEditorFunctionality`

We fulfilled the `allDocumentsOpened` expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.

This fixes the issue first reported as rdar://129698768 and for which I added logging in swiftlang#1478.
@ahoppen
Copy link
Member Author

ahoppen commented Jun 20, 2024

The additional logging helped find the underlying issue: #1499

ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this pull request Jun 22, 2024
…nForEditorFunctionality`

We fulfilled the `allDocumentsOpened` expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.

This fixes the issue first reported as rdar://129698768 and for which I added logging in swiftlang#1478.

# Conflicts:
#	Tests/SourceKitLSPTests/BackgroundIndexingTests.swift
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this pull request Jun 26, 2024
…nForEditorFunctionality`

We fulfilled the `allDocumentsOpened` expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.

This fixes the issue first reported as rdar://129698768 and for which I added logging in swiftlang#1478.
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