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

[cdt_11_6] On createBuildConfiguration, reset project's ScannerInfoProvider (#817) #854

Merged
merged 2 commits into from
Jun 29, 2024

Conversation

github-actions[bot]
Copy link

Backport

This will backport the following commits from main to cdt_11_6:

Questions ?

Please refer to the Backport tool documentation

When the project's active IBuildConfiguration has the default name and
the chosen ICBuildConfigurationProvider.getCBuildConfiguration does not
support the IBuildConfiguration.DEFAULT_CONFIG_NAME and returns null,
this can cause the project's ScannerInfoProvider to become "stuck"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=413357) on the wrong
setting (eg LanguageSettingsScannerInfoProvider instead of
ICBuildConfiguration) until Eclipse is restarted or the project is
closed and reopened. When this happens, the indexer does not function.

This problem may arise if an ISV contributes a
ICBuildConfigurationProvider which has very specific naming conventions
for it's build configurations.

The solution uses the API (resetCachedScannerInfoProvider(project)),
introduced by 413357, to reset the project's ScannerInfoProvider when a
new ICBuildConfiguration is created.

(cherry picked from commit 0f36d5d)
@jonahgraham
Copy link
Member

@betamaxbandit FYI here is the auto-created backport

@jonahgraham jonahgraham added this to the 11.6.1 milestone Jun 28, 2024
Copy link
Author

github-actions bot commented Jun 29, 2024

Test Results

   635 files     635 suites   56m 10s ⏱️
11 411 tests 11 200 ✅ 143 💤 60 ❌ 8 🔥
11 449 runs  11 238 ✅ 143 💤 60 ❌ 8 🔥

For more details on these failures and errors, see this check.

Results for commit 053ef13.

♻️ This comment has been updated with latest results.

@jonahgraham
Copy link
Member

The fails here are #816

@jonahgraham jonahgraham merged commit 81989fa into cdt_11_6 Jun 29, 2024
5 of 6 checks passed
@jonahgraham jonahgraham deleted the backport/cdt_11_6/pr-817 branch June 29, 2024 01:48
@betamaxbandit
Copy link
Contributor

👍
Thanks @jonahgraham

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