You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Haxe 5.0.0-preview.1: ZipDictionaryChecksums and CppiaNullDynamicArray don't build #435
The "haxe 5 preview" workflow fails its core job on Linux, macOS and Windows, on main and on every PR, because two regression tests don't build with Haxe 5.0.0-preview.1 (304 of 306 pass). The main workflow, on Haxe 4.3.7, is not affected.
Main.hx:24: characters 47-51
24 | return @:privateAccess #if (haxe_ver >= 5) c.impl #else c.s #end;
| haxe.zip.Compress has no field impl
and the same for Uncompress at line 27. Since a7da30b the test reads the stream handle from impl on Haxe 5, which is what Haxe's development branch calls it, but 5.0.0-preview.1's std/cpp/_std/haxe/zip/Compress.hx still has var s:Dynamic. haxe_ver >= 5 can't tell the two apart, so the test needs a way to find the handle that doesn't depend on the version.
The host section builds. The script section, compiled with -D dll_import=bin/host_classes.info, stops with:
/opt/hostedtoolcache/haxe/5.0.0-preview.1/x64/std/haxe/macro/Expr.hx:1051: characters 7-12
1051 | class Error extends Exception {
| Could not patch constructor on this function because there isn't one
CppiaJitThrowNull and CppiaArrayAccess are built the same way, host first with --dce no and dll_export/dll_import, and they build on Haxe 5. The only difference between their build.hxml files and this one is -D HXCPP_CHECK_POINTER on the host. Not checked yet whether that is what puts haxe.macro.Error in the host's class list.
Next
Make ZipDictionaryChecksums find the handle on both, and find why the cppia script can't be compiled against this host's class list on Haxe 5.
Activity