Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on August 16, 2006, 09:02:26 pm

Title: The 16 august 2006 build is out.
Post by: killerbot on August 16, 2006, 09:02:26 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://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z

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

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

The 16 August 2006 build is out.
  - Windows : http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_win32.7z
  - Linux :
         http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_Ubuntu6.06.deb
         http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_fc4+5.rpm (not yet)


Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 16 august 2006 build is out.
Post by: sethjackson on August 16, 2006, 09:12:30 pm
Windows ANSI build is here (http://rapidshare.de/files/29649692/output.7z.html).
Title: Re: The 16 august 2006 build is out.
Post by: cstudent on August 16, 2006, 09:36:12 pm
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent
Title: Re: The 16 august 2006 build is out.
Post by: killerbot on August 16, 2006, 09:43:07 pm
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent

probably GetSelection will be sufficient, since we need it as index, not as string

EDIT : platform independent my ... , on windows this builds, thanks wx

EDIT2 : in case of a choice it would have been ok (wxChoice::GetCurrentSelection)

EDIT 3 : on windows : wxComboBox derives from wxChoice (dunno for linux and others, should boot in linux for that) and on windows wxChoice has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

EDIT 4 : on wxgtk (linux) : wx Choice also has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

BUT wxComboBox is not derived from wxCoice BUT THEN AGAIN : wxComboBox has :
#if wxABI_VERSION >= 20602
    int GetCurrentSelection() const;
#endif

So I would say your are not wxABI_VERSION >= 20602 ...
Title: Re: The 16 august 2006 build is out.
Post by: Last-Attacker on August 16, 2006, 10:01:55 pm
Hey guys!
Excellent work on the code completion!
It works like... better than a dream! REALLY!

I mean, it actually determines the correct structural datatype and shows the list of its members and methods, and its complete list with inherited members and methods! In like a split second! BRILLIANT!
I also like the CallTip now. This app is starting to become more and more like VC++ but better IMHO!

Again! Very well done!

I honestly can't wait for RC3!

God Bless!
Title: Re: The 16 august 2006 build is out.
Post by: Tactive on August 16, 2006, 10:48:55 pm
What do I have to do to use PCH file in my projects? I looked at the project properties and selected to generate the PCH file alongside original header files (default) but when I compile my project there won't be generated any file??
Title: Re: The 16 august 2006 build is out.
Post by: marstell on August 16, 2006, 11:11:12 pm
A little bug: it seems that selecting the build target in the combobox or even in the menu, always the upper item is selected, not the one I've really selected...
Example:

if I have in this order:

- Build Target #1
- Build Target #2
- Build Target #3

if I select "Build Target #2", the "Build Target #1" is executed, and if I select "Build Target #3", the "Build Target #2" is executed.

It must be a very little mistake in some index, in one of the latest revisions.

Bye,

Marco Stella
Title: Re: The 16 august 2006 build is out.
Post by: Tactive on August 16, 2006, 11:29:05 pm
I also reckognized this bug. In my projects I've three build targets (All / Debug / Release) but it doesn't compiles
what I selected (in the target selector in the toolbar). Sometimes it works correct but mostly it compiles other
targets.

It also effects the run option. I selected the debug target and he starts with the release version.....

Very confusing.....
Title: Re: The 16 august 2006 build is out.
Post by: Tactive on August 16, 2006, 11:35:07 pm
After installing the nightly build I got several issues with my project header files. I've a header file called prerequisites.h which is beeing included
by each other header file. In each of my header files I use the new #pragma once statement instead of the old #ifndef/#define preprocessor
statements. Unfortunately I got an compiler error (segmentation) fault now in this header file and after changing it to the #ifndef/#define
statement it compiled fine.

So I would like to know if there's a workaround or if support for the (new) #pragma once statement ist beeing planned??
Title: Re: The 16 august 2006 build is out.
Post by: Kreso on August 16, 2006, 11:36:30 pm
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent

probably GetSelection will be sufficient, since we need it as index, not as string

EDIT : platform independent my ... , on windows this builds, thanks wx

EDIT2 : in case of a choice it would have been ok (wxChoice::GetCurrentSelection)

EDIT 3 : on windows : wxComboBox derives from wxChoice (dunno for linux and others, should boot in linux for that) and on windows wxChoice has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

EDIT 4 : on wxgtk (linux) : wx Choice also has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

BUT wxComboBox is not derived from wxCoice BUT THEN AGAIN : wxComboBox has :
#if wxABI_VERSION >= 20602
    int GetCurrentSelection() const;
#endif

So I would say your are not wxABI_VERSION >= 20602 ...


yup, won't compile on my Linux box as well. any clues?
Title: Re: The 16 august 2006 build is out.
Post by: killerbot on August 16, 2006, 11:50:44 pm
use : GetSelection() on that offending line.

could you state which version of wx you are using ??
Title: Re: The 16 august 2006 build is out.
Post by: Kreso on August 17, 2006, 12:15:04 am
2.6.1.2, the ones in ubuntu repos.

I'll go and download/compile the latest version
Title: Re: The 16 august 2006 build is out.
Post by: Vampyre_Dark on August 17, 2006, 12:15:47 am
Yellow boxes all over my screen! All my projects are older than the current save version. I got a messagebox for each of them, and then a screen full of yellow boxes (and they even spawned off the screen too!)  :lol:

Code
My Commit
void SpawnYellowBox(string message)
{
    DOSAttack("http:://www.codeblocks.org");
    return;
}
Title: Re: The 16 august 2006 build is out.
Post by: cstudent on August 17, 2006, 12:34:44 am
Same here libwxgtk2.6-dev = 2.6.1  I think the additional .2 is a debian version number.

I've tried to download and compile 2.6.3. The compiling part goes fine and I have followed everything step in the Code::Blocks wiki, but I can never get this part to work.



Quote
Add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile) (On Suse 10.1 edit /etc/profile.local, it will only be available after a new login). an example PATH

