conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Error: Malformed JSON in a cached Essence Prime model

Open stylpe opened this issue 2 years ago • 3 comments

Got this error, and it seems like there's two things wrong with Conjure's output:

  • /\ and \/ have unescaped backslashes.
  • Conjure actually writes data that doesn't conform to its own schema, see 7th entry in trailRewrites array, the "rule" is an array, but must be a string to be read back in. Manually joining the string with \n resolves the issue, so I would suggest that as a solution.

See https://replit.com/@SuperMikal/Conjure-and-Essence-20220507#feedback/bad-json/stdout and the model in the same folder.

stylpe avatar Jun 20 '22 13:06 stylpe

Would I be right in guessing https://github.com/conjure-cp/conjure/commit/5bbace8a8e2826aa35c33561ebbca2bcf657560c is where I would need to look to contribute a fix for this?

stylpe avatar Jun 29 '22 15:06 stylpe

looks like it, thanks!

ozgurakgun avatar Jun 29 '22 15:06 ozgurakgun

I had some time (finally) to look at this again, and it looks like I forgot some important parameters to actually reproduce the bug in the test, so while the CI might pass now, it's not ready after all :P

stylpe avatar Sep 13 '22 12:09 stylpe