Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367061

Summary: Language mappings as created in a Helios project are ignored when imported in Indigo (backward compatibility issue)
Product: [Tools] CDT Reporter: Richard Horbach <richard.horbach>
Component: cdt-coreAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, richard.horbach
Version: 8.0   
Target Milestone: 8.0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Richard Horbach CLA 2011-12-19 05:55:34 EST
Build Identifier: M20110909-1335

When importing a project that was created with a previous version of CDT, the language mappings set are being ignored. Apparantly the problem is related to where the mappings are being stored in the cproject file.

In Helios the language mappings were stored within a 'cconfiguration' element.

In Indigo  the language mappings are stored on global scope, outside a 'cconfiguration' element.

Reproducible: Always

Steps to Reproduce:
1. Create a cygwin project with Helios.
2. Add a language mapping: Properties > C/C++ General > Language Mappings > Add: (All) - C Csource File - GNU C
3. Import the project with Indigo: File > Import > Existing Projects into Workspace
4. Take a look at the language mapings: Properties > C/C++ General > Language Mappings. No language mappings are displayed/discovered.
Comment 1 Anton Leherbauer CLA 2011-12-19 10:21:59 EST
Fixed backwards compatibility in cdt_8_0 and master.
Comment 2 CDT Genie CLA 2011-12-19 11:23:02 EST
*** cdt git genie on behalf of Anton Leherbauer ***

    Bug 367061 - Language mappings as created in a Helios project are ignored when imported in Indigo (backward compatibility issue)

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=b68056468484ca6a88d1d6a0969f0a2907004746
Comment 3 CDT Genie CLA 2011-12-19 11:23:03 EST
*** cdt git genie on behalf of Anton Leherbauer ***

    Bug 367061 - Language mappings as created in a Helios project are ignored when imported in Indigo (backward compatibility issue)

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=79f305532d496f0e69b557bd177d2716aabd73be