Community
Participate
Working Groups
Created attachment 202922 [details] Suggested fix. To reproduce: 1. Customize mappings on the "Language Mapping" preference page (i.e. map C++ header to Assembly) 2. Save changes. Reopen preference page to verify that the settings are remembered. 3. Restart the IDE and verify that table on the preference page is empty. This problem is caused by LanguageMappingStore::decodeWorkspaceMappings checking default store first and comparing the value returned with null. Default value of this preference is not null but zero-length string (CCorePreferenceInitializer:49) Suggested fix: Check non-default value first (it will be null if unset)
Good catch. Thanks for the patch.
Patch committed and pushed to master and cdt_8_0. Thanks again!
*** cdt git genie on behalf of Eugene Ostroukhov *** Bug 356982 - CDT forgets language mappings after the restart [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=0fd03f628b500d541ea69545569068b57a05821b
*** cdt git genie on behalf of Eugene Ostroukhov *** Bug 356982 - CDT forgets language mappings after the restart [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=7c0fb4da1f1da06353cfa9512fbef19334a4ccde
*** Bug 364616 has been marked as a duplicate of this bug. ***
Verified in 8.0.2 RC1.