Author Topic: inconsistency between wxs and cpp/h files in code::blocks itself  (Read 11550 times)

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
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
« Last Edit: April 12, 2012, 05:15:37 pm by nausea »
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #1 on: April 12, 2012, 05:47:10 pm »
Patches welcome :)
(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!]

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #2 on: April 12, 2012, 06:04:00 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #3 on: April 12, 2012, 06:06:13 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #4 on: April 12, 2012, 06:08:57 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #5 on: April 12, 2012, 06:27:19 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #6 on: April 12, 2012, 06:58:33 pm »
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.
« Last Edit: April 12, 2012, 08:35:41 pm by nausea »
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #7 on: April 13, 2012, 12:58:54 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #8 on: April 13, 2012, 01:13:01 pm »
OK. next try. as attached...

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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: inconsistency between wxs and cpp/h files in code::blocks itself
« Reply #9 on: April 13, 2012, 04:27:55 pm »
hope this one works
Yes, and applied in trunk. Thank you!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