Discuss Scratch

theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

If “\b” is found anywhere in a project (except for the name of the project), then Scratch cannot save or load the project.
It will only not save if you use a backslash and a lowercase b.
This glitch works in both the online and offline editor.

Try it for yourself. Create a new project, put \b inside the code, and you will not be able to save the project.

Example

This problem is in Scratch 3, but not in Scratch 2

I made a lot of progress on a project, but then since it wouldn't save, I downloaded it. I didn't know about this glitch beforehand, and now I can't load it back into Scratch because one of the items in a list contains \b.

Last edited by theanonymousweirdo (Feb. 10, 2021 04:17:27)

SaltyTree
Scratcher
100+ posts

Scratch 3 cannot load any projects that contain "\b"

(deleted because it was moved)

Last edited by SaltyTree (Feb. 6, 2021 20:30:14)

cs928293
Scratcher
9 posts

Scratch 3 cannot load any projects that contain "\b"

I don't think you can have / or \ in your project name
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

cs928293 wrote:

I don't think you can have / or \ in your project name
You are able to have them in the project name. https://scratch-mit-edu.ezproxyberklee.flo.org/projects/484475531/

Last edited by theanonymousweirdo (Feb. 8, 2021 19:11:09)

theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

Bump

Last edited by theanonymousweirdo (Feb. 8, 2021 15:15:19)

Scratchperson1000000
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

yep, i tried it myself and it couldnt save
when green flag clicked
\b
define \b
and it wasn't able to save
Scratchperson1000000
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

it's because Scratch can't identify those symbols
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

What do you mean?
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

The project doesn't load on TurboWarp either.
HacksonJackson
Scratcher
100+ posts

Scratch 3 cannot load any projects that contain "\b"

Can reproduce
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

I just did some more testing on this bug, and it also affects projects where any names of sounds, costumes, variables, lists, sprites, or backgrounds contain \b

Last edited by theanonymousweirdo (Feb. 10, 2021 04:18:13)

theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

I went into the console, and when I tried to save a project with \b, it came up with two errors which you can find here: https://turbowarp.org/485867178
PkmnQ
Scratcher
1000+ posts

Scratch 3 cannot load any projects that contain "\b"

I searched up \b and it apparently means backspace. Could also mean word boundary in regex, but it's probably just backspace.
EpicGhoul993
Scratcher
1000+ posts

Scratch 3 cannot load any projects that contain "\b"

Can replicate.
If this gets fixed, maybe we'll have a brand new backspace detection. :]
HacksonJackson
Scratcher
100+ posts

Scratch 3 cannot load any projects that contain "\b"

I went into the console and found out that https://mv-ezproxy-com.ezproxyberklee.flo.org/484521347 gave a 500 error when trying to put the project there
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

Bump
Herbin12
Scratcher
100+ posts

Scratch 3 cannot load any projects that contain "\b"

This is a really unfixable issue, because in Javascript, using a \ followed by a symbol indicates an escape code, for example “\n” means new line. This is probably just a random escape code that Javascript doesn't like, therefore Scratch doesn't wanna save.

Hope this helps!

EDIT:

The code “\b” is a RegExp code for “find sequence in a string.”
Read more about it here: https://www.w3schools.com/jsref/jsref_regexp_begin.asp

Last edited by Herbin12 (Feb. 11, 2021 00:52:26)

-InsanityGames-
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

I've listed it as a common issue in my directory:
My project won't save/load
This can be caused by:
·Slow internet connection - download it
·A large file exceeding the file limit (10MB) - Delete or compress the file
·Switching accounts in a seperate tab - Open a new tab and switch back
·Having “\b” anywhere in your project, as it messes up the JavaScript engine.
theanonymousweirdo
Scratcher
500+ posts

Scratch 3 cannot load any projects that contain "\b"

Herbin12 wrote:

This is a really unfixable issue, because in Javascript, using a \ followed by a symbol indicates an escape code, for example “\n” means new line. This is probably just a random escape code that Javascript doesn't like, therefore Scratch doesn't wanna save.

Hope this helps!

EDIT:

The code “\b” is a RegExp code for “find sequence in a string.”
Read more about it here: https://www.w3schools.com/jsref/jsref_regexp_begin.asp
Thank you

Powered by DjangoBB