forum icon indicating copy to clipboard operation
forum copied to clipboard

[super] create a codeblock at the end of a collapsible cause a freeze

Open saccarosium opened this issue 1 year ago • 0 comments

Describe the bug

[!NOTE] Apparently if you wait the editor will unfreeze. But I didn't find a way to reproduce it consistently

If you create a codeblock at the end of a collapsible and you try to go bellow the the codeblock with the arrow keys or try to press Enter two times the program freezes and doesn't respond. A side effect to this seems to be that the note will be erased even if saved. The note is still there but the contents is gone.

To Reproduce

Steps to reproduce the behavior:

  1. Go to any super note or create a new one
  2. Create a collapsible by either / or the + icon
  3. Type a few words `
  4. Create a codeblock in a way that there is no empty line below it end the end of the codeblock is the end of the collapsible
  5. Ensure syntax highlighting is JavaScript
  6. type exactly:
public class OuterClass {
  public class InnerClass {}
} // <- position cursor here
  1. Try to move arrrow keys up or down or press Enter rapidly.

Expected behavior

Program should let me go under the codeblock and let me write under the codeblock without freezing.

Screencast

[!NOTE] When it shows the cursor I was clicking

Screencast_20250110_131438.webm

Desktop (please complete the following information):

  • OS: Arch Linux
    • uname -a: Linux laptop 6.12.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:26 +0000 x86_64 GNU/Linux
  • Browser: Desktop Client (Likely Electron/Chromium)
  • Version: 3.195.17
  • Packaging: Flatpak (Flathub)

Additional context

Relevant Debug Console Errors

image

saccarosium avatar Jan 10 '25 12:01 saccarosium