export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH

Note: On Ubuntu Hoary it was necessary to check "Run command as login shell" in the gnome-terminal profile-settings, otherwise the PATH changes are not available in a gnome-terminal window.

add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf) then run:

ldconfig
source /etc/profile

That's it. Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.

To check that things are working, type:

wx-config --prefix

which should give you /opt/wx/2.6

wx-config --libs

which should have at least

-L/opt/wx/2.6/lib -lwx_gtk2-2.6

but can contain other flags as well.

which wx-config

should return /opt/wx/2.6/bin/wx-config



If you are able to get it to work, I sure would like to be clued in as to how. Edgy will have 2.6.3 available. I tried to install the .deb for it, but it screams for a bunch of other dependencies. Btw, I was able to build the .deb under edgy. Edgy will also be using gcc 4.1.


Edit: That last part maybe doesn't make sense. I tried to install libwxgtk2.6-dev from the Edgy repo on Dapper, but it wouldn't install without a bunch of additional dependencies. I didn't want to break my Dapper box, so I didn't continue with that idea. And I was able to build the Code::Blocks deb for Ubuntu I've been building on an Edgy box I have set up. I had to override the dependency for gcc 4.0 3 and compiled it using 4.1. I haven't really tested it beyond that point.
Title: Re: The 16 august 2006 build is out.
Post by: Kreso on August 17, 2006, 12:47:30 am

If you are able to get it to work, I sure would like to be clued in as to how. Edgy will have 2.6.3 available. I tried to install the .deb for it, but it screams for a bunch of other dependencies. Btw, I was able to build the .deb under edgy. Edgy will also be using gcc 4.1.



I've downloaded 2.6.3 but I'll install it tommorow, it's way to late :)
Anyway, why all the extra config to get C::B work with 2.6.3?
Title: Re: The 16 august 2006 build is out.
Post by: Vampyre_Dark on August 17, 2006, 01:18:31 am
Is the code completion meant to show everything from my entire workspace? I have 5-10 projects open that have very little to do with each other, and that gives me about ten thousand functions listed, and all kinds of classes (even duplicates).

I try toggling the 'current file only' selection, but it doesn't make any difference in my listing. It would be nice to list on a per project basis, or my project, and the stuff from my library project too.
Title: Re: The 16 august 2006 build is out.
Post by: sethjackson on August 17, 2006, 02:20:49 am
Yellow boxes all over my screen! All my projects are older than the current save version. I got a messagebox for each of them, and then a screen full of yellow boxes (and they even spawned off the screen too!)  :lol:

Code
My Commit
void SpawnYellowBox(string message)
{
    DOSAttack("http:://www.codeblocks.org");
    return;
}

