Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Errors on using texlab for LSP #409

Closed
bottine opened this issue Jul 3, 2021 · 8 comments
Closed

Errors on using texlab for LSP #409

bottine opened this issue Jul 3, 2021 · 8 comments
Labels
A-language-server Area: Language server client C-bug Category: This is a bug

Comments

@bottine
Copy link

bottine commented Jul 3, 2021

With texlab available in $PATH, and languages.toml containing the snippet

[[language]]
name = "latex"
scope = "source.tex"
injection-regex = "tex"
file-types = ["tex"]
roots = []

indent = { tab-width = 4, unit = "\t" }
language-server = { command = "texlab" }

I seemed to have gotten LSP working (yellow dot warning me of some latex issue), but this didn't stay, and now I get the following in the log

2021-07-03T16:26:47.621 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 37', src/line_index.rs:117:9

2021-07-03T16:26:47.621 helix_lsp::transport [ERROR] err <- note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

2021-07-03T16:26:50.098 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 37', src/line_index.rs:117:9

2021-07-03T16:26:51.391 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 37', src/line_index.rs:117:9

2021-07-03T16:26:51.788 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 37', src/line_index.rs:117:9

I don't know if the problem lies with texlab or helix.
Thanks!


With RUST_BACKTRACE=1:

2021-07-04T08:52:09.679 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 62', src/line_index.rs:117:9

2021-07-04T08:52:09.685 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-    0: rust_begin_unwind

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-    1: core::panicking::panic_fmt

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-    2: core::panicking::panic_bounds_check

2021-07-04T08:52:09.737 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:52:09.738 helix_lsp::transport [ERROR] err <-    3: texlab::features::completion::complete

2021-07-04T08:52:09.738 helix_lsp::transport [ERROR] err <-    4: <F as threadpool::FnBox>::call_box

2021-07-04T08:52:09.739 helix_lsp::transport [ERROR] err <- note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 62', src/line_index.rs:117:9

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-    0: rust_begin_unwind

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-    1: core::panicking::panic_fmt

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-    2: core::panicking::panic_bounds_check

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-    3: texlab::features::completion::complete

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <-    4: <F as threadpool::FnBox>::call_box

2021-07-04T08:52:12.715 helix_lsp::transport [ERROR] err <- note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

2021-07-04T08:52:33.599 helix_lsp::transport [ERROR] err <- thread 'thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 63<unnamed>', ' panicked at 'src/line_index.rsindex out of bounds: the len is 1 but the index is 63', :src/line_index.rs117::117:99

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <- 

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    0: rust_begin_unwind

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    1: core::panicking::panic_fmt

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    2: core::panicking::panic_bounds_check

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    3: texlab::features::completion::complete

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    4: <F as threadpool::FnBox>::call_box

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <- note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    0: rust_begin_unwind

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    1: core::panicking::panic_fmt

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    2: core::panicking::panic_bounds_check

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    3: texlab::features::completion::complete

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <-    4: <F as threadpool::FnBox>::call_box

2021-07-04T08:52:33.600 helix_lsp::transport [ERROR] err <- note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

With RUST_BACKTRACE=full

2021-07-04T08:55:50.127 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 7', src/line_index.rs:117:9

2021-07-04T08:55:50.128 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-    0:     0x563d342f51b0 - std::backtrace_rs::backtrace::libunwind::trace::h63b7a90188ab5fb3

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-    1:     0x563d342f51b0 - std::backtrace_rs::backtrace::trace_unsynchronized::h80aefbf9b851eca7

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-    2:     0x563d342f51b0 - std::sys_common::backtrace::_print_fmt::hbef05ae4237a4d72

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:67:5

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-    3:     0x563d342f51b0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h28abce2fdb9884c2

2021-07-04T08:55:50.137 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:46:22

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-    4:     0x563d3412d06f - core::fmt::write::h3b84512577ca38a8

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/fmt/mod.rs:1092:17

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-    5:     0x563d342f4a91 - std::io::Write::write_fmt::h465f8feea02e2aa1

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/mod.rs:1572:15

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-    6:     0x563d342f4435 - std::sys_common::backtrace::_print::h525280ee0d29bdde

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:49:5

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-    7:     0x563d342f4435 - std::sys_common::backtrace::print::h1f0f5b9f3ef8fb78

2021-07-04T08:55:50.138 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:36:9

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-    8:     0x563d342f4435 - std::panicking::default_hook::{{closure}}::ha5838f6faa4a5a8f

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:208:50

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-    9:     0x563d342f37fa - std::panicking::default_hook::hfb9fe98acb0dcb3b

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:225:9

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-   10:     0x563d342f37fa - std::panicking::rust_panic_with_hook::hb89f5f19036e6af8

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:591:17

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-   11:     0x563d34311418 - std::panicking::begin_panic_handler::{{closure}}::h119e7951427f41da

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:497:13

2021-07-04T08:55:50.139 helix_lsp::transport [ERROR] err <-   12:     0x563d3431138c - std::sys_common::backtrace::__rust_end_short_backtrace::hce386c44bf47a128

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:141:18

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   13:     0x563d3431133d - rust_begin_unwind

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   14:     0x563d33e7bc40 - core::panicking::panic_fmt::h2242888e8769cd33

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   15:     0x563d33e7bc01 - core::panicking::panic_bounds_check::hd3a5ad32cddc7d96

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   16:     0x563d34384d10 - texlab::features::completion::complete::he22ec78e492c79e4

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   17:     0x563d34416160 - <F as threadpool::FnBox>::call_box::hdbe14813c967b8c8

2021-07-04T08:55:50.140 helix_lsp::transport [ERROR] err <-   18:     0x563d344b74da - std::sys_common::backtrace::__rust_begin_short_backtrace::h7d24222b377ef10d

2021-07-04T08:55:50.147 helix_lsp::transport [ERROR] err <-   19:     0x563d344b858c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c6b63368b7446e4

2021-07-04T08:55:50.147 helix_lsp::transport [ERROR] err <-   20:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc444a77f8dd8d825

2021-07-04T08:55:50.147 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:50.147 helix_lsp::transport [ERROR] err <-   21:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8b68a0a9a2093dfc

2021-07-04T08:55:50.147 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:50.148 helix_lsp::transport [ERROR] err <-   22:     0x563d34322e3a - std::sys::unix::thread::Thread::new::thread_start::hb95464447f61f48d

2021-07-04T08:55:50.148 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys/unix/thread.rs:71:17

2021-07-04T08:55:50.148 helix_lsp::transport [ERROR] err <-   23:     0x7ff60737f299 - <unknown>

2021-07-04T08:55:50.148 helix_lsp::transport [ERROR] err <-   24:     0x7ff60715c353 - <unknown>

2021-07-04T08:55:50.148 helix_lsp::transport [ERROR] err <-   25:                0x0 - <unknown>

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 7', src/line_index.rs:117:9

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <-    0:     0x563d342f51b0 - std::backtrace_rs::backtrace::libunwind::trace::h63b7a90188ab5fb3

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <-    1:     0x563d342f51b0 - std::backtrace_rs::backtrace::trace_unsynchronized::h80aefbf9b851eca7

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5

2021-07-04T08:55:52.796 helix_lsp::transport [ERROR] err <-    2:     0x563d342f51b0 - std::sys_common::backtrace::_print_fmt::hbef05ae4237a4d72

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:67:5

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    3:     0x563d342f51b0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h28abce2fdb9884c2

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:46:22

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    4:     0x563d3412d06f - core::fmt::write::h3b84512577ca38a8

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/fmt/mod.rs:1092:17

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    5:     0x563d342f4a91 - std::io::Write::write_fmt::h465f8feea02e2aa1

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/mod.rs:1572:15

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    6:     0x563d342f4435 - std::sys_common::backtrace::_print::h525280ee0d29bdde

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:49:5

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    7:     0x563d342f4435 - std::sys_common::backtrace::print::h1f0f5b9f3ef8fb78

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:36:9

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-    8:     0x563d342f4435 - std::panicking::default_hook::{{closure}}::ha5838f6faa4a5a8f

2021-07-04T08:55:52.797 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:208:50

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-    9:     0x563d342f37fa - std::panicking::default_hook::hfb9fe98acb0dcb3b

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:225:9

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   10:     0x563d342f37fa - std::panicking::rust_panic_with_hook::hb89f5f19036e6af8

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:591:17

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   11:     0x563d34311418 - std::panicking::begin_panic_handler::{{closure}}::h119e7951427f41da

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:497:13

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   12:     0x563d3431138c - std::sys_common::backtrace::__rust_end_short_backtrace::hce386c44bf47a128

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:141:18

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   13:     0x563d3431133d - rust_begin_unwind

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   14:     0x563d33e7bc40 - core::panicking::panic_fmt::h2242888e8769cd33

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   15:     0x563d33e7bc01 - core::panicking::panic_bounds_check::hd3a5ad32cddc7d96

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   16:     0x563d34384d10 - texlab::features::completion::complete::he22ec78e492c79e4

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   17:     0x563d34416160 - <F as threadpool::FnBox>::call_box::hdbe14813c967b8c8

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   18:     0x563d344b74da - std::sys_common::backtrace::__rust_begin_short_backtrace::h7d24222b377ef10d

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   19:     0x563d344b858c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c6b63368b7446e4

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   20:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc444a77f8dd8d825

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:52.798 helix_lsp::transport [ERROR] err <-   21:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8b68a0a9a2093dfc

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-   22:     0x563d34322e3a - std::sys::unix::thread::Thread::new::thread_start::hb95464447f61f48d

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys/unix/thread.rs:71:17

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-   23:     0x7ff60737f299 - <unknown>

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-   24:     0x7ff60715c353 - <unknown>

