Skip to content

fix ClasspathComputer: ignore if oldEntry not found #820#1601

Merged
jukzi merged 1 commit intoeclipse-pde:masterfrom
jukzi:fix_ClasspathComputer
Feb 6, 2025
Merged

fix ClasspathComputer: ignore if oldEntry not found #820#1601
jukzi merged 1 commit intoeclipse-pde:masterfrom
jukzi:fix_ClasspathComputer

Conversation

@jukzi
Copy link
Contributor

@jukzi jukzi commented Feb 5, 2025

fixes random failing ClasspathUpdaterTest

When IJavaProject.setRawClasspath() is explicitly called with ClasspathEntries distinct from PDE (like in the Test), and then later PDEs UpdateClasspathJob is executed it can't compute the "oldEntry" and fails with "... is not on its projects build path". The Message is correct - it was manually removed from the projects build path. That state should just be ignored so that PDE continues to set the IClasspathEntries computed by PDE.

#820

@jukzi
Copy link
Contributor Author

jukzi commented Feb 5, 2025

how about that? @haubi @laeubi @iloveeclipse @HannesWell ?

@github-actions
Copy link

github-actions bot commented Feb 5, 2025

Test Results

   285 files  + 12     285 suites  +12   56m 7s ⏱️ + 13m 16s
 3 608 tests ±  0   3 532 ✅ +  3   76 💤  -  2  0 ❌  - 1 
11 016 runs  +388  10 785 ✅ +333  231 💤 +57  0 ❌  - 2 

Results for commit a03dbf6. ± Comparison against base commit 5c22fae.

♻️ This comment has been updated with latest results.

@jukzi jukzi added bug Something isn't working test Test case failure labels Feb 6, 2025
@jukzi jukzi force-pushed the fix_ClasspathComputer branch from 99719ec to cf528da Compare February 6, 2025 09:57
fixes random failing ClasspathUpdaterTest

When IJavaProject.setRawClasspath() is explicitly called with
ClasspathEntries distinct from PDE (like in the Test), and then later
PDEs UpdateClasspathJob is executed it can't compute the "oldEntry" and
fails with "... is not on its projects build path". The Message is
correct - it was manually removed from the projects build path. That
state should just be ignored so that PDE continues to set the
IClasspathEntries computed by PDE.

eclipse-pde#820
@jukzi jukzi force-pushed the fix_ClasspathComputer branch from cf528da to a03dbf6 Compare February 6, 2025 10:19
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.

This looks like something we can do to be more defensive in error handling.

@jukzi jukzi linked an issue Feb 6, 2025 that may be closed by this pull request
@jukzi jukzi merged commit a3feb92 into eclipse-pde:master Feb 6, 2025
18 checks passed
@jukzi jukzi deleted the fix_ClasspathComputer branch February 6, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working test Test case failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClasspathUpdaterTest randomly fails

4 participants

Comments