Skip to content

Instantly share code, notes, and snippets.

@crowlKats
Created December 22, 2023 15:14
Show Gist options
  • Save crowlKats/5cb513ae98e3b7f4bd16bb23a3e8c753 to your computer and use it in GitHub Desktop.
Save crowlKats/5cb513ae98e3b7f4bd16bb23a3e8c753 to your computer and use it in GitHub Desktop.
thread 'main' panicked at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/regex.rs:69:53:
regex string should be pre-tested: CompileError(LookBehindNotConst)
stack backtrace:
0: rust_begin_unwind
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
1: core::panicking::panic_fmt
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
2: core::result::unwrap_failed
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/result.rs:1652:5
3: core::result::Result<T,E>::expect
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/result.rs:1034:23
4: syntect::parsing::regex::Regex::regex::{{closure}}
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/regex.rs:69:13
5: once_cell::sync::OnceCell<T>::get_or_init::{{closure}}
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1122:57
6: once_cell::imp::OnceCell<T>::initialize::{{closure}}
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:72:23
7: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:294:13
8: once_cell::imp::initialize_or_wait
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:196:20
9: once_cell::imp::OnceCell<T>::initialize
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:68:9
10: once_cell::sync::OnceCell<T>::get_or_try_init
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1163:13
11: once_cell::sync::OnceCell<T>::get_or_init
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1122:19
12: syntect::parsing::regex::Regex::regex
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/regex.rs:68:9
13: syntect::parsing::regex::Regex::search
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/regex.rs:63:9
14: syntect::parsing::parser::ParseState::search
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/parser.rs:449:31
15: syntect::parsing::parser::ParseState::find_best_match
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/parser.rs:374:45
16: syntect::parsing::parser::ParseState::parse_next_token
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/parser.rs:274:26
17: syntect::parsing::parser::ParseState::parse_line
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/parsing/parser.rs:240:15
18: syntect::easy::HighlightLines::highlight_line
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syntect-5.1.0/src/easy.rs:68:19
19: deno_doc::html::syntect_adapter::SyntectAdapter::highlight_html
at ./src/html/syntect_adapter.rs:39:21
20: <deno_doc::html::syntect_adapter::SyntectAdapter as comrak::adapters::SyntaxHighlighterAdapter>::write_highlighted
at ./src/html/syntect_adapter.rs:75:11
21: comrak::html::HtmlFormatter::format_node
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/comrak-0.20.0/src/html.rs:640:29
22: comrak::html::HtmlFormatter::format
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/comrak-0.20.0/src/html.rs:425:25
23: comrak::html::format_document_with_plugins
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/comrak-0.20.0/src/html.rs:39:5
24: comrak::markdown_to_html_with_plugins
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/comrak-0.20.0/src/lib.rs:138:5
25: deno_doc::html::jsdoc::render_markdown_inner
at ./src/html/jsdoc.rs:115:14
26: deno_doc::html::jsdoc::render_markdown
at ./src/html/jsdoc.rs:132:3
27: deno_doc::html::jsdoc::ModuleDocCtx::new::{{closure}}
at ./src/html/jsdoc.rs:293:31
28: core::option::Option<T>::map
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/option.rs:1075:29
29: deno_doc::html::jsdoc::ModuleDocCtx::new
at ./src/html/jsdoc.rs:290:7
30: deno_doc::html::pages::render_index
at ./src/html/pages.rs:104:5
31: deno_doc::html::generate
at ./src/html/mod.rs:315:17
32: ddoc::generate_docs_directory
at ./examples/ddoc/main.rs:199:14
33: ddoc::run::{{closure}}
at ./examples/ddoc/main.rs:138:5
34: ddoc::main::{{closure}}
at ./examples/ddoc/main.rs:165:29
35: futures_executor::local_pool::block_on::{{closure}}
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-executor-0.3.29/src/local_pool.rs:317:23
36: futures_executor::local_pool::run_executor::{{closure}}
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-executor-0.3.29/src/local_pool.rs:90:37
37: std::thread::local::LocalKey<T>::try_with
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/local.rs:270:16
38: std::thread::local::LocalKey<T>::with
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/thread/local.rs:246:9
39: futures_executor::local_pool::run_executor
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-executor-0.3.29/src/local_pool.rs:86:5
40: futures_executor::local_pool::block_on
at /Users/crowlkats/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-executor-0.3.29/src/local_pool.rs:317:5
41: ddoc::main
at ./examples/ddoc/main.rs:171:3
42: core::ops::function::FnOnce::call_once
at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment