Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nlohmann::detail::parse_error thrown when an extra List is added to a Scratch program #1

Closed
yaxollum opened this issue Jun 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@yaxollum
Copy link
Member

yaxollum commented Jun 2, 2020

In the zip file attached (parse_error_files.zip), there are 4 files: hello2.sb3, hello2.scrape, hello3.sb3, and hello3.scrape.

Both hello2.sb3 and hello3.sb3 are Scratch programs with a simple say("Hello!") statement. The only difference between them is that hello2.sb3 has an extra List called memory. These are the contents of memory:
Screenshot from 2020-06-02 13-16-55

In hello2.scrape, memory is represented like this:

"lists": {"16": [8, "0", "0", -4, -1, 1, 54]}

When I try to run hello2.scrape, I get the following error:

terminate called after throwing an instance of 'nlohmann::detail::type_error'
  what():  [json.exception.type_error.302] type must be string, but is number
Aborted (core dumped)

When I run hello3.scrape, the output is normal:

Hello!
@HillcrestEnigma
Copy link
Member

Seems like a scrapec bug.

@HillcrestEnigma HillcrestEnigma transferred this issue from scraterpreter/scrape Jun 2, 2020
@yaxollum yaxollum added the bug Something isn't working label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants