Code::Blocks

User forums => Nightly builds => Topic started by: killerbot on June 03, 2012, 07:18:43 pm

Title: The 03 June 2012 build (8024) is out.
Post by: killerbot 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 (http://forums.codeblocks.org/index.php/topic,3232.0.html).

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:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 03 June 2012 build (8024) is out.
Post by: zabzonk 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?
Title: Re: The 03 June 2012 build (8024) is out.
Post by: stefanos_ 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 (http://developer.berlios.de/bugs/?group_id=5358&set=custom&_assigned_to=0&_status=1&_category=100&_bug_group=1000&order=date) 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?
Title: Re: The 03 June 2012 build (8024) is out.
Post by: ollydbg 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 (http://forums.codeblocks.org/index.php/topic,11301.msg77182.html#msg77182).
Title: Re: The 03 June 2012 build (8024) is out.
Post by: oBFusCATed 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
Title: Re: The 03 June 2012 build (8024) is out.
Post by: daniloz 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
Title: Re: The 03 June 2012 build (8024) is out.
Post by: Freem 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!
Title: Re: The 03 June 2012 build (8024) is out.
Post by: oBFusCATed 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 :)
Title: Re: The 03 June 2012 build (8024) is out.
Post by: Freem on June 06, 2012, 10:48:52 am
I did not know that, shame on me
Title: Re: The 03 June 2012 build (8024) is out.
Post by: jens 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 (http://apt.jenslody.de/).

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 (http://forums.codeblocks.org/index.php/topic,16357.msg110806.html#msg110806)

Please read the instructions on my website (http://apt.jenslody.de/), and fix your entries in /etc/apt/sources.list[.d] accordingly.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: Halan on June 09, 2012, 11:27:42 am
foreach-loops indent fine now when using the AStyle-Plugin. Thank you! :)
Title: Re: The 03 June 2012 build (8024) is out.
Post by: jens on June 10, 2012, 10:49:10 am
I just started a RPM-repo on my server: http://rpm.jenslody.de (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 (http://rpm.jenslody.de) for instructions.

EDIT:
see above
Title: Re: The 03 June 2012 build (8024) is out.
Post by: stefanos_ 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
Title: Re: The 03 June 2012 build (8024) is out.
Post by: jens 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: carra 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: MortenMacFly 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
Title: Re: The 03 June 2012 build (8024) is out.
Post by: carra 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!
Title: Re: The 03 June 2012 build (8024) is out.
Post by: MortenMacFly 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...
Title: Re: The 03 June 2012 build (8024) is out.
Post by: xunxun 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: oBFusCATed on June 13, 2012, 06:59:35 pm
I've seen this, too, but I was not sure how to reproduce it.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: MortenMacFly 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: oBFusCATed on June 13, 2012, 08:03:57 pm
Then go on and commit it  ::)
Title: Re: The 03 June 2012 build (8024) is out.
Post by: ollydbg 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: MortenMacFly 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... ::) :-[ :-[ :-[
Title: Re: The 03 June 2012 build (8024) is out.
Post by: xunxun 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.
 :)
Title: Re: The 03 June 2012 build (8024) is out.
Post by: carra 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"
Title: Re: The 03 June 2012 build (8024) is out.
Post by: carra 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: saidus 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 .
Title: Re: The 03 June 2012 build (8024) is out.
Post by: gd_on on June 17, 2012, 12:20:31 pm
may-be that one : http://forums.codeblocks.org/index.php/topic,13234.msg88948.html#msg88948

gd_on
Title: Re: The 03 June 2012 build (8024) is out.
Post by: carra 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?
Title: Re: The 03 June 2012 build (8024) is out.
Post by: stefanos_ 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: jens 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.
Title: Re: The 03 June 2012 build (8024) is out.
Post by: stefanos_ on June 19, 2012, 12:19:38 pm
OK thank you very much :)
Title: Re: The 03 June 2012 build (8024) is out.
Post by: coffeer on June 20, 2012, 03:12:07 am
thank you very much