Yeah I had that happen to me too.  :lol:
Title: Re: The 16 august 2006 build is out.
Post by: ahlongxp on August 17, 2006, 04:25:09 am
2 problems:
can't lanuch default web browser when using koder query plugin.
in the new project dialog(titled "New from template"),click "View as" 's options and then center area left blank.picking any item in the catagory choice control will make them reappear.
Title: Re: The 16 august 2006 build is out.
Post by: dronT78 on August 17, 2006, 06:57:01 am
RSS feeds link bad
Quote
An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.
Title: Re: The 16 august 2006 build is out.
Post by: MortenMacFly on August 17, 2006, 07:44:42 am
2 problems:
Why don't you let us know you OS, version of C::B and all other things that may be of interest? Otherwise your post is just like voices in the sky...

Edit:
can't lanuch default web browser when using koder query plugin.
Could be this one: http://wxforum.shadonet.com/viewtopic.php?t=7977 (http://wxforum.shadonet.com/viewtopic.php?t=7977)
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 08:54:26 am
Is the code completion meant to show everything from my entire workspace? I have 5-10 projects open that have very little to do with each other, and that gives me about ten thousand functions listed, and all kinds of classes (even duplicates).

I try toggling the 'current file only' selection, but it doesn't make any difference in my listing. It would be nice to list on a per project basis, or my project, and the stuff from my library project too.

Are you talking about the symbols browser or code-completion in general?
Title: Re: The 16 august 2006 build is out.
Post by: ahlongxp on August 17, 2006, 09:12:01 am
I guess you will sight my signature and I always post problems to the right thread.
revision 2863
2 problems:
Why don't you let us know you OS, version of C::B and all other things that may be of interest? Otherwise your post is just like voices in the sky...

Edit:
can't lanuch default web browser when using koder query plugin.
Could be this one: http://wxforum.shadonet.com/viewtopic.php?t=7977 (http://wxforum.shadonet.com/viewtopic.php?t=7977)
Title: Re: The 16 august 2006 build is out.
Post by: MortenMacFly on August 17, 2006, 09:25:43 am
I guess you will sight my signature
Ah yes, sorry - it was just too small on my browser.
Anyway, as you can see it *could* be this issue as you use wxWidgets 2.6.1. Could you upgrade and see what happens with 2.6.3?!
Title: Re: The 16 august 2006 build is out.
Post by: ahlongxp on August 17, 2006, 09:43:56 am
I was a little lazy,so I use the libgtk in ubuntu repository.
I don't think I will do a upgrade in order to avoid the tiny problem.
I thought it's a common problem but it seems not.
anyway,thanks for consideration
I guess you will sight my signature
Ah yes, sorry - it was just too small on my browser.
Anyway, as you can see it *could* be this issue as you use wxWidgets 2.6.1. Could you upgrade and see what happens with 2.6.3?!
Title: Re: The 16 august 2006 build is out.
Post by: dronT78 on August 17, 2006, 09:45:43 am
Managment dialog -> Project Tab
Right click at any project file give properties of next file in project tree
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 09:47:39 am
Managment dialog -> Project Tab
Right click at any project file give properties of next file in project tree

Nope, works fine.
Title: Re: The 16 august 2006 build is out.
Post by: Phoenix on August 17, 2006, 09:57:34 am
Is the code completion meant to show everything from my entire workspace? I have 5-10 projects open that have very little to do with each other, and that gives me about ten thousand functions listed, and all kinds of classes (even duplicates).

I try toggling the 'current file only' selection, but it doesn't make any difference in my listing. It would be nice to list on a per project basis, or my project, and the stuff from my library project too.

I think that he ment Management dialog -> Symbols tab and View list. Currently there is only whole workspace or currently opened file. I heard that there was a change in it, but I can't find where.  :?
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 10:19:54 am
I think that he ment Management dialog -> Symbols tab and View list. Currently there is only whole workspace or currently opened file. I heard that there was a change in it, but I can't find where.  :?

No change in the symbols view with this commit...
Title: Re: The 16 august 2006 build is out.
Post by: Jewe on August 17, 2006, 10:34:20 am
Wxsmith,

I played with the wxsmith again.
I got it crashing again.. :D
the only reason for me to report it again here is that I found Q property window is not drawn correctly.

