Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

CC makes C::B hang in ExpandBackticks

<< < (6/11) > >>

Jenna:

--- Quote from: oBFusCATed on January 04, 2013, 10:40:00 pm ---Jens: Can you rebuild cb-unix.cpb with c::b compiled and started from another c::b?

--- End quote ---
Yes.

oBFusCATed:

--- Quote from: jens on January 04, 2013, 11:23:10 pm ---Yes.

--- End quote ---
Hm, have you modified the project to run cb in a terminal?

Jenna:

--- Quote from: oBFusCATed on January 04, 2013, 11:54:23 pm ---
--- Quote from: jens on January 04, 2013, 11:23:10 pm ---Yes.

--- End quote ---
Hm, have you modified the project to run cb in a terminal?

--- End quote ---
I only did it in debug-mode and this works (most of the time) if the ExpandBackticks stuff does not kick in.
But in normal mode it hangs reliably if it tries to build the first target.
With console output enabled it also works.
There are several errors shown before the project is loaded:

--- Code: ---execvp(-version) failed with error 2!
execvp(-version) failed with error 2!

(codeblocks:22219): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:22219): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:22219): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:22219): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

--- End code ---

after (or while) loading the project the following errors are shown:

--- Code: ---(codeblocks:22219): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:22219): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

** (codeblocks:22219): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

** (codeblocks:22219): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

--- End code ---

The radio-errors/warnings are there for a long time (debugger-menu), the last two assertions are caused by wxExecute as far as I know and are also old.

The first two (execvp) messages are new as far as I can tell.
I will try to dig into it deeper (maybe Null-compiler ?).

oBFusCATed:

--- Quote from: jens on January 05, 2013, 01:05:57 am ---But in normal mode it hangs reliably if it tries to build the first target.

--- End quote ---
So, if I understand correctly you are unable to build cb in the described case?


--- Quote from: jens on January 05, 2013, 01:05:57 am ---The first two (execvp) messages are new as far as I can tell.
I will try to dig into it deeper (maybe Null-compiler ?).

--- End quote ---
Yes, they are caused by the xml compiler code, Alpha can you look at them?

Jenna:

--- Quote from: oBFusCATed on January 05, 2013, 01:45:31 am ---
--- Quote from: jens on January 05, 2013, 01:05:57 am ---But in normal mode it hangs reliably if it tries to build the first target.

--- End quote ---
So, if I understand correctly you are unable to build cb in the described case?


--- Quote from: jens on January 05, 2013, 01:05:57 am ---The first two (execvp) messages are new as far as I can tell.
I will try to dig into it deeper (maybe Null-compiler ?).

--- End quote ---
Yes, they are caused by the xml compiler code, Alpha can you look at them?

--- End quote ---
The error is triggered by bool Compiler::EvalXMLCondition(const wxXmlNode* node) .

This fixes the error, that causes "-version" to be the only command.
The error-message itself will still be there.
I suggest catching the error output and either give a more clear error message or just suppress it.


--- Code: ---Index: src/plugins/compilergcc/resources/compilers/options_clang.xml
===================================================================
--- src/plugins/compilergcc/resources/compilers/options_clang.xml
+++ src/plugins/compilergcc/resources/compilers/options_clang.xml
@@ -25,7 +25,9 @@
         <Program name="LD"        value="clang++"/>
         <Program name="DBGconfig" value="gdb_debugger:Default"/>
         <Program name="LIB"       value="llvm-ar"/>
-        <if exec="llvm-ar -version">
+        <!-- LIB will be expanded to llvm-ar by Compiler::GetExecName()
+             llvm-ar can not be directly used here, because it can not be evaluated -->
+        <if exec="LIB -version">
             <!-- found, do nothing -->
         </if>
         <else>

--- End code ---

And yes I can not compile C::B from a C::B running inside C::B which has no console output (either real console or gdb).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version