json2object icon indicating copy to clipboard operation
json2object copied to clipboard

JsonParser_4 does not have a constructor

Open kralle333 opened this issue 1 year ago • 4 comments

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)

kralle333 avatar May 11 '24 15:05 kralle333

What version of Haxe are you using?

kLabz avatar May 11 '24 16:05 kLabz

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.

kralle333 avatar May 12 '24 12:05 kralle333

Another one: image

kralle333 avatar May 12 '24 12:05 kralle333

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

elnabo avatar May 22 '24 10:05 elnabo

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.

olichose123 avatar Mar 13 '25 04:03 olichose123