Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Nov 14, 2025

Fixes #2278

When a builder attempts to begin or end a scheduling rule that doesn't match the outer scope rule, the error message now includes:

  • Builder name and label
  • Builder class name
  • Plugin ID
  • Project name
  • The conflicting rule

This makes it much easier to identify which builder is causing the rule mismatch, especially in complex build scenarios with multiple builders.

The enhancement catches IllegalArgumentException at the point where beginRule() and endRule() are called in BuildManager.basicBuild() and wraps it with detailed context before re-throwing.

@vogella vogella marked this pull request as draft November 14, 2025 11:31
@vogella vogella force-pushed the claude/enhance-stack-trace-info-01QAQgSR1KNnaVQwZBptdyDo branch from e5b4927 to b906eae Compare November 14, 2025 11:32
@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

Test Results

 1 953 files  ±0   1 953 suites  ±0   1h 27m 57s ⏱️ -19s
 4 744 tests ±0   4 720 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 232 runs  ±0  14 050 ✅ ±0  182 💤 ±0  0 ❌ ±0 

Results for commit 32c5cdf. ± Comparison against base commit ad08006.

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the claude/enhance-stack-trace-info-01QAQgSR1KNnaVQwZBptdyDo branch 3 times, most recently from f754b17 to 02578f4 Compare November 14, 2025 15:52
Fixes eclipse-platform#2278

When a builder attempts to begin or end a scheduling rule that doesn't
match the outer scope rule, the error message now includes:
- Builder name and label
- Builder class name
- Plugin ID
- Project name
- The conflicting rule

This makes it much easier to identify which builder is causing the
rule mismatch, especially in complex build scenarios with multiple
builders.

The enhancement catches IllegalArgumentException at the point where
beginRule() and endRule() are called in BuildManager.basicBuild() and
wraps it with detailed context before re-throwing.
@vogella vogella force-pushed the claude/enhance-stack-trace-info-01QAQgSR1KNnaVQwZBptdyDo branch from 02578f4 to d4e060e Compare December 12, 2025 08:36
@eclipse-platform-bot
Copy link
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

resources/bundles/org.eclipse.core.resources/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 37e6a615020f7bbe10eeba250515120c8b3ee017 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Fri, 12 Dec 2025 08:44:01 +0000
Subject: [PATCH] Version bump(s) for 4.39 stream


diff --git a/resources/bundles/org.eclipse.core.resources/META-INF/MANIFEST.MF b/resources/bundles/org.eclipse.core.resources/META-INF/MANIFEST.MF
index 82730f0630..f089e0fbcc 100644
--- a/resources/bundles/org.eclipse.core.resources/META-INF/MANIFEST.MF
+++ b/resources/bundles/org.eclipse.core.resources/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.core.resources; singleton:=true
-Bundle-Version: 3.23.100.qualifier
+Bundle-Version: 3.23.200.qualifier
 Bundle-Activator: org.eclipse.core.resources.ResourcesPlugin
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
-- 
2.52.0

Further information are available in Common Build Issues - Missing version increments.

@vogella vogella marked this pull request as ready for review December 12, 2025 08:59
// Acquire the rule required for running this builder
if (rule != null) {
Job.getJobManager().beginRule(rule, monitor);
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like two blocks differ only in string arguments. Can you please extract them to a static method handleRuleConflicts(boolean beginRule, InternalBuilder currentBuilder, IllegalArgumentException e)?

Could you please also add some example or just a test how the result error would look like?

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.

Attempted to beginRule: MultiRule[], does not match outer scope rule: R/

3 participants