-
Notifications
You must be signed in to change notification settings - Fork 1.8k
index out of bounds for crates/ra_ide_db/src/line_index.rs #5388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you ever type a non-ASCII character in that file? Yes, it's unrelated to #5366. |
Yes, it has not-english comments (utf-8), but the comments was far above of last editing region. |
There are two possibilities here:
If you find a file where RA crashes reliably, it's probably the second issue. If happens only seldom, it might be either of them. You can disable incremental sync by setting the |
I assume your comments are in Cyrillic (and not e.g. emoji)? The difference is that Cyrillic characters have only one code point. |
Yes, Cyrillic. |
Hmm, this happens a lot on rust-analyzer as well, but without any non-ASCII characters |
This might actually be a duplicate of #4266, both are from |
Seems unrelated to #5366 because of backtrace completely different.
Happens during editing close source project
The text was updated successfully, but these errors were encountered: