unreal.hx
unreal.hx copied to clipboard
[4.19] Cppia bad link
In my tests I'm getting this error when I use haxe.Json package.
var obj = { content: "asd" };
haxe.Json.stringify(obj);
If "haxe.Json.stringify(obj);" is commented, the change works fine.
Have you tried latest? The commit https://github.com/proletariatgames/unreal.hx/commit/1818dedf39cd4703b7a4b34f8fa27256a7e8408d should have taken care of that
Yes, tested now with development branch.
Uhm I think I have an idea of what might be causing this. In the meantime, you can work around it by either:
- Creating an
Imports.hx
file in your Static directory, which cointainsimport haxe.Json;
in it - Deleting your Intermediate/Haxe directory and building it again
Can you let me know if either of these fix it? I think what happened is that when cppia is building, it thinks that haxe.Json can exist only in cppia code and does not check if it was previously built in C++ - thus not requesting a hxcpp compilation
Oh man, you are the guy! It's working!
Thanks!
😃 I'm going to reopen this because I think we should detect if a cpp.* / haxe.* is being used in cppia but not compiled in hxcpp
It's ok! 😄