Author Topic: The 16 august 2006 build is out.  (Read 23094 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
The 16 august 2006 build is out.
« 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:

  • codesnippets : autobuild tools and post build step to unix cbp
  • * Greatly improved/enhanced code-completion:
      C/C++ parser is much more accurate now.
      Code-completion proposals are much more correct, based on context.
      Functions implementation file and line are now correctly identified.
      Function arguments tooltips (a.k.a. calltips) are now updated dynamically, while typing, reducing the possible matches based on the number of already typed function arguments.
      Calltips highlight the current argument (only if one matching function signature because of a scintilla limitation).
      Improved "Go to declaration/implementation" functionality when right-clicking on a token in the editor.
    * Removed old (custom) code-completion control.
  • Fixed the #includes order in a couple of files. PCH must be the very first #included file...
  • fixed some pch/include conflicts
  • TODO plug-in : replaced combobox controls by choice controls
  • CB_Koders plugin: enable search for selection / word under cursor in editor (on right-click in active editor)
  • Correctly update class-browser when closing a project
  • Added support for virtual build targets. These are user-defined aliases that group together real build targets. For example, a well-known virtual target is "All". Configuration can be accessed from project properties, "Targets" page, "Virtual targets..." button.
    - SDK version changed to 1.9.0.
    - API change for cbProject::[Get|Set]ActiveBuildTarget().
    - API rename for cbProject::[Get|Set]DefaultExecuteTargetIndex (int) to cbProject::[Get|Set]DefaultExecuteTarget (wxString)

Regressions/Confirmed/Annoying/Common bugs:

  • toolbar-images-not-changing-state (is a wx problem/Win XP problem)
  • there are several issues with Code Completion (is being redesigned : work in progress)
  • menu items with icon not correctly aligned (since wx263)

« Last Edit: August 16, 2006, 11:51:48 pm by killerbot »

sethjackson

  • Guest
Re: The 16 august 2006 build is out.
« Reply #1 on: August 16, 2006, 09:12:30 pm »
Windows ANSI build is here.

Offline cstudent

  • Almost regular
  • **
  • Posts: 159
    • Cstudent's Help Desk
Re: The 16 august 2006 build is out.
« Reply #2 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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
Re: The 16 august 2006 build is out.
« Reply #3 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 ...
« Last Edit: August 16, 2006, 10:09:52 pm by killerbot »

Last-Attacker

  • Guest
Re: The 16 august 2006 build is out.
« Reply #4 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!

Offline Tactive

  • Single posting newcomer
  • *
  • Posts: 9
Re: The 16 august 2006 build is out.
« Reply #5 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??

Offline marstell

  • Single posting newcomer
  • *
  • Posts: 8
  • Software Developer
    • www.marcostella.net
Re: The 16 august 2006 build is out.
« Reply #6 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
Marco Stella, software developer
Visit www.marcostella.net
my personal site/blog about me, Linux, C++ and Qt4 programming..

Offline Tactive

  • Single posting newcomer
  • *
  • Posts: 9
Re: The 16 august 2006 build is out.
« Reply #7 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.....

Offline Tactive

  • Single posting newcomer
  • *
  • Posts: 9
Re: The 16 august 2006 build is out.
« Reply #8 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??

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: The 16 august 2006 build is out.
« Reply #9 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?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
Re: The 16 august 2006 build is out.
« Reply #10 on: August 16, 2006, 11:50:44 pm »
use : GetSelection() on that offending line.

could you state which version of wx you are using ??

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: The 16 august 2006 build is out.
« Reply #11 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

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: The 16 august 2006 build is out.
« Reply #12 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: [Select]
My Commit
void SpawnYellowBox(string message)
{
    DOSAttack("http:://www.codeblocks.org");
    return;
}
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline cstudent

  • Almost regular
  • **
  • Posts: 159
    • Cstudent's Help Desk
Re: The 16 august 2006 build is out.
« Reply #13 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.
« Last Edit: August 17, 2006, 12:42:50 am by cstudent »

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: The 16 august 2006 build is out.
« Reply #14 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?

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: The 16 august 2006 build is out.
« Reply #15 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.
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

sethjackson

  • Guest
Re: The 16 august 2006 build is out.
« Reply #16 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: [Select]
My Commit
void SpawnYellowBox(string message)
{
    DOSAttack("http:://www.codeblocks.org");
    return;
}

Yeah I had that happen to me too.  :lol:

Offline ahlongxp

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: The 16 august 2006 build is out.
« Reply #17 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.
« Last Edit: August 17, 2006, 04:31:47 am by ahlongxp »
ubuntu 8.04
wxWidget 2.8

Offline dronT78

  • Multiple posting newcomer
  • *
  • Posts: 51
Re: The 16 august 2006 build is out.
« Reply #18 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.

Online MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9504
Re: The 16 august 2006 build is out.
« Reply #19 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
« Last Edit: August 17, 2006, 07:49:15 am by MortenMacFly »
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 mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #20 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?
Be patient!
This bug will be fixed soon...

Offline ahlongxp

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: The 16 august 2006 build is out.
« Reply #21 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
ubuntu 8.04
wxWidget 2.8

Online MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9504
Re: The 16 august 2006 build is out.
« Reply #22 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?!
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 ahlongxp

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: The 16 august 2006 build is out.
« Reply #23 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?!
ubuntu 8.04
wxWidget 2.8

Offline dronT78

  • Multiple posting newcomer
  • *
  • Posts: 51
Re: The 16 august 2006 build is out.
« Reply #24 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #25 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.
Be patient!
This bug will be fixed soon...

Offline Phoenix

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: The 16 august 2006 build is out.
« Reply #26 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.  :?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #27 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...
Be patient!
This bug will be fixed soon...

Offline Jewe

  • Multiple posting newcomer
  • *
  • Posts: 70
    • Fit Trainer
Re: The 16 august 2006 build is out.
« Reply #28 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]
Anything curved in the hardware can be straighten with software :D
OS: Vista64 + Debian(to play with)
Compiler: mingw IDE: Code::Blocks Nightly WX: 2.8.0

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #29 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
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
Re: The 16 august 2006 build is out.
« Reply #30 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) ;-)

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: The 16 august 2006 build is out.
« Reply #31 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?

Offline cstudent

  • Almost regular
  • **
  • Posts: 159
    • Cstudent's Help Desk
Re: The 16 august 2006 build is out.
« Reply #32 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.

magnus

  • Guest
Re: The 16 august 2006 build is out.
« Reply #33 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

Offline Encryptor

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: The 16 august 2006 build is out.
« Reply #34 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!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: The 16 august 2006 build is out.
« Reply #35 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #36 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
Be patient!
This bug will be fixed soon...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #37 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 ;)
Be patient!
This bug will be fixed soon...

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: The 16 august 2006 build is out.
« Reply #38 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

Online MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9504
Re: The 16 august 2006 build is out.
« Reply #39 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.
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 phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: The 16 august 2006 build is out.
« Reply #40 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)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The 16 august 2006 build is out.
« Reply #41 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:

  • Recognize the "using namespace" construct.
  • Parse typedefs.

Quite big tasks, both, but interesting :).
Be patient!
This bug will be fixed soon...

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: The 16 august 2006 build is out.
« Reply #42 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