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

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

Open
Sennoma-Nn opened this issue Dec 2, 2024 · 5 comments

Comments

@Sennoma-Nn
Copy link

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

@SharkPool-SP
Copy link

where did these new blocks come from?

@Sennoma-Nn
Copy link
Author

where did these new blocks come from?

You say these extensions?

@SharkPool-SP
Copy link

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

@Sennoma-Nn
Copy link
Author

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

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

@SharkPool-SP
Copy link

wait nvm, idk why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants