HeapsIO / heaps

Heaps : Haxe Game Framework
http://heaps.io
MIT License
3.19k stars 337 forks source link

Drawable tutorial doesn't compile. #1110

Open clenhof opened 1 year ago

clenhof commented 1 year ago

When following the tutorials at https://heaps.io/documentation, up to the drawable section https://heaps.io/documentation/drawable.html, the sample won't compile.

The error says : hxd.earcut.Earcut is missing field triangulate_h2d_GPoint

This can be solved by adding this define flag in compile.hxml: -D domkit-heaps

I guess we have either to update the documentation or preferably modify the code, so Earcut doesn"t depend on Domkit Define flag.

MSGhero commented 1 year ago

I would get this same error, but I "fixed" it by refreshing the compile cache. I don't use DOM at all, and idk what Earcut even is.

marcelEuchnerMartinez commented 1 year ago

I have this error, too, and frequently. I commented the line out where the error came from, but sure this is a (very) poor way of dealing with this issue

MSGhero commented 1 year ago

This is a weird one where I'll get the error in a new project, and then do some combination of restarting VScode, refreshing the compile cache, and reinstalling the same version of heaps to get it working.

Commenting out lines or adding defines has never been necessary after a few attempts.

trethaller commented 1 year ago

Maybe something that could be useful for compiler cache debugging @Simn ?