Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Anaflion on July 21, 2019, 08:09:01 am

Title: wxSmith form don`t updated after compiling project... under git
Post by: Anaflion on July 21, 2019, 08:09:01 am
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
 <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!
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: ollydbg 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 (http://forums.codeblocks.org/index.php/board,20.0.html)

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.
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: Anaflion 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.

Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: stahta01 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.
'
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: stahta01 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.
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: Anaflion 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?
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: Anaflion 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!
Title: Re: wxSmith form don`t updated after compiling project... under git
Post by: stahta01 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.