Errors trying to compile to Flash

42 views
Skip to first unread message

Ariel Cid

unread,
Dec 20, 2015, 12:45:22 PM12/20/15
to HaxeFlixel
Hi there!

I updated all my libraries using haxelib upgrade, and next thing, all my projects can't seem to compile to Flash.

Here's the error output:

C:/openfl/lime/2,8,2/lime/Assets.hx:1178: characters 71-75 : Array<{ type : haxe.macro.ComplexType, opt : Bool, name : String }> should be Array<haxe.macro.FunctionArg>
C:/openfl/lime/2,8,2/lime/Assets.hx:1178: characters 71-75 : Type parameters are invariant
C:/openfl/lime/2,8,2/lime/Assets.hx:1178: characters 71-75 : { type : haxe.macro.ComplexType, opt : Bool, name : String } should be haxe.macro.FunctionArg
C:/openfl/lime/2,8,2/lime/Assets.hx:1178: 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:/openfl/lime/2,8,2/lime/Assets.hx:1178: characters 71-75 : { type : haxe.macro.ComplexType, opt : Bool, name : String } has no field value
C:/openfl/lime/2,8,2/lime/text/Font.hx:25: characters 2-11 : Build failure


Thanks in advance!

Gama11

unread,
Dec 20, 2015, 3:05:44 PM12/20/15
to HaxeFlixel
Are you using Haxe 3.2 or higher? (haxe -version)

Ariel Cid

unread,
Dec 20, 2015, 8:18:07 PM12/20/15
to HaxeFlixel
I wasn't, but I installed the new version manually and the same thing is happening.

Gama11

unread,
Dec 21, 2015, 5:12:22 AM12/21/15
to HaxeFlixel
What are your Flixel and OpenFL versions?

The code that causes the error is the macro responsible for @:file embeds... Are you using @:file metadata anywhere?

Ariel Cid

unread,
Dec 21, 2015, 5:09:07 PM12/21/15
to HaxeFlixel
Flixel is 3.3.12
OpenFL is 3.5.3

The only thing similar to that could be this line:

@:isVar private var weapon(get, null):BrawlAttack;

Gama11

unread,
Dec 21, 2015, 5:11:06 PM12/21/15
to HaxeFlixel
@:isVar isn't related to this.

Is this issue specific to your project / can you compile projects from flixel-demos? What about projects from openfl-samples?

Ariel Cid

unread,
Dec 21, 2015, 6:41:14 PM12/21/15
to HaxeFlixel
It happens the same way to:
  • every project I already had
  • every flixel-demos
  • every openfl-samples

Gama11

unread,
Dec 22, 2015, 3:50:57 AM12/22/15
to haxef...@googlegroups.com
I just downgraded to Haxe 3.1.3 - compiling with that, I get the same errors you are getting. That probably means that something went wrong when you tried to upgrade your Haxe version, as the version being used for compilation is still 3.1.3.

Are you on Windows? If so, did you use the installer?

Albert Gallego Garcia

unread,
Dec 22, 2015, 4:15:00 AM12/22/15
to HaxeFlixel
I'm having same errors :(

Gama11

unread,
Dec 22, 2015, 4:15:56 AM12/22/15
to HaxeFlixel
Well, what version of Haxe are you on?

Albert Gallego Garcia

unread,
Dec 22, 2015, 4:18:59 AM12/22/15
to HaxeFlixel
Now I'm in 3.1.3

Gama11

unread,
Dec 22, 2015, 4:33:22 AM12/22/15
to haxef...@googlegroups.com
Like I said, you need at least 3.2.0. OpenFL 3.5 / Lime 2.8 broke compatibility with earlier versions.

Ariel Cid

unread,
Dec 22, 2015, 8:08:27 PM12/22/15
to HaxeFlixel
Yes, I'm in windows I used the installer from the official site, and it says I'm now on version 3.2.1...
Reply all
Reply to author
Forward
0 new messages