I guess this is either an error in syntect (invalid use of regex?) or syntect-assets (supplying a broken language definition?). In either case, I don't know if we can do anything in here. Catching panics does not work well in Wasm. The error should be narrowed down and be reported upstream.
The broken editor state is saved and gets restored on every visit. As a fallback, when loading the page, the state should be wiped, and only be written again after setTimeout(…, 0), when it's know that the state is not broken.
Stack trace:
Struct:
Template:
I guess this is either an error in
syntect
(invalid use of regex?) orsyntect-assets
(supplying a broken language definition?). In either case, I don't know if we can do anything in here. Catching panics does not work well in Wasm. The error should be narrowed down and be reported upstream.The broken editor state is saved and gets restored on every visit. As a fallback, when loading the page, the state should be wiped, and only be written again after
setTimeout(…, 0)
, when it's know that the state is not broken.