Losing C++11 settings in Neon.2 [message #1752445] |
Mon, 23 January 2017 15:01  |
Eclipse User |
|
|
|
I have an existing c++ project that I have set up in eclipse that uses c++11. In order for the indexer to work correctly I am setting this
C/C++ General > Preprocessor Include Paths,Marcros, etc > CDT GCC Built-in Compiler setting
to
${COMMAND} ${FLAGS} -E -P -v -dD -std=c++11 "${INPUTS}"
Then I rebuild the index, and it works, but whenever there are big changes, like if I update from svn and there are changes that add or remove files and I refresh the project in eclipse, it starts marking all the c++11 stuff as errors and I go and check the setting and it is back to the original (without the -std=c++11 flag).
I have tried setting it globally as well as project specific, either way it always resets. And when I set it to use the global settings by checking the "Use global provider shared between projects", it is always unchecked again when it resets.
If I am doing local, incremental changes then everything is fine, so I have lived with it so far but as more people are starting to contribute to the code it's getting to be more of a headache.
|
|
|
|
Re: Losing C++11 settings in Neon.2 [message #1753328 is a reply to message #1752850] |
Fri, 03 February 2017 17:12   |
Eclipse User |
|
|
|
That file, actually the whole .setting folder, is ignored in svn because I don't want it under version control. The folder and file are both RW so that's not the issue.
When I check the language settings file, it accurately reflects what is set in the GUI. The problem is, when I change the setting by adding the -std=c++11 flag, it gets saved to that file, and the eclipse indexer works, but seemingly randomly, at some later time, the indexer will start marking things as errors and when I check that file and the gui settings, they are both reverted back to the default state.
I have that flag set in the global settings(and it seems to stick there) and I have tried setting the project settings to use the global as well as setting it specifically for the project, either way it always reverts back to project-specific without the flag.
I thought that it mainly only happens when big changes happen all at once on the codebase, like an svn update or applying a patch, but it appears to happen more randomly than that.
|
|
|
|
|
|
|
|
|
|
|
|
Re: Losing C++11 settings in Neon.2 [message #1760984 is a reply to message #1753477] |
Thu, 04 May 2017 18:16  |
Eclipse User |
|
|
|
Nathan Bahr, did you ever figure this out?
I am having a super similar problem, where I need my existing Makefile project to support C++11 but both "Use global provider shared between projects" and -std=c++11 in project-specific Built-in Compiler Settings get reset.
The difference is that I never build in eclipse and the setting gets reset while the indexer is running. I can tell when the settings get reset because the #if __cplusplus >= 201103L blocks change from white to greyed out before my eyes.
This did not happen in Luna and but did in Neon (I first noticed the issue in August 2016) and still occurs in Oxygen (Build id: I20170501-2000).
Did you happen to file a bug report already?
|
|
|
Powered by
FUDForum. Page generated in 0.05132 seconds