/usr/lib/haxe/lib/nme/3,4,0/jeash/display/DisplayObjectContainer.hx:163: characters 2-4 : Unexpected if

Bug #1028584 reported by raoul duke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jeash
New
Undecided
Unassigned

Bug Description

looks like the for should have an opening curly bracket? just guessing.

i actually tried it locally and then it complains that it doesn't know what i is.

i suspect this code path in jeash was never used with #debug turned on?

       #if debug
        for (child in jeashChildren)
            if (child == object) {
                throw "Internal error: child already existed at index " + i;
            }
        }
        #end

        if (stage != null) object.jeashAddToStage(this);

Revision history for this message
Eric Williams (eric-c-williams) wrote :

I also encountered this immediately after installation when trying to build the NyanCat example for HTML5. I was able to get past this particular issue with the following code. I *think* this is how it should be but I had other issues with the NyanCat example and HTML5, and I'm new to Haxe and NME, so take it with a grain of salt. :-)

                #if debug
                for (child in jeashChildren) {
                        if (child == object) {
                                var i = Lambda.indexOf(jeashChildren, child);
                                throw "Internal error: child already existed at index " + i;
                        }
                }
                #end

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.