User forums > Help

Compiler Flags not saved (only after restart)

(1/3) > >>

kontrastblick:
I am running Code::Blocks svn build 8982 (Apr 12th 2013) on Windows 7 64bit. The compiler I use is gcc 4.7.3 (targeting m68k-elf or "coldfire").
My Project compiles fine with a custom Makefile, but I want to move to the Code::Blocks build system.


Currently I'm trying to add custom compiler flags, but it seems as they are not being saved.

Reproduction (2 minutes):
1. Open a random project (or create a new one).
2. Go to "Project"->"Build Options", then to "Compiler Options"->"Compiler Flags".
3. Add a random flag (right mouse button into the list view, then choose "new flag".
Name: foo
Compiler Flag: -s
Category: General options
=>Then click "OK"
The new compiler flag "foo [-s]" now shows up in the list.
4. Close the "Project build options" Dialog by clicking "OK".
5. Reopen the dialog "Project"->"Build Options".
6. The newly added compiler flag does NOT show up in the list now (I do expect it to show up here).

Workaround:
1. After adding the new compiler flag as described above, close the Code::Blocks IDE (File->Quit).
2. When asked "The perspective "Code::Blocks default" has been changed. Do you want to save it?" click YES.
3. Start Code::Blocks again
4. Re-open the project used before.
5. Open the dialog "Project"->"Build Options".
6. The newly added flag now shows up in the list.

Restarting Code::Blocks is necessary.
Neither selecting "View->Perspective->Save current" nor "Save Workspace" nor "Save all Projects" fixes the problem.


Questions:
1. Can you reproduce the problem described?
2. Is this a bug or expected behaviour?

Christoph

oBFusCATed:

--- Quote from: kontrastblick on June 12, 2013, 02:00:41 pm ---Restarting Code::Blocks is necessary.
Neither selecting "View->Perspective->Save current" nor "Save Workspace" nor "Save all Projects" fixes the problem.

--- End quote ---
These are not related to the any options, but only to the positions and visibilities of various dock-able windows in C::B.

Alpha:

--- Quote from: kontrastblick on June 12, 2013, 02:00:41 pm ---1. Can you reproduce the problem described?

--- End quote ---
Yes.

--- Quote from: kontrastblick on June 12, 2013, 02:00:41 pm ---2. Is this a bug or expected behaviour?

--- End quote ---
Bug.

I am looking into the cause.

Jan van den Borst:
I think this issue still is still present. Will it be fixed?

oBFusCATed:
Someday probably. :)
Alpha would you have time to fix it? If not I can try to find some time.

Navigation

[0] Message Index

[#] Next page

Go to full version