[SOLVED] New Mac Install: Compilation Failure

Hey folks, I think there may be an issue in latest build on Mac. Here is the error message:

openfl build project.xml html5

/usr/lib/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>
/usr/lib/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : Type parameters are invariant
/usr/lib/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
/usr/lib/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 }
/usr/lib/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
/usr/lib/haxe/lib/lime/2,8,3/lime/text/Font.hx:25: characters 2-11 : Build failure

And here are my system details:

Lime Command-Line Tools (2.8.3)
OpenFL Command-Line Tools (3.5.3-LQCE4x)

OSX Yosemite
Version 10.10.5

It looks like I am using the latest version of Lime
2.8.3 https://github.com/openfl/lime

as well as openfl
3.5.3 https://github.com/openfl/openfl

Try installing new openfl-samples, create new sample and then try compile it.

Hey Retard (no offense!),

It looks like I already had the samples installed. I instantiated a folder with PiratePig and tried building it. This is what I saw:

openfl build PiratePig/ html5
/usr/lib/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>
/usr/lib/haxe/lib/lime/2,8,3/lime/Assets.hx:1182: characters 71-75 : Type parameters are invariant
/usr/lib/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
/usr/lib/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 }
/usr/lib/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
/usr/lib/haxe/lib/lime/2,8,3/lime/text/Font.hx:25: characters 2-11 : Build failure

Hi! :slight_smile:
Do You have latest haxe 3.2.1?
I got such errors when I used old Haxe with new openfl/lime samples, or vice versa.

1 Like

Ooooo, I’m on Haxe Compiler 3.1.3 - ©2005-2014 Haxe Foundation

one sec…

Upgrading Haxe worked, thanks so much!

One word of caution for the next person who stumbles on this issue, I manually removed the haxelib alias for Haxe after reinstalling since it no longer worked.

1 Like

Great it worked!
Best regard, Ret!