Skip to content

Restore auto-building when smart import fails - #4256

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:smartimport-restore-autobuilding
Open

Restore auto-building when smart import fails#4256
vogella wants to merge 1 commit 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.

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.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   858 files  ±0     858 suites  ±0   55m 26s ⏱️ +54s
 8 173 tests +1   7 930 ✅ +1  243 💤 ±0  0 ❌ ±0 
20 421 runs  +3  19 765 ✅ +3  656 💤 ±0  0 ❌ ±0 

Results for commit ce1e8b5. ± Comparison against base commit 6e05cae.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant