Having a problem with Eclipse (Luna) IDE, while running the program I encountered a never ending loop so had to terminate the program. After which every-time I try to re-run the program it just hangs when loading the Debug Configuration.
I am trying to create a Eclipse Plug-in to retrieve a file name and add comments to it. I don't believe there's an error with the program as it was working fine before. I have tested a simple helloWorld program in another workspace to see if there were any problems but that program works fine. From what I have read it could be something to do with the metadata file but I have no idea how to correct it.
Problem
When attempting to load the Eclipse Luna box pops up (this is normal) in the bottom right-hand corner of the box, it shows what it is loading. It seems to hang at the point when it is trying to load org.eclipse.web.core.
The program was working fine up before the loop happened and I could run it without any problems.
When Eclipse stops responding it asks "if you wish to close the program" and below that it offers you some problem details which are listed below.
Problem Details
Problem signature:
Have Tried
Cleaning and rebuilding all projects, disabling firewalls and antiviruses, creating another basic program, reinstalling Eclipse and Java.
As a user I would suggest the following: make a hotkey to exit the loop in debugging mode, for example ctrl-shift-F11.
An eclipse debug configuration is similar to a run configuration but it used to start an application in the debug mode. Because the application is started in the debug mode the users are prompted to switch to the debug perspective.
With the test class open in the Eclipse editor, simply right click in the editor view and select Debug As > TestNG Test. Eclipse will stop at any breakpoints you set just like it would with any other local debug process.
I finally figured it out, within local Workspace I deleted the .metadata folder and then just re-imported the project this got it working again.
It seems when it got stuck in the loop the .Lock file was not closed properly within the .metadata folder and prevented eclipse from starting the Debug Configuration.
These questions also have some answerers that might work as well without having to delete the .metadata folder:
How do I prevent Eclipse from hanging on startup?
Eclipse hangs on loading workbench
I experienced the same issue with eclipse Mars running on Linux. I solved it by removing the debug configuration file associated with the project. This file is located in .metadata/.plugins/.org.eclipse.debug.core/.launches/$ProjectName.launch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With