-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
thread 'main' panicked at 'byte index 1 is not a char boundary #971
Comments
Additional note: it doesn't seem to happen if the content of the file is just
|
Any chance you can run it with |
|
Ok, seems to be a bug in https://github.com/mattico/elasticlunr-rs Basically, it doesn't expect english to use non-latin characters. The kind of code that triggers the crash is https://github.com/mattico/elasticlunr-rs/blob/master/src/lang/en.rs#L213 It should instead use a safe slicing, and likely a different regexp. |
Thanks for digging. I assume the best next step is to report the issue in the other repository? |
I've made a pull request to elasticlunr-rs that looks like it'll fix this issue. [Edited to add: Oh no, there are more… I'll have to update my PR.] |
Thanks Blake! That looks like a good fix. |
And the PR has landed, so hopefully this will be fixed when we pull in the next version of that library! 😃 |
I'm running mdBook 0.3 on macOS, and for some reasons it fails to build one of the file containing the ë character. The thing I don't understand is that I have other files with that character, and they build just fine.
Minimal file content in README.md
Error
The text was updated successfully, but these errors were encountered: