Author Topic: The 05 march 2006 build is out.  (Read 25417 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
The 05 march 2006 build is out.
« on: March 05, 2006, 10:37:23 pm »
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml
A link to the unicode windows wxWidget dll for Code::Blocks : http://download.berlios.de/codeblocks/wxmsw26u_gcc_cb.7z
For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://download.berlios.de/codeblocks/mingwm10.7z

For support of ansi builds, a link to the ansi windows wxWidget dll for Code::Blocks : http://download.berlios.de/codeblocks/wxmsw26_gcc_cb.7z

The 05 March 2006 build is out.
  - Windows : http://download.berlios.de/codeblocks/CB_20060305_rev2141_win32.7z
  - Linux : not supported yet


Resolved Fixed:

  • Added EditorHooks for modules to hook on editor events. Currently only
    wxEVT_SCI_CHARADDED is forwarded to hooks
  • Moved everything code-completion related from cbEditor to
    code-completion plugin (thanks to hooks)
  • Added code-completion option to auto-launch code-complete popup when
    typing characters and the word contains more than a user-defined number
    of characters (default 4)
  • Removed SDK events cbEVT_EDITOR_AUTOCOMPLETE, cbEVT_EDITOR_CALLTIP and
    cbEVT_EDITOR_USERLIST_SELECTION
  • Added new SDK event cbEVT_APP_UPDATE_TITLE to notify the main app to
    update its title etc. Currently not handled...
  • Changed Manager::Get() function to omit default value. No functional change
  • Autotools build system updates
  • Removed -DAS_MAX_PORTABILITY from CodeBlocks-unix.cbp (added
    accidentally)
  • More autotools build system updates
  • Prevent crash if compiler errors (or any other log messages) contained '%' (thanks to Boaz for pointing out)

Regressions/Confirmed/Annoying/Common bugs:

  • DDE bug : clicking in windows explorer on a CB registered file throws an error message box
  • toolbar-images-not-changing-state (is a wx problem)
  • there are several issues with Code Completion (is being redesigned : work in progress)


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: The 05 march 2006 build is out.
« Reply #1 on: March 05, 2006, 10:44:10 pm »
probably there will be NO build tomorrow night, since I am once again out of the country (France this time) and I have no idea if I will be able to access the net.
So either tomorrow, but for sure on tuesday ...

Offline skirby

  • Almost regular
  • **
  • Posts: 137
Re: The 05 march 2006 build is out.
« Reply #2 on: March 05, 2006, 11:48:17 pm »
Hello,

I have found some bugs with the Find and Replace dialog box.
Here is the way to reproduce them:

1./ Hang up with Find dialog box

- Open any files and press Ctrl + F to open the dialog box
- Check the option "Whole word", put the "direction" to "Down" and let the field "Text to search for" empty

Press Find and C::B hang up

For information, there is the same problem with Replace dialog box.

2./ Hang up with Replace dialog box (another one)

- Open any files and press Ctrl + R to open the dialog box
- uncheck all options, put the "direction" to "Down", origin to "From cursor" and let the fields "Text to search for" and replace with empty

Press replace. C::B suggest to replace one occurence to the end of file.
Now, press Yes. C::B ask you again if you want to replace this occurence. There is no end

If you press All, C::B hang up.


Thanks and have a nice day.

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: The 05 march 2006 build is out.
« Reply #3 on: March 06, 2006, 12:12:40 am »
Quote
Prevent crash if compiler errors (or any other log messages) contained '%' (thanks to Boaz for pointing out)

It still crashes: Here is the output form DMD.exe

Code
E:\Home\My Documents\CodeBlocks Projects\D>c:\dmd\bin\dmd.exe main.d stud
ent.d -v -g -debug -unittest -od.objs -ofd.exe
parse     main
main.d(22): identifier or integer expected, not )
main.d(23): found '{' when expecting ')'
main.d(26): found '"\x0aName is: %s\x0aAge is:  %d"' when expecting ')'
main.d(26): no identifier for declarator writefln
main.d(26): semicolon expected, not '.'
main.d(26): no identifier for declarator .Name
main.d(26): semicolon expected, not '.'
main.d(26): no identifier for declarator .Age
main.d(26): semicolon expected, not ')'
main.d(26): Declaration expected, not ')'
main.d(28): found '"\x0a\x0aNow press a key to continue!"' when expecting ')'
main.d(28): no identifier for declarator printf
main.d(28): semicolon expected, not ')'
main.d(28): Declaration expected, not ')'
main.d(29): no identifier for declarator getch
main.d(30): unrecognized declaration

and here is the code that I try to compile within Code::Blocks


Code
import std.stdio;

void main()
{
    char[] ch = "now";

        writefln("\ncrash %s   %d", ch, 333 );
    }
    writefln("\ncrash %s   %d", ch, 333 );
}
« Last Edit: March 06, 2006, 12:25:14 am by Zingam »

sethjackson

  • Guest
Re: The 05 march 2006 build is out.
« Reply #4 on: March 06, 2006, 12:18:45 am »
Quote
Prevent crash if compiler errors (or any other log messages) contained '%' (thanks to Boaz for pointing out)

It still crashes: Here is the output form DMD.exe

That fix was for GCC IIRC.

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

BTW you are 100% sure your D code is correct?

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: The 05 march 2006 build is out.
« Reply #5 on: March 06, 2006, 12:26:54 am »
No its not correct :) That's why it crashes!

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: The 05 march 2006 build is out.
« Reply #6 on: March 06, 2006, 12:28:00 am »
Code
import std.stdio;

void main()
{
    char[] ch = "now";


        writefln("\ncrash  %s  ", ch, 333 );
    }
    writefln("\ncrash   %d", ch, 333 );
}

The above doesn't crash Code::Blocks.

It seems it crashes when there are two: %


This does not cause a crash:
Code
import std.stdio;
void main()
{
    char[] ch = "now";


        writefln("\ncrash  %s  ", ch, 333 );
    }
    writefln("\ncrash   %d %d", ch, 333 );
}

console output:
Code
E:\Home\Hristo\My Documents\CodeBlocks Projects\D Crash>dmd main.d
main.d(11): found '"\x0acrash   %d %d"' when expecting ')'
main.d(11): no identifier for declarator writefln
main.d(11): no identifier for declarator writefln
main.d(11): semicolon expected, not '333'
main.d(11): Declaration expected, not '333'
main.d(12): unrecognized declaration

but this does:
Code
import std.stdio;

void main()
{
    char[] ch = "now";


        writefln("\ncrash  %s  ", ch, 333 );
    }
    writefln("\ncrash   %s %d", ch, 333 );
}

Note the "%s".

This is the console output when I run the compiler from the command prompt:
Code
main.d(11): found '"\x0acrash   %s %d"' when expecting ')'
main.d(11): no identifier for declarator writefln
main.d(11): no identifier for declarator writefln
main.d(11): semicolon expected, not '333'
main.d(11): Declaration expected, not '333'
main.d(12): unrecognized declaration


« Last Edit: March 06, 2006, 12:34:42 am by Zingam »

sethjackson

  • Guest
Re: The 05 march 2006 build is out.
« Reply #7 on: March 06, 2006, 12:29:09 am »
No its not correct :) That's why it crashes!

 :lol:  :oops:

As to the second post. Interesting.....  :?

sethjackson

  • Guest
Re: The 05 march 2006 build is out.
« Reply #8 on: March 06, 2006, 12:34:08 am »
I don't have D on my system, but I do have GCC.

Code: cpp
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch[] = "now";

    printf("crash %s %d", ch, 333);
}


No crash. I'm not sure if it is equivalent or not, but it doesn't crash C::B.....

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: The 05 march 2006 build is out.
« Reply #9 on: March 06, 2006, 12:38:14 am »
Code
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch[] = "now";

    printf("crash  %s", ch, 333);
    }
    printf("crash %s %d", ch, 333);
}

This doesn't cause a crash.

And that's from when CB crashes:

Quote
Unhandled exception at 0x00000000 in codeblocks.exe: 0xC0000005: Access violation reading location 0x0000000c.

