Author Topic: The 03 June 2012 build (8024) is out.  (Read 43669 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
The 03 June 2012 build (8024) is out.
« on: June 03, 2012, 07:18:43 pm »
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2812_gcc452-TDM.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc452-TDM.7z

The 03 June 2012 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20120603_rev8024_win32.7z
  - Linux :
   none

Resolved Fixed:

  • compiler: Switched full command line logging to be the default option for all compilers
  • compiler/todo: Fixed some crashes when the compiler and todo plugins get unloaded/loaded/unloaded. See http://forums.codeblocks.org/index.php/topic,16270.0.html and http://forums.codeblocks.org/index.php/topic,16269.0.html
  • applied patch by daniloz to auto-generate ZIPs also for core plugins
  • added "C++ " and H++" extensions to file filters and scipting
  • cbStatusBar updates / refinements, some slipped already in with last commit
  • changed the time the cbEVT_EDITOR_ACTIVATED event is sent, this allows to obtain the associated project and does no harm
  • cppcheck: make use of new file filter for C++
  • compiler messages: avoid assertion in debug build on shutdown (in addition to r7968)
  • allow sorting in find dialog (applied modified patch by Fnar, see here: http://forums.codeblocks.org/index.php/topic,15919.msg107262.html)
  • applied patch by Pecan to fix error in find in files dialog, see here: http://forums.codeblocks.org/index.php/topic,16278.0.html
  • applied patch #3282 by alpha0010 to fix auto-indent with CR line endings
  • applied patch #3281 by ziss_dm for a slight correction for the EditorColourSet::GetLanguageForFile to allow filemasks
  • fix calculation of relativeToCommonTopLevelPath in cbproject.cpp; fixes issue described here: http://forums.codeblocks.org/index.php/topic,16322.msg110516.html#msg110516
  • build-fix: remove remaining initialisation of no longer existant progressbar-variable
  • help-plugin (linux): make it compilable from separate build-folders, if no development files for bzip2 or zlib are installed
  • CC: Fix a bug when parsing some kind of buffer like "const ALib::CommandLine & cmd", the tailing space should be preserved in m_Str. See more details on http://forums.codeblocks.org/index.php/topic,16361.msg110868.html#msg110868
  • pumped ASTYLE plugin to astyle v2.03, see here: http://forums.codeblocks.org/index.php/topic,15745.msg108900.html
  • EditorTweaks plugin: add option to configure maximum of store aligner items
  • applied patch by daniloz to fix bug described here: http://forums.codeblocks.org/index.php/topic,14517.0.html
  • CppCheck : save xml file so it can be processed by CI systems like jenkins
  • applied (modified) patch 2748 (thanks raybert) : active project no longer stored in workspace but in dedicated layout file for the workspace, and preferred target concept
  • debugger: Modified wxPropGrid to call OnExpand/OnCollapse when the left/right arrow keys are used.
    This fixes a bug in the Watches window not calling OnExpand/OnCollapse for the watch, thus breaking the gdb/mi debugger
  • debugger: Made it possible to add data breakpoint from the watches window (right click on a watch -> add data breakpoint)
  • debugger: Adding a watch from the context menu must show the Watches window

Regressions/Confirmed/Annoying/Common bugs:


    « Last Edit: June 17, 2012, 09:10:46 pm by killerbot »

    zabzonk

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #1 on: June 03, 2012, 08:53:36 pm »
    Thanks guys.

    Quote
    full command line logging to be the default option

    This freaked me out a bit when I first built a project with this nightly, but I think it's probably a good idea. But maybe that means that the logging window should be horizontally scrollable, so that long command lines (which mostly you don't care about) don't wrap and thus obscure the build progress?

    stefanos_

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #2 on: June 03, 2012, 10:00:00 pm »
    Compiled it myself and seems that this old issue reappeared but with gdb; it does not respect any breakpoint at all:

    http://forums.codeblocks.org/index.php?topic=11301.45

    I get this message:

    Code: [Select]
    Debugger name and version: GNU gdb (GDB) 7.4.1-debian
    Error in re-setting breakpoint 2: Function "/home/stefanos/Projects/ANSI C++/GeneralCode/main.cpp:26" not defined.
    [Inferior 1 (process 326) exited normally]
    Debugger finished with status 0

    I use
    Code: [Select]
    gcc 4.6.3 Linux/unicode - 32 bit
    Debian wheezy

    Partially off the subject: I visited this link Code::Blocks Bug Page and I tried to sort the bug list based on date from oldest to newest open ticket. For some reason it does not work. Can anyone fix this if plausible please?
    « Last Edit: June 03, 2012, 10:11:37 pm by stefanos_ »

    Offline ollydbg

    • Developer
    • Lives here!
    • *****
    • Posts: 5247
    • OpenCV and Robotics
      • Chinese OpenCV forum moderator
    Re: The 03 June 2012 build (8024) is out.
    « Reply #3 on: June 04, 2012, 02:04:07 am »
    Compiled it myself and seems that this old issue reappeared but with gdb; it does not respect any breakpoint at all:

    http://forums.codeblocks.org/index.php?topic=11301.45

    I get this message:

    Code: [Select]
    Debugger name and version: GNU gdb (GDB) 7.4.1-debian
    Error in re-setting breakpoint 2: Function "/home/stefanos/Projects/ANSI C++/GeneralCode/main.cpp:26" not defined.
    [Inferior 1 (process 326) exited normally]
    Debugger finished with status 0
    Can you try the same gdb session under command line?
    I'm not sure this but is related to that one.
    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 oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 12123
      • Travis build status
    Re: The 03 June 2012 build (8024) is out.
    « Reply #4 on: June 04, 2012, 09:53:45 am »
    Compiled it myself and seems that this old issue reappeared but with gdb; it does not respect any breakpoint at all:
    This is your problem: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces
    (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 daniloz

    • Regular
    • ***
    • Posts: 268
    Re: The 03 June 2012 build (8024) is out.
    « Reply #5 on: June 04, 2012, 09:57:37 am »
    This freaked me out a bit when I first built a project with this nightly, but I think it's probably a good idea. But maybe that means that the logging window should be horizontally scrollable, so that long command lines (which mostly you don't care about) don't wrap and thus obscure the build progress?

    +1 to the horizontally scrollable logging window

    Offline Freem

    • Almost regular
    • **
    • Posts: 219
    Re: The 03 June 2012 build (8024) is out.
    « Reply #6 on: June 05, 2012, 11:06:13 pm »
    This idea could also be useful for errors and warning... Or maybe I am the only one with extremely verbose template errors? :P

    About enhancements, I also think that data breakpoints will be really useful. Thanks a lot!

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 12123
      • Travis build status
    Re: The 03 June 2012 build (8024) is out.
    « Reply #7 on: June 05, 2012, 11:43:35 pm »
    About enhancements, I also think that data breakpoints will be really useful. Thanks a lot!
    There are data breakpoints in C::B for quite long time. I've just added a little usability enhancement :)
    (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 Freem

    • Almost regular
    • **
    • Posts: 219
    Re: The 03 June 2012 build (8024) is out.
    « Reply #8 on: June 06, 2012, 10:48:52 am »
    I did not know that, shame on me

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7265
      • Jens' unofficial debian-repository for the Code::Blocks - IDE
    Re: The 03 June 2012 build (8024) is out.
    « Reply #9 on: June 06, 2012, 09:45:51 pm »
    As usual:
    Debian packages (binaries and sources) for 32-bit and 64-bit systems can be found in my debian-repo.

    Important note:
    I changed the layout of my repo
    , to fix the issue described in this thread:
    http://forums.codeblocks.org/index.php/topic,16357.msg110806.html#msg110806

    Please read the instructions on my website, and fix your entries in /etc/apt/sources.list[.d] accordingly.

    Offline Halan

    • Multiple posting newcomer
    • *
    • Posts: 43
    Re: The 03 June 2012 build (8024) is out.
    « Reply #10 on: June 09, 2012, 11:27:42 am »
    foreach-loops indent fine now when using the AStyle-Plugin. Thank you! :)

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7265
      • Jens' unofficial debian-repository for the Code::Blocks - IDE
    Re: The 03 June 2012 build (8024) is out.
    « Reply #11 on: June 10, 2012, 10:49:10 am »
    I just started a RPM-repo on my server: http://rpm.jenslody.de .
    At the moment only Fedora 16 and 15 are available, more will follow (at least Fedora 15 and CentOS/RedHat 5 and 6).

    See my rpm-site for instructions.

    EDIT:
    see above

    stefanos_

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #12 on: June 11, 2012, 07:26:19 am »
    Nice work jens :D can I ask you a favor mate? I have compiled wxWidgets 2.9.x trunk myself for both static and dynamic, but I am not sure if I have done it properly. It seems I have missed the opengl support let alone other options which are definitely mandatory for sample programs.

    Would it be easy for you to send me your compilation settings to do it myself in a PM? I know that you are already offering it as .deb packages for both Debian and Ubuntu, but I would like to see where I was partially incomplete with my commands.

    Cheers

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7265
      • Jens' unofficial debian-repository for the Code::Blocks - IDE
    Re: The 03 June 2012 build (8024) is out.
    « Reply #13 on: June 11, 2012, 09:37:31 am »
    Nice work jens :D can I ask you a favor mate? I have compiled wxWidgets 2.9.x trunk myself for both static and dynamic, but I am not sure if I have done it properly. It seems I have missed the opengl support let alone other options which are definitely mandatory for sample programs.

    Would it be easy for you to send me your compilation settings to do it myself in a PM? I know that you are already offering it as .deb packages for both Debian and Ubuntu, but I would like to see where I was partially incomplete with my commands.

    Cheers

    I have used
    Code: [Select]
    ../configure --with-zlib=sys --disable-reserved_virtual --enable-debug --enable-debug_info --enable-debug_gdb --enable-unicode --with-gtk --enable-mediactrl --enable-sound --with-sdl --enable-display --enable-geometry --enable-graphics_ctx --with-libjpeg=sys --with-libpng=sys --with-libtiff=sys --with-opengl --with-libjpeg=builtin --with-libtiff=builtinThe ".." is there,because I use it from a seperate build-folder to keep the sources clean.
    You get a "wx-config" in the build-folder after running "make" .
    If you use it directly, there is no need to run "make install" and litter your system.

    Offline carra

    • Multiple posting newcomer
    • *
    • Posts: 114
    Re: The 03 June 2012 build (8024) is out.
    « Reply #14 on: June 11, 2012, 11:04:04 am »
    The download link still reads "The 17 May 2012 build is out." ;)

    Having tested the new nightly, I found this:

    - CallMenu() script command still fails for me (as reported in earlier nightlies)
    - Aligner is still not present as a menu option, only context menu
    - Reportedly there is now an option to set a new maximum for Aligner entries, but I cannot find it anywhere. I still get 4 entries and the rest are cropped (same as before).

    Other than that, working fine.

    Offline MortenMacFly

    • Administrator
    • Lives here!
    • *****
    • Posts: 9508
    Re: The 03 June 2012 build (8024) is out.
    « Reply #15 on: June 11, 2012, 11:47:17 am »
    - Reportedly there is now an option to set a new maximum for Aligner entries, but I cannot find it anywhere. I still get 4 entries and the rest are cropped (same as before).
    See settings -> Editor -> Editor Tweaks Settings
    Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
    C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
    C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

    Offline carra

    • Multiple posting newcomer
    • *
    • Posts: 114
    Re: The 03 June 2012 build (8024) is out.
    « Reply #16 on: June 11, 2012, 12:15:44 pm »
    Oh man, I was looking for a submenu and you guys made a whole new settings tab for it! Found it, and it works as intended. Thanks!

    Offline MortenMacFly

    • Administrator
    • Lives here!
    • *****
    • Posts: 9508
    Re: The 03 June 2012 build (8024) is out.
    « Reply #17 on: June 11, 2012, 03:00:49 pm »
    Oh man, I was looking for a submenu and you guys made a whole new settings tab for it!
    Yes, because as EditorTweaks has many functions, there may be more options more to come...
    Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
    C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
    C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

    Offline xunxun

    • Almost regular
    • **
    • Posts: 187
    Re: The 03 June 2012 build (8024) is out.
    « Reply #18 on: June 13, 2012, 06:16:17 pm »
    Found a CC plugin bug.

    When loading a new project, CC plugin will decode the variable's declaration and show one time, but if you want to show again, it will show many times.

    The demo project is in the attachment.
    « Last Edit: June 13, 2012, 06:21:26 pm by xunxun »
    Regards,
    xunxun

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 12123
      • Travis build status
    Re: The 03 June 2012 build (8024) is out.
    « Reply #19 on: June 13, 2012, 06:59:35 pm »
    I've seen this, too, but I was not sure how to reproduce it.
    (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 MortenMacFly

    • Administrator
    • Lives here!
    • *****
    • Posts: 9508
    Re: The 03 June 2012 build (8024) is out.
    « Reply #20 on: June 13, 2012, 07:34:37 pm »
    I've seen this, too, but I was not sure how to reproduce it.
    I have a patch for this already in my local copy... just didn't commit so far. Don't worry about this.
    Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
    C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
    C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 12123
      • Travis build status
    Re: The 03 June 2012 build (8024) is out.
    « Reply #21 on: June 13, 2012, 08:03:57 pm »
    Then go on and commit it  ::)
    (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 ollydbg

    • Developer
    • Lives here!
    • *****
    • Posts: 5247
    • OpenCV and Robotics
      • Chinese OpenCV forum moderator
    Re: The 03 June 2012 build (8024) is out.
    « Reply #22 on: June 14, 2012, 05:24:50 am »
    Good, I review the commit, I see this is the quite good fix:
    Code: [Select]
    @@ -1807,7 +1815,7 @@ size_t NativeParser::MarkItemsByAI(ccSearchData* searchData, TokenIdxSet& result
     
         CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokensTreeMutex)
     
    -    RemoveLastFunctionChildren(tree, m_LastFuncTokenIdx);
    +    RemoveLastFunctionChildren(m_Parser->GetTokensTree(), m_LastFuncTokenIdx);
     
         // find "using namespace" directives in the file
         TokenIdxSet search_scope;

    The old way "tree" is a temporary Tokenstree, and already cleared before. What we need to clean is the normal Tokenstree.
    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 MortenMacFly

    • Administrator
    • Lives here!
    • *****
    • Posts: 9508
    Re: The 03 June 2012 build (8024) is out.
    « Reply #23 on: June 14, 2012, 07:03:34 am »
    The old way "tree" is a temporary Tokenstree, and already cleared before. What we need to clean is the normal Tokenstree.
    Yes, I think this was my fault in the end... ::) :-[ :-[ :-[
    Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
    C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
    C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

    Offline xunxun

    • Almost regular
    • **
    • Posts: 187
    Re: The 03 June 2012 build (8024) is out.
    « Reply #24 on: June 14, 2012, 12:14:44 pm »
    I've seen this, too, but I was not sure how to reproduce it.
    I have a patch for this already in my local copy... just didn't commit so far. Don't worry about this.

    Thanks @MortenMacFly.
     :)
    Regards,
    xunxun

    Offline carra

    • Multiple posting newcomer
    • *
    • Posts: 114
    Re: The 03 June 2012 build (8024) is out.
    « Reply #25 on: June 14, 2012, 02:42:31 pm »
    Hi again, I have had some unexpected behavior with relative directories under C::B and I wonder if I should consider this a bug in C::B project system??

    * Project base folder: C:\Programacion\KTools\Sources\LogStream
    * Output folder for objects:  ..\..\Objects  (i.e.: "C:\Programacion\KTools\Objects")
    * 3 Files in project:
        - ..\..\Headers\General.hpp       (i.e.: "C:\Programacion\KTools\Headers\General.hpp")
        - ..\..\Headers\LogStream.hpp   (i.e.: "C:\Programacion\KTools\Headers\LogStream.hpp")
        - LogStream.cpp                     (i.e.: "C:\Programacion\KTools\Sources\LogStream\LogStream.cpp")

    No matter what I try, instead of the intended Objects directory, my objwect files end up in the following directory:

    "C:\Programacion\KTools\Objects\Sources\LogStream"

    Seeing the resulting command line, it seems as if C::B is doing the following folder concatenation for some reason:

    (1) In the Project Explorer, the source file appears listed as "Sources\LogStream\LogStream.cpp" (why all that route? it's in the project's base directory!!)

    (2) What seems to be happening is:
    "C:\Programacion\KTools\Objects" + "Sources\LogStream\LogStream.cpp" ==> "C:\Programacion\KTools\Objects\Sources\LogStream\LogStream.o"

    Offline carra

    • Multiple posting newcomer
    • *
    • Posts: 114
    Re: The 03 June 2012 build (8024) is out.
    « Reply #26 on: June 15, 2012, 10:51:24 am »
    OK, since the project file is very simple I thought I might post it here.
    For simplicity, I have parameterized folders with an env var KTOOLS_FOLDER which in my case is: C:\Programacion\KTools

    Code: [Select]
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
    <Option title="LogStream" />
    <Option pch_mode="2" />
    <Option compiler="gcc" />
    <Build>
    <Target title="Release">
    <Option output="$(KTOOLS_FOLDER)\Libraries\LogStream" prefix_auto="1" extension_auto="1" />
    <Option working_dir="" />
    <Option object_output="$(KTOOLS_FOLDER)\Objects" />
    <Option type="2" />
    <Option compiler="gcc" />
    <Option createDefFile="1" />
    <Compiler>
    <Add option="-Wall" />
    <Add option="-O2" />
    </Compiler>
    <Linker>
    <Add option="-s" />
    </Linker>
    </Target>
    </Build>
    <Unit filename="..\..\Headers\General.hpp" />
    <Unit filename="..\..\Headers\LogStream.hpp" />
    <Unit filename="LogStream.cpp" />
    <Extensions>
    <code_completion />
    <envvars />
    <debugger />
    <lib_finder disable_auto="1" />
    </Extensions>
    </Project>
    </CodeBlocks_project_file>

    If I had to guess, I'd say that C::B is trying to set a "common base folder" for all the project files. As if it didn't properly support routes with "\.." in them.

    Offline saidus

    • Multiple posting newcomer
    • *
    • Posts: 11
    Re: The 03 June 2012 build (8024) is out.
    « Reply #27 on: June 17, 2012, 12:05:28 pm »
    Hello.
    Is there any ready to download package for windows (codeblocks-setup-10.05.8024.exe) with the current svn release.
    Thank you .

    Offline gd_on

    • Regular
    • ***
    • Posts: 494
    Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

    Offline carra

    • Multiple posting newcomer
    • *
    • Posts: 114
    Re: The 03 June 2012 build (8024) is out.
    « Reply #29 on: June 17, 2012, 05:26:32 pm »
    It's curious... the problem I reported earlier with relative paths seems not to be present in nightly 7925. The very same project I posted produces the object in the correct folder. A regression?

    stefanos_

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #30 on: June 19, 2012, 11:32:35 am »
    I have used
    Code: [Select]
    ../configure --with-zlib=sys --disable-reserved_virtual \
    --enable-debug --enable-debug_info --enable-debug_gdb \
    --enable-unicode --with-gtk --enable-mediactrl --enable-sound \
    --with-sdl --enable-display --enable-geometry \
    --enable-graphics_ctx --with-libjpeg=sys --with-libpng=sys \
    --with-libtiff=sys --with-opengl --with-libjpeg=builtin \
    --with-libtiff=builtin

    The ".." is there,because I use it from a seperate build-folder to keep the sources clean.
    You get a "wx-config" in the build-folder after running "make" .
    If you use it directly, there is no need to run "make install" and litter your system.

    Hey jens, sorry for the late reply and thank you for sharing your setup with me. I just wanted to ask; is there a certain reason you added twice these certain options?
    Code: [Select]
    --with-libjpeg=sys --with-libjpeg=builtin --with-libtiff=sys --with-libtiff=builtinOn my system I had to use builtin to make it work for all "sys" configuration options.

    Also, will it work for both static and dynamic, monolithic and non-monolithic?

    thanks for once again.

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7265
      • Jens' unofficial debian-repository for the Code::Blocks - IDE
    Re: The 03 June 2012 build (8024) is out.
    « Reply #31 on: June 19, 2012, 11:50:49 am »
    Should only be builtin, sorry.
    I only used it for the default, which is shared and non-monolithic.

    stefanos_

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #32 on: June 19, 2012, 12:19:38 pm »
    OK thank you very much :)

    coffeer

    • Guest
    Re: The 03 June 2012 build (8024) is out.
    « Reply #33 on: June 20, 2012, 03:12:07 am »
    thank you very much