Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawable tutorial doesn't compile. #1110

Open
clenhof opened this issue Oct 28, 2022 · 4 comments
Open

Drawable tutorial doesn't compile. #1110

clenhof opened this issue Oct 28, 2022 · 4 comments

Comments

@clenhof
Copy link
Collaborator

clenhof commented Oct 28, 2022

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
Copy link
Contributor

MSGhero commented Oct 28, 2022

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
Copy link

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
Copy link
Contributor

MSGhero commented Nov 19, 2022

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants