Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on October 01, 2006, 11:27:28 pm

Title: The 01 october 2006 build is out.
Post by: killerbot on October 01, 2006, 11:27:28 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 01 October 2006 build is out.
  - Windows : http://prdownload.berlios.de/codeblocks/CB_20061001_rev3002_win32.7z
  - Linux :
         http://prdownload.berlios.de/codeblocks/CB_20061001_rev3002_Ubuntu6.06.deb
         http://prdownload.berlios.de/codeblocks/CB_20061001_rev3002_fc4+5.rpm (not yet)


Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 01 october 2006 build is out.
Post by: BigAngryDog on October 02, 2006, 04:32:38 am
Good job on the file search.

Just one more teeny teeny teeny suggestion...

When a string is found in one or more files, C::B seems to open the first in the results by default.

Would it not make sense to not open any file by default if there are more than one files found containing the search string? Or perhaps don't open any file at all until the user double clicks a result. I say this because C::B does not know which file the user wants to open/examine where there are multiple [file] matches.

Just a thought. :)
Title: Re: The 01 october 2006 build is out.
Post by: sque on October 02, 2006, 06:10:07 am
There is a bug in codecompletion with namespaces... I don't have done an extended test but I think I am right.

Ok, now the bug. If you create a file testa.h with some code
Code: cpp
// FILE: testa.h
#include "MySpace.h"
using namespace MySpace;

// << Here the code completition will see all the classes inside MySpace.


Now, at a new file (let's say testb.h) include testa.h.
Code: cpp
// FILE: testb.h
#include "testa.h" // << THIS FILE HAS INSIDE: using namespace MySpace

// << Here the code completition will see NONE of the MySpace classes, although you are using the namespace as declared at testa.h

/*
bla bla bla
*/

using namespace MySpace; // Ok we redeclare it
// << From this point CC will work fine with MySpace members.

With a sort description, I think that CC doesn't calculate "using namespace" from recursive includes.
I am using 25th September build (r2995)
Please someone else validate that this bug exist. I don't wont to file an invalid bug :P
Title: Re: The 01 october 2006 build is out.
Post by: killerbot on October 02, 2006, 07:30:43 am
actually it is correct, as long as you don't say using namespace MySpace; the functions are not in the scope of the compiler (yes, saying compiler here, because it's c++ feature). In such a case you have to specifcy manually like : std::cout.  So more or less it's a good thing the CC is also hiding it.
Title: Re: The 01 october 2006 build is out.
Post by: killerbot on October 02, 2006, 07:32:22 am
Good job on the file search.

Just one more teeny teeny teeny suggestion...

When a string is found in one or more files, C::B seems to open the first in the results by default.

Would it not make sense to not open any file by default if there are more than one files found containing the search string? Or perhaps don't open any file at all until the user double clicks a result. I say this because C::B does not know which file the user wants to open/examine where there are multiple [file] matches.

Just a thought. :)

it's on my todo list, but first gonna check some other IDE's first to see what they are doing, just to get a feeling.
Title: Re: The 01 october 2006 build is out.
Post by: sque on October 02, 2006, 07:35:42 am
actually it is correct, as long as you don't say using namespace MySpace; the functions are not in the scope of the compiler (yes, saying compiler here, because it's c++ feature). In such a case you have to specifcy manually like : std::cout.  So more or less it's a good thing the CC is also hiding it.

Sry I didn't understand :shock: (no offend, just my english isn't that good)...  Is there a specification that says "using namespace" has effect only in the scope of file that is declared? Because at least with gcc, that isn't true. You can include other files that specify "using namespace" and this have effect at the end-file too.
Title: Re: The 01 october 2006 build is out.
Post by: mandrav on October 02, 2006, 08:42:08 am
Sry I didn't understand :shock: (no offend, just my english isn't that good)...  Is there a specification that says "using namespace" has effect only in the scope of file that is declared? Because at least with gcc, that isn't true. You can include other files that specify "using namespace" and this have effect at the end-file too.

No, there's no such specification. It's just that adding "using namespace" inside header files is considered bad practice. Think about it: if you do that in a header then all files including it, directly or (god forbid) indirectly, will be using that namespace too. This is namespace littering and is what namespaces were invented to avoid ;).

CC doesn't parse included files for "using namespace" keywords.
Title: Re: The 01 october 2006 build is out.
Post by: sque on October 02, 2006, 09:46:17 am
No, there's no such specification. It's just that adding "using namespace" inside header files is considered bad practice. Think about it: if you do that in a header then all files including it, directly or (god forbid) indirectly, will be using that namespace too. This is namespace littering and is what namespaces were invented to avoid ;).

CC doesn't parse included files for "using namespace" keywords.

Yeah, probably you are right about my programming tactics, and maybe I 'll change them. But its different what should everyone do and what the compilers can do. What am I saying is, if compilers DO parse recursively for "using bla bla", why CC must be limited?
In my opinion it should be parsed, although I may never use it in the future as your arguments where good enough :P

Title: Re: The 01 october 2006 build is out.
Post by: mandrav on October 02, 2006, 10:41:13 am
Yeah, probably you are right about my programming tactics, and maybe I 'll change them. But its different what should everyone do and what the compilers can do. What am I saying is, if compilers DO parse recursively for "using bla bla", why CC must be limited?
In my opinion it should be parsed, although I may never use it in the future as your arguments where good enough :P



