Lime Error Debug to HTML5

46 views
Skip to first unread message

Moshe Adriano Yosef Feit

unread,
Jan 13, 2016, 2:58:07 PM1/13/16
to HaxeFlixel
Hi,

Recently trying to debug my project to HTML5, but it gives me error.

C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : Array<{ type : haxe.macro.ComplexType, opt : Bool, name : String }> should be Array<haxe.macro.FunctionArg>
C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : Type parameters are invariant
C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : { type : haxe.macro.ComplexType, opt : Bool, name : String } should be haxe.macro.FunctionArg
C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : { type : haxe.macro.ComplexType, opt : Bool, name : String } should be { ?value : Null<haxe.macro.Expr>, type : Null<haxe.macro.ComplexType>, ?opt : Bool, name : String }
C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : { type : haxe.macro.ComplexType, opt : Bool, name : String } has no field value
C:/HaxeToolkit/haxe/lib/lime/2,8,3/lime/text/Font.hx:25: characters 2-11 : Build failure

The related code with this error is
The 'args' ofthis function:

macro public static function embedBytes ():Array<Field> {
       
        var fields = embedData (":file");
       
        #if lime_console
        if (false) {
        #else
        if (fields != null) {
        #end
           
            var constructor = macro {
               
                var bytes = haxe.Resource.getBytes (resourceName);
               
                super (bytes.length, bytes.b);
               
            };
           
            var args = [ { name: "length", opt: false, type: macro :Int }, { name: "bytesData", opt: false, type: macro :haxe.io.BytesData } ];
            fields.push ({ name: "new", access: [ APublic ], kind: FFun({ args: args, expr: constructor, params: [], ret: null }), pos: Context.currentPos () });
           
        }
       
        return fields;

       
    }

My only effort is updating all library, since this is not my code, I'm trying to stay away from messing things up. Any advice, maybe?

Thanks in advance.


David MEKERSA

unread,
Jan 28, 2016, 10:14:39 AM1/28/16
to HaxeFlixel
Same here. Any update?

Gama11

unread,
Jan 28, 2016, 1:01:42 PM1/28/16
to HaxeFlixel
Is your Haxe version up to date?

David MEKERSA

unread,
Jan 28, 2016, 1:28:25 PM1/28/16
to haxef...@googlegroups.com

I got to switch to dev version of haxeflixel and update haxe to 3.2 now it compiles to HTML5. Got to change several things because of the breaking changes.

Envoyé depuis mon mobile / Sent from my cellphone.

--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/x6tOp6ze2Ec/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at https://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/1266328f-fcd8-456e-9e85-8bd47a399804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages