question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Newly typed text in long paragraphs sometimes is displayed below influx section for a few seconds for large notes (Uncaught range error?)

See original GitHub issue

It happens with live text and and live text turned off in the Influx, Obsidian is in Live Preview mode.

When I have a note with large number of linked mentions (lets say 20, the are not visible without scrolling) I sometimes observe the following behaviour:

  • when I have the large paragraph to type (in bullet points), the text I type sometimes appear below the Influx section for a few seconds and then the cursor came back to the “proper” section of the note
  • the text is in its proper place, dont disseappers, but it is just displayed for a few seconds as it were below the Influx section
  • I didnt observed this in a notes with small amount of linked mentions
  • even if I collapse the references, after a few typed words, the linked mentions un-collapse and the type words appears again on the bottom of the pane, below the Influx linked mentions, and then the typed text slowly (sometimes letter by letter) appear again in the line when I typed it
  • when this is happening I saw this in the developer console, not sure if related
Uncaught RangeError: Position 396 is out of range for changeset of length 395
    at t.e.mapPos (app.js:1:270074)
    at e.map (app.js:1:302081)
    at e.update [as updateF] (plugin:influx:23527:15)
    at Object.update (app.js:1:283426)
    at e.computeSlot (app.js:1:294218)
    at Fn (app.js:1:287369)
    at new e (app.js:1:293244)
    at e.applyTransaction (app.js:1:294160)
    at e.get (app.js:1:289373)
    at e.update (app.js:1:434795)

I will try to make a gif to make it better to see what is happening. I also try to turn off other plugins, to see if this persist MacOS 13, Obisidian, 1.02, Influx 2.0.7

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jensmtgcommented, Oct 24, 2022

It’s a bug related to how codemirror handles widget extensions. As such, I can’t fix this directly, but I have an idea for a work-around that I think will essentially solve the problem. I’ll probably get a chance to explore it sometime in the coming month.

0reactions
farid56xcommented, Dec 23, 2022

I have the exact same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · jensmtg/influx - GitHub
[bug] Newly typed text in long paragraphs sometimes is displayed below influx section for a few seconds for large notes (Uncaught range error?)...
Read more >
If you have an issue with Messages or FaceTime after setting ...
If you have an issue with Messages or FaceTime after setting up your new iPhone · You can't receive iMessages or FaceTime calls....
Read more >
All other Tokyo fixes - Product Documentation | ServiceNow
In the compose section, the text input in 'Comments' isn't hidden when setting the action from 'visible' to 'false' using the UI policy....
Read more >
There are two types of texters in the world. Which one are you?
There are two types of texters: ones who send a detail-packed paragraph and ones who use multiple messages to get their points across....
Read more >
Leaves of Grass
text of the following pages are not copyrighted within the United States; however, the fonts used may be. Cover Design: Jim Manis; image:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found