Skip to content

Haxe 5.0.0-preview.1: ZipDictionaryChecksums and CppiaNullDynamicArray don't build #435

Open

Description

@dimensionscape

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.

Run: https://github.com/openfl/libhxcpp/actions/runs/43136475657/job/130913029400 (cc982d9, the head of #425)

ZipDictionaryChecksums

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.

CppiaNullDynamicArray (new with #425)

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

  1. added
    haxe 5Only affects Haxe 5 (API level 500); fixable here, needs Haxe 5 to test
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    haxe 5Only affects Haxe 5 (API level 500); fixable here, needs Haxe 5 to test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions