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

On createBuildConfiguration, reset project's ScannerInfoProvider #826

Closed
wants to merge 1 commit into from

Commits on Jun 13, 2024

  1. On createBuildConfiguration, reset project's ScannerInfoProvider

    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.
    betamaxbandit committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    4614171 View commit details
    Browse the repository at this point in the history