squiggle icon indicating copy to clipboard operation
squiggle copied to clipboard

Hide runtime errors on first edit

Open berekuk opened this issue 3 years ago • 1 comments

Followup to #1172 that I just realized. When the execution caused a runtime error and we highlight it in the code editor, the error location will become invalid after the code is edited.

This is especially important in the autorun=off mode. (which is currently broken, #1236; we should fix that first)

(Btw, even when autorun is enabled, it's better to hide the error immediately; this is a minor detail, but it might matter, for example, if the user replaces the old erroneous code by copy-pasting, and it immediately starts to execute for 30 seconds, while the random position in it from the previous error stays highlighted.)

berekuk avatar Oct 08 '22 21:10 berekuk

Still a problem in v0.10: Screenshot 2025-01-03 at 15 47 18

berekuk avatar Jan 03 '25 18:01 berekuk