Skip to content

Restore auto-building when smart import fails - #4256

Merged
vogella merged 2 commits into
eclipse-platform:masterfrom
vogella:smartimport-restore-autobuilding
Aug 31, 2026
Merged

Restore auto-building when smart import fails#4256
vogella merged 2 commits into
eclipse-platform:masterfrom
vogella:smartimport-restore-autobuilding

Conversation

@vogella

@vogella vogella commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The smart import job disables workspace auto-building while it runs and re-enables it as the last statement of its try block. If a project configurator throws or the import is cancelled, that statement is skipped and the workspace is left with auto-building permanently off, which is confusing because nothing points back at the failed import.

Restoring the setting in a finally block fixes this, and the optional import listener is now null checked when projects are closed after the import. The new test asserts both that the failing import reports an error status and that auto-building survives it.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Test Results

   858 files  +   848     858 suites  +848   53m 33s ⏱️ + 53m 21s
 8 186 tests + 7 719   7 943 ✅ + 7 477  243 💤 +242  0 ❌ ±0 
20 460 runs  +20 336  19 804 ✅ +19 681  656 💤 +655  0 ❌ ±0 

Results for commit fa3cf70. ± Comparison against base commit f1a33ad.

♻️ This comment has been updated with latest results.

SmartImportJob turns auto-building off for the duration of the import and
turns it back on as the last statement of its try block. A configurator
that throws, or a cancellation, skips that statement, so the workspace is
left with auto-building permanently disabled until the user notices and
toggles it manually.

Restore the previous setting in a finally block instead. Also null check
the optional import listener when closing projects after the import.
@vogella
vogella force-pushed the smartimport-restore-autobuilding branch from ce1e8b5 to a1156b0 Compare August 30, 2026 17:52
@vogella vogella added plan Planned bugs/enhancements for a release and removed Planned for 4.42 labels Aug 30, 2026
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

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

bundles/org.eclipse.ui.ide/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 6ce46682b8207446204c70efbaa98cb46de3d86b Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Sun, 30 Aug 2026 17:58:31 +0000
Subject: [PATCH] Version bump(s) for 4.42 stream


diff --git a/bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF
index 32bc975604..94d64b2f96 100644
--- a/bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %Plugin.name
 Bundle-SymbolicName: org.eclipse.ui.ide; singleton:=true
-Bundle-Version: 3.23.200.qualifier
+Bundle-Version: 3.23.300.qualifier
 Bundle-Activator: org.eclipse.ui.internal.ide.IDEWorkbenchPlugin
 Bundle-ActivationPolicy: lazy
 Bundle-Vendor: %Plugin.providerName
-- 
2.55.0

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

@vogella
vogella merged commit 0ac39d5 into eclipse-platform:master Aug 31, 2026
18 checks passed
@vogella
vogella deleted the smartimport-restore-autobuilding branch August 31, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plan Planned bugs/enhancements for a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants