Serializing CDT Project settings has encountered a

五迷三道 提交于 2019-12-02 01:02:12

After spending a few hours trying to figure out the same error message this morning (along with a bunch of nondescript nullpointerexceptions from Eclipse) I compared the Eclipse project files with previous version and found that Eclipse had added an extra node to my .cproject file, making it three in total. I removed this one, which was the one added by Eclipse and also the last one in the file.

    <cconfiguration id="0.1230402123.1377291156">
        <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug">
            <externalSettings/>
            <extensions>
                <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
            </extensions>
        </storageModule>
        <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
    </cconfiguration>

After removing that and restarting Eclipse everything was working again.

I hope this helps someone. I'm not sure whether this was unique or something that causes issues for others, but clearly the error points towards a CDT problem and therefore comparing the .cproject file to previous versions (or default ones) for changes is worth a shot.

I solve this problem by deleting

.cproject and .project

file and build project again and replace past other project .cproject now it work fine

Someone said him replaced cdt plugin v8.1.2 to v8.1.0 can resolve this problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!