nape icon indicating copy to clipboard operation
nape copied to clipboard

Update property declaration syntax for Haxe 4 compatibility

Open Gama11 opened this issue 7 years ago • 5 comments

see HaxeFoundation/haxe#4699 - Haxe 4 removes support for the old Haxe 2 style property syntax, so trying to compile Nape with it leads to a bunch of errors:

C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/geom/Vec2.hx:641: characters 2-50 : length: Custom property accessor is no longer supported, please use set
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/geom/Vec2.hx:921: characters 2-47 : angle: Custom property accessor is no longer supported, please use get
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/geom/Vec2.hx:921: characters 2-47 : angle: Custom property accessor is no longer supported, please use set
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/dynamics/ArbiterList.hx:248: characters 2-43 : length: Custom property accessor is no longer supported, please use get
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/geom/Vec2List.hx:248: characters 2-43 : length: Custom property accessor is no longer supported, please use get
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/constraint/Constraint.hx:197: characters 2-60 : userData: Custom property accessor is no longer supported, please use get
C:/HaxeToolkit/haxe/lib/nape/2,0,20/nape/constraint/Constraint.hx:224: characters 2-65 : compound: Custom property accessor is no longer supported, please use get

@deltaluca If you want to make a release right away, here's a .zip with an updated haxelib.json and rebuilt sources: 2,0,21.zip

Gama11 avatar Sep 09 '18 12:09 Gama11

Cheers Jens, we're also using Nape here at Shiro 👍

trethaller avatar Sep 10 '18 09:09 trethaller

Would be great to have this deployed to haxelib!

peteshand avatar Jan 10 '19 03:01 peteshand

+1 For getting this on Haxelib

TomByrne avatar Jan 14 '19 00:01 TomByrne

Since there's quite a few signs that Luca is no longer interested in maintaining Nape (no responses to issues, PRs or emails, the domain has expired...), I've created a fork and pushed it it to Haxelib.

  • https://github.com/HaxeFlixel/nape-haxe4
  • https://lib.haxe.org/p/nape-haxe4/

So to get a Haxe 4 compatible version, you just have to replace the library name in your .hxml / project.xml with nape-haxe4 and run haxelib install nape-haxe4.

Gama11 avatar May 01 '19 21:05 Gama11

nice one @Gama11

peteshand avatar May 01 '19 23:05 peteshand