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
This is the output. I don't think I have any fancy unicode characters. If I do, they should be on accident from option + whatever.
Run with RUST_BACKTRACE=full to include source snippets.
Backtrace (most recent call first):
File "<unknown>", line 0, in core::panicking::panic
File "<unknown>", line 0, in lang_srv::helpers::apply_changes
File "<unknown>", line 0, in lang_srv::notification::go
File "<unknown>", line 0, in lang_srv::run_inner
File "<unknown>", line 0, in lang_srv::run_stdio
File "<unknown>", line 0, in millet_ls::main
File "<unknown>", line 0, in std::sys_common::backtrace::__rust_begin_short_backtrace
File "<unknown>", line 0, in _main
Millet (0.8.8) crashed. We would appreciate a bug report: https://github.com/azdavis/millet/issues
assertion failed: self.is_char_boundary(n)
in rust:library/alloc/src/string.rs, line 1811
thread: main
The text was updated successfully, but these errors were encountered:
the underlying bug is probably in PositionDb, which deals with translating utf16 offsets between utf8 ones (essentially). there's a bunch of subtle and tricky string munging code in there. it's heavily derived from rust analyzer's implementation, but i may have made some mistakes when copying it over.
it'd be great if rust analyzer pulled theirs out into a library so i could just copy it wholesale 🤪
Make line-index a lib, use nohash_hasher
These seem like they are not specific to rust-analyzer and could be pulled out to their own libraries. So I did.
azdavis/millet#31
should hopefully be addressed in v0.9.6 since we basically lifted rust-analyzer's handling of this stuff, which is way more thoroughly tested by virtue of rust/rust-analyzer being far more popular than sml/millet
This is the output. I don't think I have any fancy unicode characters. If I do, they should be on accident from option + whatever.
The text was updated successfully, but these errors were encountered: