Skip to content

JsonParser_4 does not have a constructor  #96

Description

@kralle333

I keep running into this issue where I cant build my haxe heaps project because of this error:
image

I can get rid of the error by restarting the build server, but i have the feeling like it might be easy to fix.
I mainly see it every time my program crashes

Im on linux (endeavouros)

Activity

  1. changed the title [-]jsonparser_4 does not have a constructor [/-] [+]JsonParser_4 does not have a constructor [/+] on May 11, 2024
  2. kLabz commented on May 11, 2024

    @kLabz
    Contributor

    What version of Haxe are you using?

  3. kralle333 commented on May 12, 2024

    @kralle333
    Author

    After updating to latest json2object 3.11 and haxe 4.3.4, I no longer see that particular issue, but instead I get this error.
    image

    Again, restarting the haxe build server solves the issue.

  4. kralle333 commented on May 12, 2024

    @kralle333
    Author

    Another one:
    image

  5. elnabo commented on May 22, 2024

    @elnabo
    Owner

    From my understanding of #74, the redefinition is a problem with the compilation server, but I don't have knowledge of a fix.

    On the other hand "Missing function body" seems to be a bug from the hl compilation

  6. olichose123 commented on Mar 13, 2025

    @olichose123

    I wrote this in #74:

    Ok, I started getting something similar with haxe 4.3.6 and json2object 3.11.0, and REMOVING @:persistent fixed the problem. It's possible that a change in the compilation server fixed the bug and persisting values brought another one?

    So a quick fix is to remove @:persistent from json2object.reader.DataBuilder.hx and json2object.writer.DataBuilder.hx.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions