Why is my Eclipse workspace unstable and how can I fix it?
The Eclipse workspace may become unstable over time and must be cleaned or replaced.
Symptom
The DITA CMS Eclipse Client repeatedly becomes unresponsive or the plugins stop working reliably.
Problem
Over time an Eclipse workspace may become unstable as plugins are added, upgraded, or removed. This instability can cause plugins to malfunction such as causing searches or autocomplete to fail.
Solution
You can try the following procedures one at a time and test in between each one to check if the problem is resolved:
- Clean the Eclipse caches
- Create a new workspace
- Reinstall Eclipse
Clean the Eclipse caches
Using the -clean argument forces Eclipse to reinitialize the caches, which removes all cached data used by the OSGi framework and Eclipse runtime. This should restore workspace stability.
To use the -clean argument, perform one of the following procedures:
Method | Procedure |
---|---|
Edit the eclipse.ini file |
For example:
|
Edit the Eclipse shortcut |
|
Create a batch or shell script | Create a batch or shell script that calls the Eclipse executable with the -clean argument. |
Create a new workspace
If the -clean argument did not resolve the issue, then you need to create a new workspace and import your preferences and projects into it.
To create a new workspace:
- Export your preferences from the existing workspace:
- Open the DITA CMS Eclipse Client associated to the workspace that is unstable.
- In the main menu, click
- In the Export window, click .
- Click Next.
- Select Export all.
- In the To preference file box, type the path and file name where you want to save your preferences file or click Browse to choose a location.
- Click Finish.
- Create a new workspace:
- In the main menu, click .
- In the Workspace box, type the path to your new workspace or click Browse to choose a location. The Eclipse Client will restart with the new workspace associated to it.
- Import your preferences:
- In the main menu, click .
- In the Import window, click .
- Click Next.
- In the From preference file box, type the path and file name where you saved your preferences file or click Browse to choose the location.
- Select Export all.
- Click Finish.
Clean reinstall of Eclipse
If creating a new workspace did not resolve the issue, then you need to reinstall Eclipse. A broken Eclipse installation is usually caused by using incompatible versions of plugins with the wrong base version of Eclipse. Do not delete the old installation until your new installation is sufficiently tested and you are confident in it. If you do not know how to reinstall Eclipse, please contact your DITA CMSDITA CMS Administrator.