1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00
cdt/core/org.eclipse.cdt.core
github-actions[bot] 81989fa4c4
[cdt_11_6] On createBuildConfiguration, reset project's ScannerInfoProvider (#817) (#854)
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 0f36d5dba1)

Co-authored-by: betamax <evil_bandit_betamax@yahoo.co.uk>
2024-06-28 21:48:56 -04:00
..
.settings Support section data lookup within static libraries 2024-01-02 15:23:27 +00:00
browser/org/eclipse/cdt Remove unreachable code 2020-11-03 14:33:15 -05:00
doxygen/org/eclipse/cdt/doxygen Bug 562997 - Switch CDT doxygen to use new Equinox preferences API 2020-05-09 11:42:57 -04:00
META-INF [cdt_11_6] On createBuildConfiguration, reset project's ScannerInfoProvider (#817) (#854) 2024-06-28 21:48:56 -04:00
model/org/eclipse/cdt [703] fix NPE when no build binaries on system PATH (#704) 2024-02-11 07:45:57 +01:00
OSGI-INF Bug 559193 - Rework DoxygenPreferences to encapsulate constants 2020-01-22 11:47:43 -05:00
parser/org/eclipse/cdt Parse empty __attribute__(()) (#770) 2024-05-17 12:49:41 -04:00
schema Bug 570992: Fix templates extension point documentation 2021-02-07 04:03:44 -05:00
src/org/eclipse/cdt [cdt_11_6] On createBuildConfiguration, reset project's ScannerInfoProvider (#817) (#854) 2024-06-28 21:48:56 -04:00
templateengine/org/eclipse/cdt Refactor XML file handling 2023-08-16 11:06:59 -04:00
utils/org/eclipse/cdt [#693] Fix resource leak warnings for org.eclipse.cdt.core.utils 2024-02-07 18:24:08 +03:00
.classpath Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
.options Added tracing to CompositeValue.create. 2017-02-27 20:29:30 -08:00
.project Remove unused C Nature from cdt core 2020-11-03 14:29:40 -05:00
about.html [releng] Update all legal files with update_legal_files.sh 2022-04-13 13:42:35 -04:00
build.properties Bug 565154 - Delete CDT Core Options API 2020-08-01 05:54:03 -04:00
plugin.properties LLVM optimization remarks. (#803) 2024-05-29 08:53:59 -04:00
plugin.xml LLVM optimization remarks. (#803) 2024-05-29 08:53:59 -04:00