Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

Compiling help: JsonParser_0 has no ignoreUnknownVariables

Open marbloxy opened this issue 1 year ago • 4 comments

  • [X] Windows
  • [ ] Mac
  • [ ] Linux
  • [ ] HTML5

I am trying to compile for testing. I haven't changed anything, but I'm getting this error: image

I might have the wrong version of JsonParser, but i have no idea. Anyone got any idea how to fix?

marbloxy avatar May 10 '24 10:05 marbloxy

My guess is that it wasn't installed properly. Perhaps you installed the original Json2Object instead of FunkinCrew's fork? I think you could try running hmm reinstall --force json2object to see if it gets fixed

NotHyper-474 avatar May 10 '24 15:05 NotHyper-474

I tried that, now there is new error appeared: ERROR source/funkin/graphics/shaders/RuntimeCustomBlendShader.hx:14: characters 10-23

14 | this.setBitmapData("sourceSwag", value); | ^^^^^^^^^^^^^ | funkin.graphics.shaders.RuntimeCustomBlendShader has no field setBitmapData

GIDRO32 avatar May 10 '24 17:05 GIDRO32

My guess is that it wasn't installed properly. Perhaps you installed the original Json2Object instead of FunkinCrew's fork? I think you could try running hmm reinstall --force json2object to see if it gets fixed

that fixed that problem, but now i have these 3

C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:229: characters 42-43

229 | caseValue = { expr: EConst(CString(${field.name})), pos: Context.currentPos()}; | ^ | Reification $ is not allowed outside of macro expression

ERROR C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:263: characters 40-54

263 | initializator = { expr: EObjectDecl(anonBaseValues), pos: Context.currentPos() }; | ^^^^^^^^^^^^^^ | error: { field : String, expr : haxe.macro.Expr } has no field quotes | have: Array<{ field, expr }> | want: Array<haxe.macro.ObjectField>

ERROR C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:402: characters 94-96

402 | internObjectCases.push({ expr: lil_expr, guard: null, values: [{ expr: EConst(CString($v{n})), pos: Context.currentPos()}] }); | ^^ | Reification $v is not allowed outside of macro expression

ERROR source/funkin/data/song/SongRegistry.hx:137: characters 18-60

137 | var parser = new json2object.JsonParser<SongMetadata>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Unknown<0> cannot be constructed

marbloxy avatar May 10 '24 17:05 marbloxy

duplicate of #2305

moxie-coder avatar May 10 '24 17:05 moxie-coder

Duplicate of #2305 + Please follow the compilation guide next time.

AbnormalPoof avatar Oct 09 '24 13:10 AbnormalPoof