openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
749 stars 359 forks source link

Compilation error #1785

Closed Joalor64GH closed 1 month ago

Joalor64GH commented 1 month ago

I keep getting this error while compiling. What do I do?

ERROR  D:\a\Joalor64-Engine-Rewrite\Joalor64-Engine-Rewrite\.haxelib\lime\8,1,2/src/lime/_internal/macros/AssetsMacro.hx:36: characters 32-39

 36 |    : macro super(bytes.length, bytes.b);
    |                                ^^^^^^^
    | Too many arguments

 ERROR  D:\a\Joalor64-Engine-Rewrite\Joalor64-Engine-Rewrite\.haxelib\lime\8,1,2/src/lime/_internal/macros/AssetsMacro.hx:41: lines 41-44

 41 |    {
 42 |     var bytes = haxe.Resource.getBytes(resourceName);
 43 |     $superCall;
 44 |    }
    |
    | Missing super constructor call
player-03 commented 1 month ago

If anyone else runs into this error, try updating to Lime 8.1.2 or newer.