Skip to content

Conversation

@ptziegler
Copy link
Contributor

When the target editor is opened, PDE tries to delete the old target handle as part of "Bug 545681 - UI Freeze of >800s in TargetEditor when opening editor".

If the profile is not locked (due to whatever reasons), an IllegalArgumentException is thrown, blocking the resolution of this file.

@ptziegler
Copy link
Contributor Author

See #2141

@ptziegler ptziegler force-pushed the unlocked-target-file branch 2 times, most recently from 5bab230 to 3c47c01 Compare November 20, 2025 07:32
@ptziegler ptziegler changed the title Catch IllegalArgumentException when resolving target platform Catch IllegalArgumentException when resolving target definition Nov 20, 2025
Copy link
Contributor

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

Sounds reasonable to me

@github-actions
Copy link

github-actions bot commented Nov 20, 2025

Test Results

   771 files  ±0     771 suites  ±0   59m 41s ⏱️ + 2m 11s
 3 648 tests ±0   3 594 ✅ ±0   54 💤 ±0  0 ❌ ±0 
10 878 runs  ±0  10 715 ✅ ±0  163 💤 ±0  0 ❌ ±0 

Results for commit 7e5e593. ± Comparison against base commit 5d4bf0c.

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the unlocked-target-file branch from 3c47c01 to 389fb89 Compare December 1, 2025 08:11
@eclipse-pde-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:

ui/org.eclipse.pde.ui/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 ee8ceab451378feccf6c6adced73098b7067dba6 Mon Sep 17 00:00:00 2001
From: Eclipse PDE Bot <[email protected]>
Date: Mon, 1 Dec 2025 08:17:08 +0000
Subject: [PATCH] Version bump(s) for 4.39 stream


diff --git a/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF b/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF
index f8db32e0c6..87bb6898ee 100644
--- a/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF
+++ b/ui/org.eclipse.pde.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %name
 Bundle-SymbolicName: org.eclipse.pde.ui; singleton:=true
-Bundle-Version: 3.16.300.qualifier
+Bundle-Version: 3.16.400.qualifier
 Bundle-Activator: org.eclipse.pde.internal.ui.PDEPlugin
 Bundle-Vendor: %provider-name
 Bundle-Localization: plugin
-- 
2.51.2

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

When the target editor is opened, PDE tries to delete the old target
handle as part of "Bug 545681 - UI Freeze of >800s in TargetEditor when
opening editor".

If the profile is not locked (due to whatever reasons), an
IllegalArgumentException is thrown, blocking the resolution of this
file.
@ptziegler ptziegler force-pushed the unlocked-target-file branch from 3cb0e67 to 7e5e593 Compare December 5, 2025 09:11
@vogella
Copy link
Contributor

vogella commented Dec 5, 2025

Looks good, only the commit message and PR description seem to have a typo.

@ptziegler I think the NOT is incorrect, I did not test but would assume that the exception is thrown if the profile is locked.

"If the profile is not locked (due to whatever reasons), an IllegalArgumentException is thrown..."

@merks
Copy link
Contributor

merks commented Dec 5, 2025

It's dealing with this case:

image

@ptziegler
Copy link
Contributor Author

Yes. The problem is that PDE forgot that it had already unlocked the profile in the past. So when trying to unlock this already unlocked profile, the exception occurs.

@vogella
Copy link
Contributor

vogella commented Dec 5, 2025

I suggest to merge this one

@merks
Copy link
Contributor

merks commented Dec 5, 2025

It looks fine to me as well.

@ptziegler
Copy link
Contributor Author

I'm not a committer. Whoever wants to merge this has to be someone other than me.

@merks merks merged commit df29a67 into eclipse-pde:master Dec 5, 2025
19 checks passed
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.

5 participants