I'm running Liclipse 2.5.3 on Mac OS. I renamed my project causing me to lose all my run configurations. When I tried recreating one, it says the file exists. However, there are no run configurations present.
Where are the run configs stored?
The normal location for launches is in the workspace in the
.metadata/.plugins/org.eclipse.debug.core/.launches
folder.
Each launch configuration is in a separate xxx.launch file which is a xml file.
You can also Export and Import launch configurations.
These configrations are located in .metadata/.plugins/org.eclipse.debug.core/.launches, and they are *.launch files.
Note that each workspace has its own .metadata folder.
#greg-449's answer tells you where they are stored, but you might be running into a situation where the launch configs for the renamed project are just being filtered/hidden. In the Launch Configurations dialog, there is a toolbar button to control filtering. Check there if deleted/unavailable projects are being filtered; if so try disabling that option and see if your missing configs come back into view.
Related
I have a need to share an eclipse workspace as a zip file. However, when I zip the workspace and then unzip it all of the user configuration is lost including the project that was opened in the workspace, what views are showing, and even a JBoss server that was created.
If I copy and paste the workspace everything works fine.
If I zip and unzip all of the configuration is lost (i.e. when I launch Eclipse and use the unzipped workspace Eclipse opens with all of the default settings including the welcome page).
What could be causing this and how do I get the zip to work?
I know there are other ways to export Eclipse configurations but I do have a specific requirement that this be provided as a zip file.
It looks like the problem was with the file names that started with ".". I re-zipped with WinZip instead of the built-in windows tool and everything is working now. See: blog.robertelder.org/zipping-corrupts-eclipse-workspace
regardless of importing them via file/import or just copy them from an old workspace to a new one (.metadata/.plugins/org.eclipse.debug.core/.launches) they didn't appear in the eclipse run/debug configurations dialog.
(however if i try to import them after i copied them already to that folder, i'm asked to override them - so that directory seems to be the correct one...)
my question is: how do i (re)import elder run/debug configurations to a new eclipse workspace?
update
this doesn't work out form me with versions 1903, 1909 and 1912
Do one of the following:
Export and import the launch configurations:
In the old workspace do File > Export...: Run/Debug > Launch Configurations
In the new workspace do File > Import...: Run/Debug > Launch Configurations
Share launch configurations:
In the old workspace in Run > Run Configurations... in the Common tab of all launch configurations to share select for Save as the option Shared file
Copy the <name>.launch file into a project of the new workspace
Please be aware that the files in .metadata are not intended to be edited or deleted.
thx #howlger for the approach - it was my fault and a silly mistake.
(i put this in here for the next luser like me XD)
the problem was, that the ones (the configs) I've missed did't show up, because the projects for this configs were not open in my new workspace. thats all.
when opening them, the configs will be listed in the overview.
When I launch Eclipse it starts with one of the workspaces I created and selected "don't ask again" (standardly, Eclipse asks about which workspace to start with during the startup).
So it must store somewhere which workspace to use. Where does it store this piece of information?
In
$HOME/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/.settings
there is a file
org.eclipse.ui.ide.prefs
where it is stored.
With Eclipse Juno, I can see this information in:
eclipse\configuration\.settings file.
I guess you are looking for RECENT_WORKSPACES and SHOW_WORKSPACE_SELECTION_DIALOG vars.
The settings have changed since this question was posted, as newer versions of Eclipse have been released.
With Eclipse Luna, navigate to $ECLIPSE_HOME/eclipse/configuration/.settings and the file org.eclipse.ui.ide.prefs contains settings like this (Windows file configuration shown):
MAX_RECENT_WORKSPACES=5
RECENT_WORKSPACES=C\:\\src\\eclipse-workspaces\\luna\\MyApp\nC\:\\src\\eclipse-workspaces\\luna\\MyOtherApp
RECENT_WORKSPACES_PROTOCOL=3
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
Each entry in RECENT_WORKSPACES appears to be delimited by \n with no spaces. Whenever I manually shuffle my workspaces around (which is rare, but it happens), I've had great success hand-editing this file, saving it, and having the new paths show up just fine in the Workspace Lancher/Select a Workspace dialog.
You have eclipse configuration files in "eclipse_home"/configuration and the one you may looking for is in settings directory : org.eclipse.ui.ide.prefs
I was facing an issue with Spring Tool Suite 4. The workspace used to give an error and I wasn't able to select other workspace also. With the help of some answers already given, I could locate the configuration in $ECLIPSE_HOME\sts-4.7.1.RELEASE\configuration.settings\org.eclipse.epp.mpc.ui.prefs
I removed RECENT_WORKSPACES property (after you try to restart, it adds default entry again) and changed
SHOW_WORKSPACE_SELECTION_DIALOG=true
STS started showing workspace selection dialog again.
If Eclipse has been installed with ubuntu-make, the file location is ~/.local/share/umake/ide/eclipse-jee/configuration/.settings/org.eclipse.ui.ide.prefs.
I'm creating a debug configuration for a new project. When I create it with Save as option set to Local file everything works fine.
But since I want to share the configuration via SVN I need to keep it as a file under the project directory so I change Save as to Shared file (with the default directory at project root). The configuration file appears on the hard drive as expected and debug works OK but after I restart Eclipse there is no debug configuration in the project and when I try to debug I get a message Launch configuration trunk CODS-MR at file:/home/saguna/workspace/trunk/MR.launch does not exist. although the file itself present and appears to have valid contents.
What seems to be the problem?
Thanks.
What do I have to do to copy a complete workspace from one computer to another and be simply able to continue working on it on the other computer?
In general, a filesystem copy should be sufficient. If you run into problems with your projects, try removing the project from the workspace (without deleting the files) and then re-add the project, which will rebuild the metadata.
Make sure you shut down eclipse before you copy the workspace, and that the target computer has the same (or higher) eclipse version, including the same plugins.
Check that your workspace actually contains all the projects - when creating a project, it's possible to have its files situated outside the workspace.
If your projects use any external libraries installed on the system, install these on the other system in the same place (or adjust the paths).
Then, there should be no problem.
You shouldn't have any issues with a straight filesystem copy as long as your eclipse versions match up.
If they don't, the project metadata may not load correctly
You need to copy the whole folder which you select as your workspace at startup (or you once selected). All settings are included in there (even the opened files).
I use rsync for this. Works great.