News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

The 12 February 2011 build (6992) is out.

Started by killerbot, February 12, 2011, 05:31:34 PM

Previous topic - Next topic

Phenom

Bug: I tried to delete an empty directory with FileManager, but I got the message "Could not open handle <path>" and CodeBlocks crashed.

mariocup

Hi,

I installed codeblocks revision 6996 from jenslody repository under ubuntu 10.10. If I disable the compiler plugin and then I open e.g. a cpp-file then codeblocks will crash.

I disabled quite a lot of plug-ins, but I think it is related to this plugin.

Regards,

Mario

Jenna

Quote from: mariocup on February 14, 2011, 11:39:42 PM
Hi,

I installed codeblocks revision 6996 from jenslody repository under ubuntu 10.10. If I disable the compiler plugin and then I open e.g. a cpp-file then codeblocks will crash.

I disabled quite a lot of plug-ins, but I think it is related to this plugin.

Regards,

Mario

I only get (or gotit, will try again) if I remove (or rename) th ecompiler plugins library.

You might have seen, that I added debconf scripts to rename (and therefore not load) some of the plugins, except for the compiler plugin:
Quote from: jens on February 07, 2011, 10:13:28 AM
At the moment there is another (most likely more important) issue to look into:
If compiler-library is removed, you can not  open any files with "File->Open" or from recent file list, because C::B crashes immediately.
That's the cause, why I inhibit renaming of compiler pluzgin via debconf.

But it worked for me with a disabled plugin (from inside C::B).
I will try to investigate more.

Jenna

Quote from: jens on February 15, 2011, 06:45:24 AM
Quote from: mariocup on February 14, 2011, 11:39:42 PM
Hi,

I installed codeblocks revision 6996 from jenslody repository under ubuntu 10.10. If I disable the compiler plugin and then I open e.g. a cpp-file then codeblocks will crash.

I disabled quite a lot of plug-ins, but I think it is related to this plugin.

Regards,

Mario

I only get (or gotit, will try again) if I remove (or rename) th ecompiler plugins library.

You might have seen, that I added debconf scripts to rename (and therefore not load) some of the plugins, except for the compiler plugin:
Quote from: jens on February 07, 2011, 10:13:28 AM
At the moment there is another (most likely more important) issue to look into:
If compiler-library is removed, you can not  open any files with "File->Open" or from recent file list, because C::B crashes immediately.
That's the cause, why I inhibit renaming of compiler pluzgin via debconf.

But it worked for me with a disabled plugin (from inside C::B).
I will try to investigate more.
I just tested it, and it crashes also.
The "funny" thing is, that it seems to shut down C::B, th bachtrace shows only some destructors, that have been called and C::B writes back a changed default.conf .

MortenMacFly

Quote from: jens on February 15, 2011, 07:33:50 AM
I just tested it, and it crashes also.
Here, too. It seems the crash is traced back to CC -> nativeparser.cpp:645 where the requested compiler is invalid. This can happen (as we see) and should therefore be handeled differently.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Quote from: MortenMacFly on February 15, 2011, 07:55:01 AM
Here, too. It seems the crash is traced back to CC -> nativeparser.cpp:645 where the requested compiler is invalid. This can happen (as we see) and should therefore be handeled differently.
You The attached patch may resolve it (untested though).

As it "cbThrows" this explains why the default.conf still gets saved. That's a fail-safe option.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

Quote from: MortenMacFly on February 15, 2011, 08:02:38 AM
Quote from: MortenMacFly on February 15, 2011, 07:55:01 AM
Here, too. It seems the crash is traced back to CC -> nativeparser.cpp:645 where the requested compiler is invalid. This can happen (as we see) and should therefore be handeled differently.
You The attached patch may resolve it (untested though).

As it "cbThrows" this explains why the default.conf still gets saved. That's a fail-safe option.
Fix confirmed on debian 64-bit, with disabled and removed compiler.

MortenMacFly

Quote from: jens on February 15, 2011, 08:26:37 AM
Fix confirmed on debian 64-bit, with disabled and removed compiler.
Feel free to commit, I don't have SVN access atm (and probably for the next couple of days...).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

Quote from: MortenMacFly on February 15, 2011, 09:26:06 AM
Quote from: jens on February 15, 2011, 08:26:37 AM
Fix confirmed on debian 64-bit, with disabled and removed compiler.
Feel free to commit, I don't have SVN access atm (and probably for the next couple of days...).
Thanks for quickly fixed!
Has been applied in the rev7010.

stefanos_

Guys, I don't know if it's a minor bug or not, but it seems that AStyle "violates" Code::Blocks's Coding Style.

To reproduce this:
create a new class name Foo
enter your curly braces; it will automatically indent your cursor by a tab / 4 spaces size (if i am correct; if not correct me please!)
Enter either public:, or private, or protected:, and see them left indenting like the Bad example from Coding Style.

I know that is a minor issue, but I am trying to adapt the Code::Blocks's Coding Style in my programming life :)

Cheers.

Folco

Some people like that public/protected/private is aligned with {}. I think it's horrible. But this fact seems to be voluntary.
Kernel Extremist - PedroM power ©

Loaden

Quote from: stefanos_ on February 18, 2011, 08:03:58 AM
Guys, I don't know if it's a minor bug or not, but it seems that AStyle "violates" Code::Blocks's Coding Style.

To reproduce this:
create a new class name Foo
enter your curly braces; it will automatically indent your cursor by a tab / 4 spaces size (if i am correct; if not correct me please!)
Enter either public:, or private, or protected:, and see them left indenting like the Bad example from Coding Style.

I know that is a minor issue, but I am trying to adapt the Code::Blocks's Coding Style in my programming life :)

Cheers.
Settings > Editor > Editor settings > Indent options > Smart indent
Please does not checked this option.

dmoore

Quote from: oBFusCATed on February 13, 2011, 08:55:03 PM
dmoore: Is there a reason you're not adding stuff to the Tools menu, having two menus named identically is not good.

To replace the tools menu, Goto Tools+ -> Configure Tools -> Plugin Settings, There's a checkbox to replace Tools with Tools+. Otherwise disable the plugin. Ideally Tools+ should offer same features as Tools + more. (This isn't true right now and your old tools won't be available in tools+)

I decided not to replace tools with tools+ by default for transparency purposes (to make it clear for first timers to the plugin that this is a separate feature). Before the next release, maybe the devs collectively decide to do something different.

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dmoore

Quote from: Phenom on February 14, 2011, 08:53:02 PM
Bug: I tried to delete an empty directory with FileManager, but I got the message "Could not open handle <path>" and CodeBlocks crashed.

Thanks for the report.

What OS? (Assume windows) Was the directory deleted the root of the tree displayed in the FileManager or a subdirectory? Did the crash occur after clicking ok on the "Could not handle" message or before? Can you replicate consistently?

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Phenom

QuoteWhat OS? (Assume windows)
Yes, windows/

QuoteWas the directory deleted the root of the tree displayed in the FileManager or a subdirectory?
Subdirectory.

QuoteDid the crash occur after clicking ok on the "Could not handle" message or before?
When the message is shown, if you click ok it becomes unresponisive. The same is if you wait a few senonds not clicking ok.

QuoteCan you replicate consistently?
Unfortunately not. Try something like this: move the all the files of a folder to its parent directory and then try delete the folder.