I can't save my code. I get a weird message when I try

Whenever I try to save my project, it says the following:

Serialization of program data failed: Error: Expected "=" after attribute name

What does this mean and how can I fix it?

If you try exporting your project directly to your computer - what happens then?

When I try to import the project back in, I get the same message.

Hi, welcome to the forum, sorry you're having this problem!

A few questions:

  1. OS, browser, browser version, Snap! version? (in the "About" box you get by clicking on the Snap! logo)
  2. What libraries have you included in your project?
  3. Have you previously edited the project's XML, or clicked on "JavaScript extensions" in the options menu?
  4. Try dragging all your custom blocks into the scripting area, then right-click the scripting area background and choose "scripts pic" from the menu. If that works, drag the resulting file into the scripting area of a fresh copy of Snap! and see if you can save that project.

Lol, that's not a question!


I remember this same error happening a lot around the time of This Morning's Cloud Saving & Loading Issues, could this be happening once more?

  1. Snap 10.4.6
  2. What's a library?
  3. No
  4. When I tried that, it only saved the sprite who's script I dragged them into. Should I put them in all the sprites and try that?

libraries are collections of code functions. (or blocks in the case of Snap!) in Snap!, they can be found in File > Libraries...

Maybe; with luck you can then reconstruct your project in a fresh copy of Snap!. Or else one of the sprites will fail and you can figure out what's different about it. :~)

Thanks