Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java compiler stalls
Java compiler stalls [message #1868853] Wed, 24 July 2024 00:18 Go to next message
Niranjan Rao is currently offline Niranjan RaoFriend
Messages: 1
Registered: July 2024
Junior Member
I'm actually using STS 4.19.0.RELEASE but have seen same problem when using eclipse 2023-12 (4.30.0) or previous versions. Platform us Ubuntu 22.04/Java 17 or Java 21.

We have imported multiple projects, one project has 8000+ files as of this moment. Most of the java classes in this project extends from a single class in a different project.

Whenever we make a change to base class, eclipse does a what appears to be a full compile of the larger project. Change can be as simple as adding a new private member to base class which should not have any impact on top level classes. I have also observed that I don't have to modify base class structurally - that is no new methods/signature changes or member addition. Just doing usual logic changes in one the existing method.

Based on observation, eclipse compiler typically stalls at certain files, almost always reproducible. Full file name is not visible in task progress, but we can guess as we know the tree structure. File in question does not seem to be extra large or complicated. It's simple java code and not too large. After hitting stop button, build resumes.

Is there any way I can find out logs from eclipse compiler or whatever that will tell me it's stalling. Stall time can be significant - up to five minutes and every time I check progress bar of build, it usually shows same directory. I'm curious why does it always stalls at this location.

Can I ask eclipse not to do a full rebuild every time I save changes in base class. I am aware of build automatically option, but are there any other options that might make dependency management a bit more intelligent and not to do a full build if private methods are touched.

Will be glad to provide any information or experiment with settings. I don't believe this is hardware issue as computer is pretty powerful with SSD and lot of ram and got lot of diskspace free. Nothing interesting in workspace logs.

Re: Java compiler stalls [message #1868862 is a reply to message #1868853] Wed, 24 July 2024 05:47 Go to previous message
Erik BrangsFriend
Messages: 55
Registered: February 2010
Member
This sounds like a bug or shortcoming in JDT to me. If you're willing to help debug this, I'd advise you to ask on JDT's github organization at https://github.com/eclipse-jdt .
Previous Topic:ABAP Development Tools installation failed
Next Topic:Eclipse 2023-12 erratic behavior with Java 21
Goto Forum:
  


Current Time: Mon Jan 20 23:47:37 GMT 2025

Powered by FUDForum. Page generated in 0.03095 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top