By the way, Love the messagebox telling me its gonna crash. :D

added the rpt and the project code.

Do I also need to report this at the defect database.?

system info
C::B 16 aug 2006
winxp sp2
512 MB

[attachment deleted by admin]
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 10:52:11 am
Wxsmith,

I played with the wxsmith again.
I got it crashing again.. :D

http://forums.codeblocks.org/index.php?topic=3765.0 (http://forums.codeblocks.org/index.php?topic=3765.0)
Title: Re: The 16 august 2006 build is out.
Post by: killerbot on August 17, 2006, 11:04:07 am
A little bug: it seems that selecting the build target in the combobox or even in the menu, always the upper item is selected, not the one I've really selected...
Example:

if I have in this order:

- Build Target #1
- Build Target #2
- Build Target #3

if I select "Build Target #2", the "Build Target #1" is executed, and if I select "Build Target #3", the "Build Target #2" is executed.

It must be a very little mistake in some index, in one of the latest revisions.

Bye,

Marco Stella

fixed in svn by the Don (and tonight in your nightly) ;-)
Title: Re: The 16 august 2006 build is out.
Post by: Kreso on August 17, 2006, 01:04:17 pm
Same here libwxgtk2.6-dev = 2.6.1  I think the additional .2 is a debian version number.

I've tried to download and compile 2.6.3. The compiling part goes fine and I have followed everything step in the Code::Blocks wiki, but I can never get this part to work.



If you are able to get it to work, I sure would like to be clued in as to how. Edgy will have 2.6.3 available. I tried to install the .deb for it, but it screams for a bunch of other dependencies. Btw, I was able to build the .deb under edgy. Edgy will also be using gcc 4.1.

@cstudent: I followed the instructions and have succedeed to compile wx2.6.3 and c::b with it. do you still need help with that?
Title: Re: The 16 august 2006 build is out.
Post by: cstudent on August 17, 2006, 03:17:33 pm
@Kreso: I've been doing some experimentation. I'll let you know. What I'm being so particular about is I'm the one building the Ubuntu .deb for Code::Blocks. I've got a lot of people depending on that file based on the download stats. I don't want to do something on my machine that would screw up the .deb for everybody. I've got a test machine set up that I'm using to experiment with. I think I've been able to sort out the answers to a lot of my own questions.
Title: Re: The 16 august 2006 build is out.
Post by: magnus on August 17, 2006, 05:39:12 pm
Hi all,

First: Thanks alot for this great software!

A beginners question:
In latest version of CB (aug 16) code completion does not work for me anymore.
I can browse classes by typing namespace::class::subclass etc. but typing the beginning of any locally defined variable vill not result in a suggestion from the code completion. Also . and -> does not result in any suggestion either anymore.

Are there new requirements on the code (has code completion become more sensitive) with this release or am I just missing something?

I am running XP sp2 and the aug 16 nightly build with mingwm.
(i have not yet tried versions between jul 17 and aug 15)

Regards
Magnus
Title: Re: The 16 august 2006 build is out.
Post by: Encryptor on August 17, 2006, 08:44:24 pm
Is it possible to get a link to an Ubuntu AMD64 nightly build (either from the 16th or 17th already)?
or, if you could point out the sources to me, I can build them myself. As I understand they are on the CVS somewhere, but I am having problems understanding how to connect to a CVS server.
Thanks in advance!
Title: Re: The 16 august 2006 build is out.
Post by: thomas on August 17, 2006, 09:25:28 pm
Very much afraid to say I am unable to build Code::Blocks on Ubuntu since a week or two (getting a different error every time, presently it is some GTK definition missing in the debugger plugin).
So... no recent AMD64 build, sorry.
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 09:50:56 pm
if you could point out the sources to me, I can build them myself. As I understand they are on the CVS somewhere, but I am having problems understanding how to connect to a CVS server.

http://www.codeblocks.org/source_code.shtml
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 17, 2006, 09:54:37 pm
Are there new requirements on the code (has code completion become more sensitive) with this release or am I just missing something?

I guess you could say it became more "sensitive". In the true sense, it became more correct. With the old code, it would match a token even if it wasn't in the current scope so it might have somehow worked but not really ;).
The new code, is much more accurate.

Having said that, local scope is next on my todo list. Actually, I already commited today a very important part of it so tonight's nightly should be working much better for local scope.

