Bug 282136 - All C++ launch configurations lost when moving to Galileo
Summary: All C++ launch configurations lost when moving to Galileo
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 07:26 EDT by Benjamin Bihler CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Bihler CLA 2009-07-01 07:26:55 EDT
Build ID: 20090619-0625

Steps To Reproduce:
1. Open Ganymede (Build ID M20090211-1700)
2. Create a C++ launch configuration by selecting "Run as" -> "Local C/C++ Application" from the context menu of an executable in the project explorer.
3. Open Galileo with the same workspace. The launch configuration does not show.


More information:
The directory /.metadata/.plugins/org.eclipse.debug.core/.launches contains the launch configurations, but I don't see them in eclipse, neither in the dropdown menu nor in the "Run configurations" dialog.
Comment 1 David Pickens CLA 2009-08-05 20:32:28 EDT
This is a serious problem. I had dozens of CDT launch configurations that were lost when moving to CDT 6.0 under Galileo.

The problem is caused by a change in the manifest string that denotes a C/C++ application type in the Launch Configuration file (*.launch). It was formerly "org.eclipse.cdt.launch.localCLaunch" but is now "org.eclipse.cdt.launch.applicationLaunchType".

CDT 6.0 does not recognize the .launch files that use the older configuration type.
Comment 2 Don Porges CLA 2010-02-17 15:52:55 EST
Workaround, for what it's worth:

-- change the "localCLaunch to "applicationLaunchType""
-- before the closing 

</launchConfiguration>

add

<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
<mapEntry key="[debug]" value="org.eclipse.cdt.cdi.launch.localCLaunch"/>
</mapAttribute>