IJPL-214609 disable reporting errors for contexts providing several contexts for a file

related to IJPL-220967


(cherry picked from commit c581d574ecec915dc94b4120fbf0471863d59d92)

IJ-CR-184504

GitOrigin-RevId: 57ae7f823abd143dfabdc032de5a0ac0a8149e6c
This commit is contained in:
Max Medvedev
2025-12-03 20:32:36 +00:00
committed by intellij-monorepo-bot
parent 7fef480f21
commit cd1307bcc5
@@ -111,7 +111,7 @@ public abstract class StubProcessingHelperBase {
@NotNull Collection<CodeInsightContext> contexts) {
if (ourContextErrorCounter.get() < MAX_CONTEXT_ERROR_NUMBER) {
// todo IJPL-339 we need to process the file twice in this case. Not supported yet
LOG.error("Multiple contexts for file " + file + " in scope " + scope + ". Contexts: " + contexts);
LOG.warn("Multiple contexts for file " + file + " in scope " + scope + ". Contexts: " + contexts);
ourContextErrorCounter.incrementAndGet();
}
}