-
Notifications
You must be signed in to change notification settings - Fork 233
fix(obsidian): problems when converting from Rust char indexes #2104
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46c5628 to
87314d2
Compare
Collaborator
Author
|
After further consideration, I've come to the conclusion that bug resides deeper, inside |
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Nov 3, 2025
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [Automattic/harper/harper-ls](https://github.com/Automattic/harper) | minor | `v0.68.0` -> `v0.70.0` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>Automattic/harper (Automattic/harper/harper-ls)</summary> ### [`v0.70.0`](https://github.com/Automattic/harper/releases/tag/v0.70.0) [Compare Source](Automattic/harper@v0.69.0...v0.70.0) #### What's Changed - fix(chrome-ext): use Harper-specific HTML tag to avoid CSS conflicts by [@​elijah-potter](https://github.com/elijah-potter) in [#​2101](Automattic/harper#2101) - feat(ls): add lint origin tags to the diagnostics by [@​elijah-potter](https://github.com/elijah-potter) in [#​2102](Automattic/harper#2102) - fix(chrome-ext): don't override with activation from WordPress page by [@​elijah-potter](https://github.com/elijah-potter) in [#​2103](Automattic/harper#2103) - fix(obsidian): problems when converting from Rust char indexes by [@​elijah-potter](https://github.com/elijah-potter) in [#​2104](Automattic/harper#2104) - fix(obsidian): store user dictionary in sorted order by [@​elijah-potter](https://github.com/elijah-potter) in [#​2106](Automattic/harper#2106) - feat(obsidian): add method to ignore all errors in file by [@​elijah-potter](https://github.com/elijah-potter) in [#​2105](Automattic/harper#2105) **Full Changelog**: <Automattic/harper@v0.69.0...v0.70.0> ### [`v0.69.0`](https://github.com/Automattic/harper/releases/tag/v0.69.0) [Compare Source](Automattic/harper@v0.68.0...v0.69.0) #### What's Changed - feat(core): create new rule for detecting missing nouns by [@​elijah-potter](https://github.com/elijah-potter) in [#​2023](Automattic/harper#2023) - docs(integrations): fix `ignoredLintsPath` and add `excludePatterns` in sample configs by [@​mcecode](https://github.com/mcecode) in [#​2097](Automattic/harper#2097) - build(deps): bump lru from 0.16.1 to 0.16.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2092](Automattic/harper#2092) - build(deps): bump indexmap from 2.11.4 to 2.12.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2095](Automattic/harper#2095) - build(deps): bump bitflags from 2.9.4 to 2.10.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2093](Automattic/harper#2093) - feat: add jjdescription parser by [@​Tijs-B](https://github.com/Tijs-B) in [#​2082](Automattic/harper#2082) - build(deps): bump tokio from 1.47.1 to 1.48.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2091](Automattic/harper#2091) - build(deps): bump globset from 0.4.16 to 0.4.17 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2094](Automattic/harper#2094) - feat(core): add `threw` as a suggestion by [@​elijah-potter](https://github.com/elijah-potter) in [#​2088](Automattic/harper#2088) - refactor(web): build out feedback mechanisms by [@​elijah-potter](https://github.com/elijah-potter) in [#​2069](Automattic/harper#2069) - feat(core): more rules by [@​elijah-potter](https://github.com/elijah-potter) in [#​2090](Automattic/harper#2090) #### New Contributors - [@​Tijs-B](https://github.com/Tijs-B) made their first contribution in [#​2082](Automattic/harper#2082) **Full Changelog**: <Automattic/harper@v0.68.0...v0.69.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTcuMCIsInVwZGF0ZWRJblZlciI6IjQxLjE1Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
Fixes #2098
Description
When Harper's core engine (Rust) needs to interact with the ProseMirror editor embedded inside Obsidian, it needs to convert between Unicode scalar values and UTF-16 code points. The spans did not go along with this properly. I've gone ahead and reworked the conversion.
How Has This Been Tested?
Manually + additional unit tests.
Checklist