Author Topic: wxSmith form don`t updated after compiling project... under git  (Read 708 times)

Offline Anaflion

  • Single posting newcomer
  • *
  • Posts: 5
Hello everyone!

In windows 10 in Code::Blocks v16.01, wxWidgets-3.0.2, wxSmith does not update the form after compilation ... And I have installed a Git.  And I newbee with Git.  :'(  Can it one block some file? 

I have updated wxSmith form with moving, adding and editing component properties, have save the project files and
after rebuilding project and running my app I have see the old version of my apps GUI.   

Please help me understand which files are locked or which project paths is wrongs.

Project path D:\DEV\Gazomer\

The extension section in *.cbp:
   
Code: [Select]
<Extensions>
                    <code_completion />
                    <envvars />
                    <debugger />
                     <wxsmith version="1">
                            <gui name="wxWidgets" src="src/GazomerApp.cpp" main="GazomerFrame" init_handlers="necessary" language="CPP" />
                                 <resources>                                         
<wxFrame wxs="wxsmith/Gazomerframe.wxs" src="src/GazomerMain.cpp" hdr="src/GazomerMain.h" fwddecl="0" i18n="1" name="GazomerFrame" language="CPP" />
                                </resources>
                      </wxsmith>
            </Extensions>
-----------------------------------------------------------------------------------------
Updated:

wxSmith not parsed form modification (Gazomerframe.wxs file successful updated) to
source and header of window  (GazomerMain.cpp and GazomerMain.h)


Thanks in advance!
« Last Edit: July 21, 2019, 02:55:14 pm by Anaflion »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxSmith form don`t updated after compiling project... under git
« Reply #1 on: July 21, 2019, 08:55:04 am »
In windows 10 in Code::Blocks v16.01, ...
This is really a very old C::B version, I would suggest you to use a more recent nighty build version, see here:Nightly builds

Quote
The extension section in *.cbr:
cbp file? or cbr file?

Did you press the "save everything" menu item? which saves all the source files and project files.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Anaflion

  • Single posting newcomer
  • *
  • Posts: 5
Re: wxSmith form don`t updated after compiling project... under git
« Reply #2 on: July 21, 2019, 01:00:32 pm »
cbp file? or cbr file?

Did you press the "save everything" menu item? which saves all the source files and project files.
*.cbp:

Thank you,  ollydbg!  I corrected a typo: * .cbp should have been written.   

I click "control + shift + s" and save all files.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: wxSmith form don`t updated after compiling project... under git
« Reply #3 on: July 22, 2019, 05:15:40 am »
Did you delete the special wxSmith comments from the source files?
You are not supposed to delete the special comments or add code between the special comments.

Tim S.
'
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: wxSmith form don`t updated after compiling project... under git
« Reply #4 on: July 22, 2019, 05:21:28 am »
Did you add the object files or exe files to git?
I consider it to be wrong to add object files and exe files to git in nearly all cases.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Anaflion

  • Single posting newcomer
  • *
  • Posts: 5
Re: wxSmith form don`t updated after compiling project... under git
« Reply #5 on: July 22, 2019, 11:48:25 am »
Did you delete the special wxSmith comments from the source files?
You are not supposed to delete the special comments or add code between the special comments.

Tim S.
'

Yes, once I deleted some comments from the implementation file. OMG Was it wxSmith metadata? Now I need to study the wxSmith metadata and restore them, or is there a possibility of their automatic recovery besides Git?

Offline Anaflion

  • Single posting newcomer
  • *
  • Posts: 5
Re: wxSmith form don`t updated after compiling project... under git
« Reply #6 on: July 22, 2019, 11:57:14 am »
Did you add the object files or exe files to git?
I consider it to be wrong to add object files and exe files to git in nearly all cases.

Tim S.

I made a .gitignore file in which I ignore files of these types * .o, * .pdf, * .exe, but I did it after a while - not from the first commit.

Thank a lot, stahta01!
« Last Edit: July 22, 2019, 12:00:01 pm by Anaflion »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: wxSmith form don`t updated after compiling project... under git
« Reply #7 on: July 22, 2019, 08:56:44 pm »
Did you delete the special wxSmith comments from the source files?
You are not supposed to delete the special comments or add code between the special comments.

Tim S.
'

Yes, once I deleted some comments from the implementation file. OMG Was it wxSmith metadata? Now I need to study the wxSmith metadata and restore them, or is there a possibility of their automatic recovery besides Git?

I am guessing they will come back automatically; because the normal compliant is the added code goes away. But, I am not an wxSmith user; so, I might be wrong.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org