Android – how to deal with the persistence of eclipse hanging on the workspace?

This is its length. First short:

>I have an X window system crash, resulting in unclean eclipse (that is, it may be forcibly killed without warning). > when restarting eclipse, it will suspend "loading workbench" indefinitely. > deleting the *. Snap file in workspace /. Metadata is effective, but the IDE cannot work normally after lunch, Because these files are missing. > delete my workspace /. Metadata so that eclipse can start and run normally, but... > when I try to save java files (any files), it will hang indefinitely "user action is waiting" – "build workspace"

Therefore, somewhere after the crash, one or more files caused eclipse to hang or otherwise process my workspace when trying to recover the file I was editing. The following are some related exceptions in my. Log file:

Starting from point 2:

!ENTRY org.eclipse.core.resources 2 10035 2011-01-24 11:21:33.870
!MESSAGE The workspace exited with unsaved changes in the prevIoUs session; refreshing workspace to recover changes.

!ENTRY org.eclipse.core.resources 8 2 2011-01-24 11:21:35.040
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: SDK is not loaded yet
        at com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.stopBuild(UnkNown Source)
        at com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.abortOnBadSetup(UnkNown Source)
        at com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder.build(UnkNown Source)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Starting from point 5:

!ENTRY org.eclipse.core.resources 8 2 2011-01-24 14:14:47.331
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: Project target not loaded yet.
        at com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.stopBuild(UnkNown Source)
        at com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.abortOnBadSetup(UnkNown Source)
        at com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(UnkNown Source)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 com.android.ide.eclipse.adt 8 0 2011-01-24 14:14:47.331
!MESSAGE Project target not loaded yet.
!SUBENTRY 1 com.android.ide.eclipse.adt 8 0 2011-01-24 14:14:47.331
!MESSAGE Project target not loaded yet.

At this point, what I really want is to be able to use eclipse without crashing. Any suggestions can not completely delete my entire ~ /. Eclipse directory, my workspace, and reinstall eclipse from scratch?

resolvent:

I know you don't want this as the answer, but I'll seriously consider getting another copy of eclipse - unless you have many saving preferences, you absolutely need to insist. Make sure to copy your workspace elsewhere, and then blow out the broken version of eclipse

I think this is the best solution to save time. Otherwise, you may modify the settings for a while until you finally get a solution - even then, your eclipse may be unstable

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>