2021-07-04T08:55:52.799 helix_lsp::transport [ERROR] err <-   25:                0x0 - <unknown>

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <- thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 7', src/line_index.rs:117:9

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <- stack backtrace:

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    0:     0x563d342f51b0 - std::backtrace_rs::backtrace::libunwind::trace::h63b7a90188ab5fb3

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    1:     0x563d342f51b0 - std::backtrace_rs::backtrace::trace_unsynchronized::h80aefbf9b851eca7

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    2:     0x563d342f51b0 - std::sys_common::backtrace::_print_fmt::hbef05ae4237a4d72

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:67:5

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    3:     0x563d342f51b0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h28abce2fdb9884c2

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:46:22

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    4:     0x563d3412d06f - core::fmt::write::h3b84512577ca38a8

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/fmt/mod.rs:1092:17

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    5:     0x563d342f4a91 - std::io::Write::write_fmt::h465f8feea02e2aa1

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/mod.rs:1572:15

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    6:     0x563d342f4435 - std::sys_common::backtrace::_print::h525280ee0d29bdde

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:49:5

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    7:     0x563d342f4435 - std::sys_common::backtrace::print::h1f0f5b9f3ef8fb78

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:36:9

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-    8:     0x563d342f4435 - std::panicking::default_hook::{{closure}}::ha5838f6faa4a5a8f

2021-07-04T08:55:52.884 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:208:50

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-    9:     0x563d342f37fa - std::panicking::default_hook::hfb9fe98acb0dcb3b

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:225:9

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   10:     0x563d342f37fa - std::panicking::rust_panic_with_hook::hb89f5f19036e6af8

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:591:17

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   11:     0x563d34311418 - std::panicking::begin_panic_handler::{{closure}}::h119e7951427f41da

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:497:13

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   12:     0x563d3431138c - std::sys_common::backtrace::__rust_end_short_backtrace::hce386c44bf47a128

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:141:18

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   13:     0x563d3431133d - rust_begin_unwind

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   14:     0x563d33e7bc40 - core::panicking::panic_fmt::h2242888e8769cd33

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   15:     0x563d33e7bc01 - core::panicking::panic_bounds_check::hd3a5ad32cddc7d96

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   16:     0x563d34384d10 - texlab::features::completion::complete::he22ec78e492c79e4

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   17:     0x563d34416160 - <F as threadpool::FnBox>::call_box::hdbe14813c967b8c8

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   18:     0x563d344b74da - std::sys_common::backtrace::__rust_begin_short_backtrace::h7d24222b377ef10d

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   19:     0x563d344b858c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c6b63368b7446e4

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-   20:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc444a77f8dd8d825

2021-07-04T08:55:52.885 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-   21:     0x563d34322e3a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8b68a0a9a2093dfc

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-   22:     0x563d34322e3a - std::sys::unix::thread::Thread::new::thread_start::hb95464447f61f48d

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-                                at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys/unix/thread.rs:71:17

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-   23:     0x7ff60737f299 - <unknown>

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-   24:     0x7ff60715c353 - <unknown>

2021-07-04T08:55:52.886 helix_lsp::transport [ERROR] err <-   25:                0x0 - <unknown>
@pickfire pickfire added the A-language-server Area: Language server client label Jul 3, 2021
@kirawi kirawi added the C-bug Category: This is a bug label Aug 19, 2021
@kirawi
Copy link
Member

kirawi commented Aug 19, 2021

Does this bug still occur?

@bottine
Copy link
Author

bottine commented Aug 20, 2021

I think so: from helix, I see request time outs.

@coxackie
Copy link

If I may pitch in (for no apparent reason). I made a simple test file

\documentclass{article}

\begin{document}

\begin{equation}\label{eq:one}
  a=b
\end{equation}

% Below is a mistake.
Equation (\ref{eq:ones}) gives that $a=b$.
    
\end{document}

If I compile it, then helix (as configured by OP) picks up the mistake from texlab. Of course, I am not sure how useful this is at this point - texlab has a lot of functionality that cannot be accessed from helix at this point - build functions, forward search, etc. These can be accessed by neovim lsp, but i do not see any way of doing it through helix. Understandably, this is in very early stages, but I hope it will be possible to expose these functionalities in the future.

@bottine
Copy link
Author

bottine commented Aug 25, 2021

Well, maybe I misconfigured something. Feel free to close the issue!

@coxackie
Copy link

@bottine could you try the small test file I mentioned and see if it works? It could be that problems start in more complex files. Start with this to see if things work.

@bottine
Copy link
Author

bottine commented Aug 25, 2021

With this small file, I managed to get a yellow dot in helix at one point, but not in any reproducible manner.
I still get some rust errors (panics).

@archseer
Copy link
Member

I wonder if the recent refractor, specifically 2793ff3 fixed the issue. If not, can you provide a copy of the log file after running helix with hx -v?

@bottine
Copy link
Author

bottine commented Sep 22, 2021

It indeed fixes the issue, thanks!

@bottine bottine closed this as completed Sep 22, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-language-server Area: Language server client C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

5 participants