Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Exclude from build(Eclipse CDT & GNU ARM Cross not showing correctly directories when I change the "Exclude from build" option.)
Exclude from build [message #1822437] Fri, 06 March 2020 02:47 Go to next message
Eclipse UserFriend
Hello,

I've used Eclipse CDT & GNU ARM Cross compiler since a long time,
I had some problems with the indexer with an old version (Mars.2).
I think that some files have been corrupted on the eclipse directory, probably caused by hard disk failure.
So I decided to upgrade my tools to newest version (2019-12).
I made a fresh install, and I've imported my project from my backup to a new workbench.

I use several compile configurations for my multiple targets.
The compile processs works, and I produce the hex file for each target,
but the view of my project is not showing correctly as you can see on the screenshots joined.

I've tried many others Eclipse versions, all gives the same result.

Even I change the "Exclude from build" option, it doen't update the wiew.
Is it a bug ?
Were are stored the configuration settings ?
How can I revolve the problem ?

Thanks for reply, best regards, Thierry
Re: Exclude from build [message #1822564 is a reply to message #1822437] Mon, 09 March 2020 20:02 Go to previous messageGo to next message
Eclipse UserFriend
"Even I change the "Exclude from build" option, it doen't update the wiew."
When you apply / select "exclude from build " the IDE changes the icon attached to the item you have excluded .
I usually exclude .cpp file under construction to keep complier happy.
I have my cpp h files in subfolders and can exclude whole folder if necessary, then IDE usually moves the subfolder from the active files alphabetical list. .
Not if that matters that much, actually annoying, since when you want to activate it you have to hunt for it at the end of active folders.
After the "excluded " cpp file is activated the folder moves back to the alphabetical list with "normal " icon attached.
That is the only change I see in project tree view.
Re: Exclude from build [message #1822675 is a reply to message #1822437] Wed, 11 March 2020 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Finaly, I found the problem.
It was the setting "Build configuration for the indexer" on "Properties->C/C++ General->Indexer" menu.
It should be set to "Use active build configuration", and the default option was "Use a fixed build configuration".

best regards, Thierry
Re: Exclude from build [message #1822681 is a reply to message #1822564] Wed, 11 March 2020 06:19 Go to previous message
Eclipse UserFriend
Helen Keller wrote on Tue, 10 March 2020 01:02
"Even I change the "Exclude from build" option, it doen't update the wiew."
When you apply / select "exclude from build " the IDE changes the icon attached to the item you have excluded .
I usually exclude .cpp file under construction to keep complier happy.
I have my cpp h files in subfolders and can exclude whole folder if necessary, then IDE usually moves the subfolder from the active files alphabetical list. .
Not if that matters that much, actually annoying, since when you want to activate it you have to hunt for it at the end of active folders.
After the "excluded " cpp file is activated the folder moves back to the alphabetical list with "normal " icon attached.
That is the only change I see in project tree view.


Thank you for your answer, but if the option "Use active build configuration" is not set, the update wiew doen't change!
In my case the option was "Use a fixed build configuration" and the selected configuration was not the right one.

Previous Topic:[CDT] export a symbol to project in refence
Next Topic:Inactive code color changed without user action
Goto Forum:
  


Current Time: Wed Sep 24 05:08:45 EDT 2025

Powered by FUDForum. Page generated in 0.09779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top