And more to come in the next few days ;)
Title: Re: The 16 august 2006 build is out.
Post by: phlox81 on August 18, 2006, 09:04:34 am
Are there new requirements on the code (has code completion become more sensitive) with this release or am I just missing something?

I guess you could say it became more "sensitive". In the true sense, it became more correct. With the old code, it would match a token even if it wasn't in the current scope so it might have somehow worked but not really ;).
The new code, is much more accurate.

Having said that, local scope is next on my todo list. Actually, I already commited today a very important part of it so tonight's nightly should be working much better for local scope.

And more to come in the next few days ;)

I must say great work. I downloaded the nighlty from 17.8, and Codecompletion is working on a global scope.
But maybe, it should be more intelligent, I parsed now every thing, and it knows now a lot of stuff, most
of what it shows it totally useless. Especially with local variables it gets annonying, that when typing
str it gets "completed" to strcasecmp, maybe you could fix that it autoselects the first value by default.
But if you're working on the local scope, than it might already fixes this...

phlox
Title: Re: The 16 august 2006 build is out.
Post by: MortenMacFly on August 18, 2006, 09:16:54 am
[...] that when typing str it gets "completed" to strcasecmp, [...]
Are you aware that you can setup when CC actually pops up (Settings->Editor->CC)? I've set this option to 5 letters thus it doesn't pop up too often (for 1-4 letters words it usually makes no sense at all). I still can trigger it manually, of course using the hotkey. Maybe this will help you, too.
Title: Re: The 16 august 2006 build is out.
Post by: phlox81 on August 18, 2006, 10:00:22 am
[...] that when typing str it gets "completed" to strcasecmp, [...]
Are you aware that you can setup when CC actually pops up (Settings->Editor->CC)? I've set this option to 5 letters thus it doesn't pop up too often (for 1-4 letters words it usually makes no sense at all). I still can trigger it manually, of course using the hotkey. Maybe this will help you, too.

Well, thats a workaround, but no solution ;)
I've set that to 3 letters, because the old one was mostly guessing right, or
not finding anything. With 5 letter I would not have the problem so often,
but as I said, for me, a workaround is not a solution.
Once the local scope gets recognized, the problem might solve itself. (hopefully)
Title: Re: The 16 august 2006 build is out.
Post by: mandrav on August 18, 2006, 10:36:11 am
But maybe, it should be more intelligent, I parsed now every thing, and it knows now a lot of stuff, most
of what it shows it totally useless.

"Great work" and "totally useless" don't go together in the same paragraph. Please decide :lol: .

Especially with local variables it gets annonying, that when typing
str it gets "completed" to strcasecmp, maybe you could fix that it autoselects the first value by default.
But if you're working on the local scope, than it might already fixes this...

If "str" is not recognized (i.e. local scope not parsed correctly), don't expect it to appear in the list.
Just a few minutes ago, I commited a couple of fixes for local scope:


- Fixed current function arguments parsing in code-completion. Didn't work all the time.
- Remove all temporary code-completion tokens (like local variables) before starting a new search.


All that's left now is improve the actual local block parsing and then I can move to more interesting and important stuff ;).
Before you ask, these are:


Quite big tasks, both, but interesting :).
Title: Re: The 16 august 2006 build is out.
Post by: phlox81 on August 18, 2006, 11:31:42 am
But maybe, it should be more intelligent, I parsed now every thing, and it knows now a lot of stuff, most
of what it shows it totally useless.

"Great work" and "totally useless" don't go together in the same paragraph. Please decide :lol: .

Sometimes your great Work shows partly useless information. ;)
For example, I'm using boost::spirit in my project, when typing anything, I get to see
the internals of boost::spirit. Or when typing str I get to see things, where I don't
even know from where they are, and what the could be (STL? wxWidgets? boost?).
On the other hand, seeing this information is also an improvement. Maybe the could
be a switch, for showing only global types, and only parse the locally used types
for more information.
But as you said, local vars aren't parsed for now, so it can't show any of them, so I will wait ;)
But when typing a membervar, I get to see the correct information, which is great :)

As a programmer I know, how much effort and work such a thing is, so I am impressed
by the good job you did there. I work on a tool for codegeneration, and not have done
so much parsing, but some for functions with boost::spirit, but I still gotta improve that :)

phlox