Bug 544918 - Improve tracing when JAR changes on disk
Summary: Improve tracing when JAR changes on disk
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.11   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug bulk move
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-28 09:16 EST by Dani Megert CLA
Modified: 2023-08-16 15:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2019-02-28 09:16:41 EST
I20190228-0300 (a 4.11 build).

On each start JDT builder insists in "Touching project org.eclipse.e4.ui.workbench.swt due to external jar file change"

Sometimes causing a longer build (auto-build on).

It's also with that bundle I often have issues after Pulling from Git: the classpath gets corrupted and a referenced JAR is claimed to be missing.


Test Case:

Enable tracing for the Java builder with those options:
org.eclipse.jdt.core/debug=true
org.eclipse.jdt.core/debug/builder=true
org.eclipse.jdt.core/debug/builder/stats= true

NOTE: Due to bug 544887 you must also add -consolelog when starting Eclipse.

1. Start with new workspace
2. Clone platform.ui and import the project mentioned above
   NOTE: You need a JRE 8 installed for the project to compile
3. Exit
4. Start

==> it will say:
Touching project org.eclipse.e4.ui.workbench.swt due to external jar file change

and will trigger an unexpected build.

You can exit and start again ==> same issue!


The trace also shows this:

JavaBuilder: New location: Classpath jar file C:\eclipse\drops\eclipse-SDK-I20190228-0300-win32-x86_64\configuration\org.eclipse.osgi\226\0\.cp\lib\annotations.jar
!= old location: Classpath jar file C:\eclipse\drops\eclipse-SDK-I20190228-0300-win32-x86_64\configuration\org.eclipse.osgi\226\0\.cp\lib\annotations.jar

Both locations look exactly the same, at least when printed.
Comment 1 Dani Megert CLA 2019-02-28 09:19:50 EST
When exiting the workspace it does save the state:
Saving build state for project org.eclipse.e4.ui.workbench.swt
Comment 2 Dani Megert CLA 2019-02-28 10:44:22 EST
OK, so,
Touching project org.eclipse.e4.ui.workbench.swt due to external jar file change
is correct because the files got rewritten (see below). However, the location did not change. This should be fixed in the trace output.


The configuration gets rewritten because I used
-Dosgi.clean=true
removing that fixes the appearance of the bug.


However, in my real workspace this should not happen because I have all bundles imported as binary plug-ins.

Digging deeper I found the issue, see bug 544924.
Comment 3 Manoj N Palat CLA 2019-08-27 02:37:14 EDT
Bulk Move Out of 4.13
Comment 4 Eclipse Genie CLA 2021-08-20 20:30:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Eclipse Genie CLA 2023-08-16 15:03:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.