You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Stack trace:
Struct:
"#[derive(Template)]\n#[template(ext = \"html\")]\n// in the preview, the `source=\"…\"` or `path=\"…\"` argument is provided for you\n struct PageLayout<'a> {\n static_root_path: String,\n page: &'a Page<'a>,\n layout: &'a Layout,\n files: &'static StaticFiles,\n themes: Vec<String>,\n sidebar: String,\n content: String,\n rust_channel: &'static str,\n pub(crate) rustdoc_version: &'a str,\n display_krate: &'a str,\n display_krate_with_trailing_slash: String,\n display_krate_version_number: &'a str,\n display_krate_version_extra: &'a str,\n }"
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.The text was updated successfully, but these errors were encountered: