Skip to content
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

RangeError: Invalid string length, when trying to scan note #54

Open
baines47 opened this issue Jun 18, 2024 · 1 comment
Open

RangeError: Invalid string length, when trying to scan note #54

baines47 opened this issue Jun 18, 2024 · 1 comment
Labels
🐛 Bug Something isn't working

Comments

@baines47
Copy link

I was going through my vault and checking links note by note, when Note Linker started giving me an error.

Steps to reproduce the behavior
I go to any note and use the "Note Linker: Scan Note".
Then I get "An error occured while linking notes".

Expected behavior
The regular Note Linker window with possible matches or a message that it couldn't find anything.

Desktop:

  • OS: Windows 11 x64

**Error Message **
plugin:obisidian-note-linker:35754 RangeError: Invalid string length
at String.repeat ()
at eval (plugin:obisidian-note-linker:35277:25)
at Array.forEach ()
at IgnoreRangeBuilder.addCacheItem (plugin:obisidian-note-linker:35272:38)
at IgnoreRangeBuilder.addInternalLinks (plugin:obisidian-note-linker:35285:21)
at IgnoreRange.getIgnoreRangesFromCache (plugin:obisidian-note-linker:35336:14)
at JsNote.eval (plugin:obisidian-note-linker:35371:52)
at Generator.next ()
at fulfilled (plugin:obisidian-note-linker:23:58)

@baines47 baines47 added the 🐛 Bug Something isn't working label Jun 18, 2024
@baines47
Copy link
Author

baines47 commented Jun 18, 2024

I don't know what caused this. My solution was to rename the $user\AppData\Roaming\obsidian folder and start from a "fresh" Obsidian.
When I loaded my vault and reconnected to sync, it seems to work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant