Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on January 12, 2010, 07:14:38 pm

Title: The 12 January 2010 build (6080) is out.
Post by: killerbot on January 12, 2010, 07:14:38 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_wx2810.7z

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

The 12 January 2010 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20100112_rev6080_win32.7z
  - Linux :
   none

Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 12 January 2010 build (6080) is out.
Post by: Jenna on January 12, 2010, 10:14:22 pm
I just moved the debian binaries (32- and 64-bit), sources and documentation packages (german and english) into my repository.

See here (http://apt.jenslody.de) how to use it.

Note:
the revision is 6077, but 6078 to 6080 only contain fixes for build with xWidgets 2.9 and a compiler-warning, so there is no difference in functionality.

EDIT:

at least one point is missing from the "Resolved fixed"-list:
Title: Re: The 12 January 2010 build (6080) is out.
Post by: private_joker on January 13, 2010, 12:14:03 am
Still the same (http://forums.codeblocks.org/index.php/topic,11827.0.html (http://forums.codeblocks.org/index.php/topic,11827.0.html))  :(
Title: Re: The 12 January 2010 build (6080) is out.
Post by: ahui886 on January 13, 2010, 01:58:08 am
good job,thx.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: nanyu on January 13, 2010, 07:32:20 am
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char **argv)
{   
    string s;
   
    s.    //<----cc while svn6023 work good,  but svn6080 didn't work.
   
    return 0;
}
---------------------------
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Loaden on January 13, 2010, 07:44:46 am
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char **argv)
{   
    string s;
   
    s.    //<----cc while svn6023 work good,  but svn6080 didn't work.
   
    return 0;
}
---------------------------

The soon to solve this problem:http://forums.codeblocks.org/index.php/topic,11800.msg80076.html#msg80076 (http://forums.codeblocks.org/index.php/topic,11800.msg80076.html#msg80076)
Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 13, 2010, 07:51:54 am
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char **argv)
{   
    string s;
   
    s.    //<----cc while svn6023 work good,  but svn6080 didn't work.
   
    return 0;
}
---------------------------

I have a patch to solve this problem. you can test it. :D
see
Re: vector<int> is OK, but string or wstring no-work. (http://forums.codeblocks.org/index.php/topic,11800.msg80349.html#msg80349) and the following posts.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: nanyu on January 13, 2010, 07:55:27 am
but It seem to say that bug have been fix with this nightly builder :....


  • CC: fixed bug with wrong file being returned reported here: http://forums.codeblocks.org/index.php/topic,11800.msg80076.html#msg80076

Title: Re: The 12 January 2010 build (6080) is out.
Post by: Loaden on January 13, 2010, 08:20:27 am
but It seem to say that bug have been fix with this nightly builders :....


  • CC: fixed bug with wrong file being returned reported here: http://forums.codeblocks.org/index.php/topic,11800.msg80076.html#msg80076

In fact, only a step away from success. :D
Title: Re: The 12 January 2010 build (6080) is out.
Post by: nanyu on January 13, 2010, 09:14:24 am
In fact, only a step away from success. :D

I have added the "_GLIBCXX_END_NESTED_NAMESPACE" to default.conf file. but cc do not work for the situation:

Code
string s;
s.

BUT when I do it under svn6023, cc do everything ok (without I add "_GLIBCXX_END_NESTED_NAMESPACE" to conf file):

string s;
s. //<-- here can show the codecomplite hint windows.

vector<string> vs;
vs.pu  //<-- here can show "push_back"...




Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 13, 2010, 09:21:45 am
In fact, only a step away from success. :D

I have added the "_GLIBCXX_END_NESTED_NAMESPACE" to default.conf file. but cc do not work for the situation:

Code
string s;
s.

BUT when I do it under svn6023, cc do everything ok (without I add "_GLIBCXX_END_NESTED_NAMESPACE" to conf file):

string s;
s. //<-- here can show the codecomplite hint windows.

vector<string> vs;
vs.pu  //<-- here can show "push_back"...


You need to read more carefully about my post in This is the macro replacement (http://forums.codeblocks.org/index.php/topic,11800.msg80350.html#msg80350) and This is the patch (http://forums.codeblocks.org/index.php/topic,11800.msg80349.html#msg80349)

Note: adding replacement rule: _GLIBCXX_END_NAMESPACE.

Title: Re: The 12 January 2010 build (6080) is out.
Post by: pasgui on January 13, 2010, 01:43:53 pm
Build for Ubuntu i386/amd64 can be found here (http://lgp203.free.fr/ubuntu) (howto (http://lgp203.free.fr/spip/spip.php?article1))

wxWidgets for amd64:
- From Hardy Heron 8.04 to Jaunty Jacklope 9.04: wxWidgets from http://www.wxwidgets.org (http://www.wxwidgets.org) (howto (http://lgp203.free.fr/spip/spip.php?article1))
- For Karmic Koala 9.10: wxWidgets from http://www.wxwidgets.org (http://www.wxwidgets.org) with jaunty-wx for the distribution (howto (http://lgp203.free.fr/spip/spip.php?article1))
wxWidgets for i386:
- From Hardy Heron 8.04 to Jaunty Jacklope 9.04: wxWidgets from http://www.wxwidgets.org (http://www.wxwidgets.org) (howto (http://lgp203.free.fr/spip/spip.php?article1))
- For Karmic Koala 9.10: wxWidgets from Ubuntu (universe)

Best regards, pasgui
Title: Re: The 12 January 2010 build (6080) is out.
Post by: aozima on January 14, 2010, 04:01:06 am
Code
typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;

a = DISABLE; // is work
a = ena***    // is not work,but,svn6023 is work....

see attachment!!!

[attachment deleted by admin]
Title: Re: The 12 January 2010 build (6080) is out.
Post by: blueshake on January 14, 2010, 04:11:15 am
confirm it.the enum is not parsed correctly.the ENABLE  is lost.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: aozima on January 14, 2010, 04:30:55 am
yes!
the ENABLE is lost!
but the DISABLE is OK!

I dont't know how to ....
Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 14, 2010, 04:33:08 am
yes!
the ENABLE is lost!
but the DISABLE is OK!

I dont't know how to ....
I will check this bug. by enable #define PARSERTHREAD_DEBUG_OUTPUT 1.
By the way, I found that you also comes from China, and nice to meet you and your personal site (http://www.aozima.com/blog/about)
Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 14, 2010, 04:40:30 am
Ok, this bug can be fixed soon. For example:

In the DoParse() function

Code
  else if (token==ParserConsts::kw_typedef)
        {
            if (m_Options.handleTypedefs)
                HandleTypedef();
            else
                SkipToOneOfChars(ParserConsts::semicolonclbrace, true);
            m_Str.Clear();
        }

Then in your code
Code
typedef enum {DISABLE = 0, DISABLE2 = 0, ENABLE = !DISABLE} FunctionalState;

a = DISABLE; // is work
a = ena;
When the Tokenizer meet the first "=" in your statement, it just SKIP to the "}".
That's the reason.

So, I think we can add this  before we handling typedef.
Code
m_Tokenizer.SetState(tsSkipNone);

I will do more testing.

Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 14, 2010, 06:27:30 am
Oh, my God, I found a bug in the Tokenizer::SkipUnWanted.

Code
    // skip the following = or ?
    if(m_State&tsSkipEqual)
    {
        if(c == _T('='))
        {
            if (!SkipToOneOfChars(_T(";}"), true))
                return false;
        }
    }

should be:
Code
    // skip the following = or ?
    if(m_State&tsSkipEqual)
    {
        if(c == _T('='))
        {
            if (!SkipToOneOfChars(_T(",;}"), true))
                return false;
        }
    }

Sorry! That's my fault.

Edit:
So, the problem Re: The 12 January 2010 build (6080) is out. (http://forums.codeblocks.org/index.php/topic,11844.msg80478.html#msg80478) can be solved.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: aozima on January 14, 2010, 06:53:50 am
Thinks! ollydbg..  is OK now!!!! :lol: :lol:
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Borr on January 14, 2010, 07:22:42 am
I have IBPP (http://www.ibpp.org/ (http://www.ibpp.org/)) and CB. And I want CB to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.

Code
IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/
Title: Re: The 12 January 2010 build (6080) is out.
Post by: ollydbg on January 14, 2010, 07:31:27 am
I have IBPP (http://www.ibpp.org/ (http://www.ibpp.org/)) and CB. And I want CB to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.

Hi, sorry I can't fully catch your idea.
Did you use an external tag file?? How do you use them?

What does these code means???
Code
IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/
??
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Borr on January 14, 2010, 08:58:41 am
Hi, sorry I can't fully catch your idea.
Did you use an external tag file?? How do you use them?

No do not use. I just need codecompletion with IBPP class in C::B

What does these code means???
Code
IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/
??

This code mean that codecompletion not work in 4-th line tr->
Title: Re: The 12 January 2010 build (6080) is out.
Post by: koso on January 14, 2010, 09:29:03 am
And does it works when using operator "." ... i.e. "tr."?
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Borr on January 14, 2010, 09:35:09 am
See IBPP there is an example.
http://sourceforge.net/projects/ibpp/files/ (http://sourceforge.net/projects/ibpp/files/)
Title: Re: The 12 January 2010 build (6080) is out.
Post by: blueshake on January 14, 2010, 10:07:29 am
work fine here.
see the screen shot.


[attachment deleted by admin]
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Borr on January 14, 2010, 10:18:41 am
this not all the list should be more
Title: Re: The 12 January 2010 build (6080) is out.
Post by: blueshake on January 14, 2010, 10:32:32 am
this not all the list should be more


That is all,because operator overload (such as operator+)will be ignored.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Borr on January 14, 2010, 11:04:26 am
see image - work in codelite

[attachment deleted by admin]
Title: Re: The 12 January 2010 build (6080) is out.
Post by: blueshake on January 14, 2010, 11:31:50 am
I see now.what are you talking is template parse.it is not implemented yet.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: binom25 on January 14, 2010, 09:16:32 pm
Firstly, I want to say "Thank you for Codeblocks".
Secondly, I've downloaded this version and noticed a problem in editor. I don't know where exactly the problem is, but when I'm doing copy and paste a large block code, editor works a bit slowly(it hangs) than early version of Codeblocks. I use Codeblocks in Windows XP 32 bits.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: critic on January 15, 2010, 11:03:50 am
Thanks for CC improvements. Go on in the same way, it's hard, but very useful work  :P.

I have some problems  :(.
I want automatical insertion of default code in new H and CPP files like in Anjuta IDE and others.
But `Default code` option in editor's preferences page doesn't support such expression:
Code
//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
to evaluate it to (for example):
Code
//-----------------------------------------------------------
// File: header_file.h
// Date: friday, 2010-01-15
//
// Author: Lastname A.A.
// Email: my@email.org
//----------------------------------------------------------

By the way, some of these items can be stored in project or IDE (the last is better, because only one developer use this copy of IDE):

Now I use the following abbreviation, but it doesn't work properly - problem with cursor positioning after insertion:
Code
//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
|

Cursor appears in 5 symbols earlier, that is on the delimiter line.
But this variant is not handy - every time I create new file I need insert manually header. I think IDE can do this better.

Later. With regards, Mihail.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: MortenMacFly on January 15, 2010, 01:18:03 pm
But `Default code` option in editor's preferences page doesn't support such expression:
Code
//	File:	$ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
The next nightly will have this implemented. It's committed to SVN trunk.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: adfm on January 15, 2010, 01:33:00 pm
Hey

I have the same problem as binom25. When I upgraded to this build, the editor is very slow. I can't type 4 letters before it hangs for a couple of seconds! But it's not all, all the application is slow and it hangs often for some seconds....

I tried to downgrade it (copied the last build over this one - I know, I know!), but it kept the same behaviour.

Then I installed a fresh copy and upgraded it to this build and the results are the same.

Ideas? Some autocomplete feature of some sort? What kind of parsing is being done as I write in the editor!?

Cheers
Title: Re: The 12 January 2010 build (6080) is out.
Post by: MortenMacFly on January 15, 2010, 01:55:43 pm
editor works a bit slowly(it hangs) than early version of Codeblocks.
That's because of the new CC functionality "parse while typing". This can be configured in the next nightly. For large projects / files this can be turned off then.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: adfm on January 15, 2010, 02:06:07 pm
yep... quite big project here...

I'll wait (eagerly) for the next build .

Thanks for the clarification.

Cheers
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Folco on January 15, 2010, 04:29:24 pm
I have seen that two options for TinyC Compiler seem to be the same : both set the -w switch. Is it normal ?

(http://www.mirari.fr/Xuax) (http://www.mirari.fr/YnYd)
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Folco on January 16, 2010, 10:51:25 pm
I use Fedora 12, 64 bits.

I have recompiled Codeblocks using codeblocks version release, using the .cbp file of the current svn. No error neither warning.
Now I get a systematic crash when I try to open the dialog box Settings -> Compiler and Debugger.

Here's the log file generated by Codeblocks itself : http://www.mirari.fr/BGKI
Title: Re: The 12 January 2010 build (6080) is out.
Post by: koso on January 16, 2010, 11:10:08 pm
I use Fedora 12, 64 bits.

I have recompiled Codeblocks using codeblocks version release, using the .cbp file of the current svn. No error neither warning.
Now I get a systematic crash when I try to open the dialog box Settings -> Compiler and Debugger.

Here's the log file generated by Codeblocks itself : http://www.mirari.fr/BGKI

Try to backup and delete you profile config file (probably default.conf). Also have you recompiled all plugins? -> if there is not some version missmatch between recompiled, and previos versions of C::B or plugins.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Folco on January 16, 2010, 11:25:01 pm
Ok, I do that and give feedback.

edit -> OK, I have deleted my ~/.codeblocks folder.
Then I run codeblocks. It detects correctly GCC/G++ (official Fedora package). I open an existing and very simple project. But I get always the same systematic crash when opening this dialog box.

I have installed the same nighty build on my Debian Lenny, using the repo provided by a member of this staff (?). I try with it and give feedback.


PS -> I hadn't recompiled any plugin. After having compiled, I just put the executable 'codeblocks' in /usr/bin, the two dll in /usr/lib64, and the 'share' folder in /usr/share. Then I have rebooted.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Folco on January 16, 2010, 11:39:15 pm
I get a normal behavior under Debian Lenny 32 bits (Codeblocks build 6077).
But I always get this crash on my Fedora (Codeblocks build 6088), even after a reboot.

ps -> I have edited the post above, about the plug-in compilation and my way of installation.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: oBFusCATed on January 16, 2010, 11:56:38 pm
Have you run the src/update script?
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Folco on January 17, 2010, 02:06:52 am
No. Really sorry :(

I have downloaded fresh sources from svn, run the src/update script, compiled in the IDE, and now it works fine.
I think I didn't see that in the documentation. Thank you and sorry again
Title: Re: The 12 January 2010 build (6080) is out.
Post by: blueshake on January 17, 2010, 02:46:54 am
editor works a bit slowly(it hangs) than early version of Codeblocks.
That's because of the new CC functionality "parse while typing". This can be configured in the next nightly. For large projects / files this can be turned off then.

@morten

when we type codes in the same line,the parser do not work in real-time except in different line.So the issue(a bit slowly) happened in the same line,I don't think it is someting related to real-time parse but something else.

Edit:
maybe we can use a timer here to avoid this issue.what is your comment?
Title: Re: The 12 January 2010 build (6080) is out.
Post by: MortenMacFly on January 17, 2010, 06:16:45 am
So the issue(a bit slowly) happened in the same line,I don't think it is someting related to real-time parse but something else.
I'm doing copy and paste a large block code, editor works a bit slowly(it hangs) than early version of Codeblocks.
He said he's pasting a huge block of code. So for me it's not the same line... (and matches my experience, btw...)?!
Title: Re: The 12 January 2010 build (6080) is out.
Post by: untio on January 19, 2010, 05:36:09 pm
Hello,
An issue that I see in the code completion is that if you declare a pointer to a struct in its definition:
typedef struct {
  int field;
  int field2;
} mystruct, *pmystruct;
Code completion does not work with variables of pmystruct type.
Forgive me if I have mistaken.
Title: Re: The 12 January 2010 build (6080) is out.
Post by: Xaviou on January 20, 2010, 08:28:11 am
Ubuntu 8.04 to 9.10 Amd64 tar.gz archive (containing '.deb' installers builds with wx2810 from wxWidgets's repository) can be found  here (http://www.archive-host.com/compteur.php?url=http://codeblocks.archive-host.com/CB_20100115_802_rev6088_Ubuntu704-910_wx2810_amd64tar.gz).
".mo" file for french translation can be founded here (http://www.archive-host.com/compteur.php?url=http://codeblocks.archive-host.com/CB_20100116_rev6088_fr.zip) (see below for installation instructions)
Full Win32 French Version (including wxWidgets and MinGW dlls and french ".mo" files) can be founded here (http://www.archive-host.com/compteur.php?url=http://codeblocks.archive-host.com/CB_20100116_rev6088_win32_fr.7z)

Installing french files:

Regards
Xav'

Edit : Oups... wrong topic : sorry  :(