News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

inconsistency between wxs and cpp/h files in code::blocks itself

Started by frithjofh, April 12, 2012, 05:13:19 PM

Previous topic - Next topic

frithjofh

Hi everybody,

I just found that somebody has changed code in wxssettings.h and .cpp without going through wxSmith. As a result the files do not concur anymore. Opening the wxs file in wxSmith changes the source files and results in a non compiling scenario. In this particular case it is a checkbox someone added to allow for unique IDs only.

I found half a dozen of wxs files out of sync with the respective source files.

Regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

frithjofh

woa, I figure I do a patch now and tomorrow somebody does some changes again manually. So my question is: what is the policy to follow here? Is it worth while or is wxSmith dead for use inside code::blocks?

regards
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

MortenMacFly

Quote from: nausea on April 12, 2012, 06:04:00 PM
or is wxSmith dead for use inside code::blocks?
Of course not. What's designed with wxSmith (inside C::B) has to be modified using wxSmith. If this got out of sync its a bug, maybe due to the merge of the wxSmith branch.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

frithjofh

OK. I'll make some patches then...

regards

PS: should I post the patches here as attachment, once I'm done?
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

MortenMacFly

Quote from: nausea on April 12, 2012, 06:08:57 PM
PS: should I post the patches here as attachment, once I'm done?
Yes, if you get no response, put it in the patch tracker and post a link.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

frithjofh

patch for according files attached. These were all I found to be faulty. The others are checked to be alright, that is, they compile alright. Checked only contrib workspace.

And: the ConfigPanel in the DoxyBlocks plugin has a minor quirk: everytime the wxs file is opened it makes changes to the sources that conflict with cbStyleTextCtrl. wxSmith seems to not be able to figure out the correct number of parameters for the widget, see comment on line 42 in ConfigPanel.wxs

Please tell me if they worked and were alright.
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

MortenMacFly

Quote from: frithjofh on April 12, 2012, 06:58:33 PM
Please tell me if they worked and were alright.
They do not work, what patch format did you choose?

Please do as following:
In your C::B SVN source tree, apply the patch, then type in the root of C::B's SVN folder:
svn diff > my.patch
(...assuming you have the subversion command line tool installed.)

There are many diff format flavours around - we need the one compatible to SVN which is produced that way.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

frithjofh

architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]