-
Notifications
You must be signed in to change notification settings - Fork 0
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 position 4 in document of length 3 #1
Comments
@josdejong thank you for reporting this issue. It seems that in file
|
That makes sense. Can you publish a fix for this? |
@josdejong I have published the fix. Could you check at your end? |
That's good news, thanks! I can't reproduce the issue anymore. I've published a new version of |
The issue is indeed resolved. Thanks again! |
In josdejong/svelte-jsoneditor#381 we came across an issue which seems to originate in
codemirror-wrapped-line-indent
.When creating a CodeMirror editor, and directly dispatching an update replacing the contents with new contents with a larger size, an error is thrown:
I was able to reproduce the issue with the following minimal code example, you can try it out in codesandbox.io/p/sandbox/pedantic-scott-4gf59f
The error disappears when removing
wrappedLineIndent
from the list with extensions, so it looks like the error originates there. Any idea on how to solve this?The text was updated successfully, but these errors were encountered: