Why is Eclipse's Run button not working? [message #1411299] |
Fri, 22 August 2014 23:25 |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
I use Eclipse Luna and everything was working fine until today when I saw this error message while trying to run my Java code:
http://i.stack.imgur.com/l0U4M.png
When I dismissed the message, clicking the run and debug buttons did nothing at all. I restarted Eclipse, but that did nothing.
After trying to find the source of the error, it seems that restarting the whole computer seems to "reset" everything. The first time I open Eclipse after a restart, the run button works fine for one run, but after that first run if I hover the cursor over the run button, I get the above error message and the run button stops working. Strangely, clicking the down arrow next to the run button and selecting my project works all the time, regardless of the error message.
Reinstalling did not fix anything. In fact, the error only occurs when one certain source file is open in the Editor... I tried removing class members one by one and the error only occurs if one specific method is present. This method is pretty long (176 LOC), and everything works fine if I remove at least 70 LOC. Breaking the method up into several helper methods does not help. Has anybody else been having this problem? What could be causing this?
The workspace .log file entry starts with:
!ENTRY org.eclipse.core.jobs 4 2 2014-08-21 10:34:50.212
!MESSAGE An internal error occurred during: "Compute launch button tooltip".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:124)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2343)
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2406)
and continues on with a huge stack trace which ends with:
at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:240)
at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$1$1.run(LaunchingResourceManager.java:142)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
|
|
|
Re: Why is Eclipse's Run button not working? [message #1412022 is a reply to message #1411299] |
Mon, 25 August 2014 05:15 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Rich,
That sounds odd. Note that when you run something a launcher is created
and Eclipse will also try to compile any necessary code. You might want
to inspect what this launcher looks like and change various settings
(via Run Configurations...). There's also the option in
Window->Preferences->Run/Debug->Launchers... where you could turn of the
"Build (if required)..." option. The description of the symptom makes
it sound like it's having a problem creating an error message for
something its trying to compile. This does sound like JDT bug, if
that's the case, so reporting a bugzilla with a sample that reproduces
the problem (which it sounds like you've kind of isolated) would be very
helpful...
On 23/08/2014 1:25 AM, Rich Williams wrote:
> I use Eclipse Luna and everything was working fine until today when I
> saw this error message while trying to run my Java code:
>
> http://i.stack.imgur.com/l0U4M.png
>
> When I dismissed the message, clicking the run and debug buttons did
> nothing at all. I restarted Eclipse, but that did nothing.
>
> After trying to find the source of the error, it seems that restarting
> the whole computer seems to "reset" everything. The first time I open
> Eclipse after a restart, the run button works fine for one run, but
> after that first run if I hover the cursor over the run button, I get
> the above error message and the run button stops working. Strangely,
> clicking the down arrow next to the run button and selecting my
> project works all the time, regardless of the error message.
>
> Reinstalling did not fix anything. In fact, the error only occurs when
> one certain source file is open in the Editor... I tried removing
> class members one by one and the error only occurs if one specific
> method is present. This method is pretty long (176 LOC), and
> everything works fine if I remove at least 70 LOC. Breaking the method
> up into several helper methods does not help. Has anybody else been
> having this problem? What could be causing this?
>
> The workspace .log file entry starts with:
>
>
> !ENTRY org.eclipse.core.jobs 4 2 2014-08-21 10:34:50.212
> !MESSAGE An internal error occurred during: "Compute launch button
> tooltip".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:124)
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2343)
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2406)
>
>
> and continues on with a huge stack trace which ends with:
>
>
> at
> org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:240)
> at
> org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$1$1.run(LaunchingResourceManager.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08041 seconds