I am not criticizing your programming practices. Anyway, CC doesn't parse "using" directives in the parsing stage because it would add unnecessary complexity in the parsing process. Not that it's impossible, it just would add a lot of complexity. I chose to leave this out and concentrate on more important things/bugs instead. It might be added/fixed sometime in the future but I wouldn't hold my breath ;).
Title: Re: The 01 october 2006 build is out.
Post by: sque on October 02, 2006, 11:56:22 am
Ok I understand. So I 'll file it at the bugzilla, just to not be forgotten in the future. :)
Title: Re: The 01 october 2006 build is out.
Post by: BrianSidebotham on October 02, 2006, 01:07:37 pm
Hi There,

Is it possible to save the file highlighting information from the edit menu options in the c::b project?

At the moment, it's nice to have my makefile syntax highlighted, but I have to manually set the highlighting every time I open the project.

Best Regards,

Brian Sidebotham.
Title: Re: The 01 october 2006 build is out.
Post by: sethjackson on October 02, 2006, 11:36:33 pm
Hi There,

Is it possible to save the file highlighting information from the edit menu options in the c::b project?

At the moment, it's nice to have my makefile syntax highlighted, but I have to manually set the highlighting every time I open the project.

Best Regards,

Brian Sidebotham.

Hmm does your makefile have an extension? Like .mak? Or is it named Makefile????? A lexer is applied to a doc based on the extension AFAIK. So if your makefile doesn't have something like a .mak extension then you will have to manually set it every time.
Title: Re: The 01 october 2006 build is out.
Post by: Jan van den Borst on October 03, 2006, 11:19:59 am
Hello all,
I experience some troubles for quite some time now regarding windows shutdown and codeblocks crash. When I shutdown my computer and codeblocks is still running, codeblocks always crash even when you are prompted to save your work. Saving works but codeblocks crashes afterwards. No problem closing codeblocks normally (not forced by a windows shutdown)
Any ideas?
Jan
Title: Re: The 01 october 2006 build is out.
Post by: BrianSidebotham on October 03, 2006, 11:29:58 am
Hmm does your makefile have an extension? Like .mak? Or is it named Makefile????? A lexer is applied to a doc based on the extension AFAIK. So if your makefile doesn't have something like a .mak extension then you will have to manually set it every time.

It has no extension. The setting is manual, from the Edit menu, and you can apply anything you want to a file with an 'unrecognised' extension. If the extension is unrecognised, it would be beneficial for c::b to remember any highlighting information for that file in the cbp
Title: Re: The 01 october 2006 build is out.
Post by: takeshimiya on October 03, 2006, 12:52:45 pm
Hmm does your makefile have an extension? Like .mak? Or is it named Makefile????? A lexer is applied to a doc based on the extension AFAIK. So if your makefile doesn't have something like a .mak extension then you will have to manually set it every time.

It has no extension. The setting is manual, from the Edit menu, and you can apply anything you want to a file with an 'unrecognised' extension. If the extension is unrecognised, it would be beneficial for c::b to remember any highlighting information for that file in the cbp

Highlighting Mode and File Encoding perhaps are better in the .layout, not the .cbp. Altrough it's debatable which one is better, either is better than nothing.

But to save from clutter .cbp/.layout's I'd say save this info, only when it's overriden.

Title: Re: The 01 october 2006 build is out.
Post by: Pecan on October 03, 2006, 02:13:42 pm
Hello all,
I experience some troubles for quite some time now regarding windows shutdown and codeblocks crash. When I shutdown my computer and codeblocks is still running, codeblocks always crash even when you are prompted to save your work. Saving works but codeblocks crashes afterwards. No problem closing codeblocks normally (not forced by a windows shutdown)
Any ideas?
Jan

I can confirm that on Windows XPsp2, shutting down with CB open (SVN 3001 and prior) causes CB to crash and hangs the shutdown.

I'll see if I can get a backtrace on this.
Title: Re: The 01 october 2006 build is out.
Post by: Pecan on October 03, 2006, 07:29:11 pm
Hello all,
I experience some troubles for quite some time now regarding windows shutdown and codeblocks crash. When I shutdown my computer and codeblocks is still running, codeblocks always crash even when you are prompted to save your work. Saving works but codeblocks crashes afterwards. No problem closing codeblocks normally (not forced by a windows shutdown)
Any ideas?
Jan

I can confirm that on Windows XPsp2, shutting down with CB open (SVN 3001 and prior) causes CB to crash and hangs the shutdown.

I'll see if I can get a backtrace on this.


Looks like I'm not going to get a backtrace on this one. It shuts down just fine when run under GDB. But still crashes on shutdown otherwise.

Does that "woah" window produce a backtrace? I dont seem to find one anywhere.
Title: Re: The 01 october 2006 build is out.
Post by: sque on October 05, 2006, 05:06:46 pm
There is another CC problem with macros.

I have declared a macro at header let's say testa.h:
Code: cpp
#define SLIB_DECLARE_EXCEPTION(name, type) \   // << A there is a bug at forums C++ format plugin too :P
    class name : public Exception { \
    public : name (int error, const string desc, const string func, const string file, long line) \
    : Exception(error, desc, func, file, line, type) {} }; \

At another file
Code: cpp
#include "testa.h"

// MyException1 declared with normal way
class MyException1 : public Exception
{
public :
    MyException1(int error, const string desc, const string func, const string file, long line)
       :  Exception(error, desc, func, file, line, "MyException1")
     {}
};

// MyException2 Declared using my macro
SLIB_DECLARE_EXCEPTION(MyException2, "MyException2");

// <<< Here code completition sees only MyException1

Is it possible to be implemented, or it is too complicated?
Title: Re: The 01 october 2006 build is out.
Post by: mandrav on October 05, 2006, 05:21:56 pm
Quote
Is it possible to be implemented, or it is too complicated?

Nope it won't be implemented because it's too complicated. As a matter of fact we would need to actually evaluate preprocessor macros which won't ever happen ;).