scratch-vm icon indicating copy to clipboard operation
scratch-vm copied to clipboard

Parsing Errors or Crashes When Entering Certain Control Characters in Parameters or Comments

Open Sennoma-Nn opened this issue 1 year ago • 5 comments

Expected Behavior

Entering control characters like the ESC character in parameters or comments should not cause any issues.

Actual Behavior

Entering control characters like the ESC character in parameters or comments causes parsing errors or even crashes the editor. I wrote some code containing the ESC control character (rendered as a left arrow in the interface). DACF46EB0B942A64B8CB4BF39CEE7A54

After navigating to the Costumes tab and returning to the code tab, the following error appeared: cab1c9551bfc0b746c8511aacb7da5dd

Upon saving the project as an .sb3 file and reloading it, I found that the code following the ESC character had disappeared: image

In my tests, I inserted text containing the ESC character in comments and parameters, which revealed the following issues, although I was unable to reproduce the crash: https://github.com/user-attachments/assets/fb266bb7-0425-4d1f-ae04-5730b615d1ef

Steps to Reproduce

  1. Open the TurboWarp editor.
  2. Enter the ESC character in a parameter.
  3. Observe that the parameter text disappears, and the code following that block disappears.

Operating System and Browser

Operating System: Linux
Browser: Chromium

Sennoma-Nn avatar Dec 02 '24 19:12 Sennoma-Nn

where did these new blocks come from?

SharkPool-SP avatar Dec 03 '24 07:12 SharkPool-SP

where did these new blocks come from?

You say these extensions?

Sennoma-Nn avatar Dec 04 '24 13:12 Sennoma-Nn

Yeah. Cuz I don't see it in the block palette

SharkPool-SP avatar Dec 04 '24 15:12 SharkPool-SP

Yeah. Cuz I don't see it in the block palette

https://github.com/NOname-awa/Scr_ext/tree/main/extensions/Stable-Release

Sennoma-Nn avatar Dec 04 '24 15:12 Sennoma-Nn

wait nvm, idk why

SharkPool-SP avatar Dec 06 '24 22:12 SharkPool-SP