Unhandled exception at 0xb25374ba in codeblocks.exe: 0xC0000005: Access violation reading location 0xb25374ba.
« Last Edit: March 06, 2006, 12:53:48 am by Zingam »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: The 05 march 2006 build is out.
« Reply #10 on: March 06, 2006, 01:17:40 am »
Well, I have no idea what the deal with that D code is (not using D), but gcc works.
Right now, I've had it compile a file that contained the line
printf("%s %d %f", %s, %d, %f);
which will quite obviously generate an error , and that works just fine.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline skirby

  • Almost regular
  • **
  • Posts: 137
Re: The 05 march 2006 build is out.
« Reply #11 on: March 06, 2006, 09:54:11 am »
Hi,

I have a strange behavior for my toolbar.
On Windows XP all is correct but on windows 2000, the "Build target" combo box is cut (see screenshot)

Is it a bug?

Thanks and have a nice day.

Offline skirby

  • Almost regular
  • **
  • Posts: 137
Re: The 05 march 2006 build is out.
« Reply #12 on: March 06, 2006, 10:06:13 am »
Hello,

Is it normal that the background of icons in "General Settings" and all others dialog boxes is black on Windows 2000 while it is transparency on Windows XP?
It is not a bug, just a cosmetic problem (not really important)

Thanks ans have a nice day.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: The 05 march 2006 build is out.
« Reply #13 on: March 06, 2006, 11:03:28 am »
Is it a bug?
Yes, in Windows 2000.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline szczepan

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: The 05 march 2006 build is out.
« Reply #14 on: March 06, 2006, 09:16:42 pm »
Resolved Fixed:

  • Added EditorHooks for modules to hook on editor events. Currently only
    wxEVT_SCI_CHARADDED is forwarded to hooks
  • ...
  • Removed SDK events cbEVT_EDITOR_AUTOCOMPLETE, cbEVT_EDITOR_CALLTIP and
    cbEVT_EDITOR_USERLIST_SELECTION
  • Added new SDK event cbEVT_APP_UPDATE_TITLE to notify the main app to
    update its title etc. Currently not handled...
  • ...


I would call these major feature additions, not "Resolved/Fixed". If we keep adding major features at the "release candidate" stage, we will go to the asymptotic Dev-C++ hell (v1.0RC1, v1.0RC2, v1.0RC3, v1.0RC3.1, v1.0RC3.1b1, v1.0RC3.1b2, v1.0RC3.1b2.99999999) and never quite arrive at v1.0. Do we have the guts to just say NO MORE FEATURES and make a SVN branch for what will become v1.1 and say NEW FEATURES HERE PLEASE?

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: The 05 march 2006 build is out.
« Reply #15 on: March 06, 2006, 10:14:30 pm »
The real issue is that the CB team had something pretty solid, if not feature rich at the RC1 stage.  They decided that while solid, RC1 needed a major overhaul of several systems, so a rewrite begin.  Technically they took a step backward to 0.9, and continued like RC1 had never been released, as in no feature freeze. 

I believe this is mainly because the CB team believed that Codeblocks would be much more usable, and therefore worth a 1.0 release if they fixed so outstanding issues in RC1. The bad news we essentially jumped from release candidate stage back to alpha testing because these changes required major rewrites, as well as a linux build system change, etc. 

I do share your frustration from some standpoint, I think the CB team should put something on the wiki like Ogre's roadmap.  That way everyone knows what is left to be done, what the current goals are etc.  I too hope we will go into beta soon.

EDIT- It is also more fun as developer to just add, feature after, feature (ie feature creep) rather freeze and bug fix.  That said the CB does an excellent job bug fixing most issues that are reported.
« Last Edit: March 06, 2006, 10:16:21 pm by Game_Ender »

Offline szczepan

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: The 05 march 2006 build is out.
« Reply #16 on: March 09, 2006, 11:11:46 pm »
The real issue is that the CB team had something pretty solid, if not feature rich at the RC1 stage.  They decided that while solid, RC1 needed a major overhaul of several systems, so a rewrite begin.  Technically they took a step backward to 0.9, and continued like RC1 had never been released, as in no feature freeze.

OK, I get it now, thanks for the clarification.