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

Error Message on editing Mail Body #723

Closed
intradesign opened this issue Feb 25, 2018 · 13 comments
Closed

Error Message on editing Mail Body #723

intradesign opened this issue Feb 25, 2018 · 13 comments

Comments

@intradesign
Copy link

intradesign commented Feb 25, 2018

While editing the email body the following error message was displayed:
Error: Failed to execute 'setStart' on 'Range': The offset 4294967295 is larger than the node's length (15).
at findDOMRange (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/slate-react/lib/utils/find-dom-range.js:37:5)
at Content._this.updateSelection (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/slate-react/lib/components/content.js:154:46)
at Content._this.componentDidUpdate (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/slate-react/lib/components/content.js:121:13)
at commitLifeCycles (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:149:308)
at b (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:158:229)
at m (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:169:217)
at w (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:168:413)
at batchedUpdates (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:171:357)
at tc (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:54:269)
at vd (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:71:249)

What I did was: Typing several pararaphs. Then I wanted to mark 4 line with Shift-Arrow-Down to apply a bold format. Instead of marking the lines below the current cursor position in the editing area the messages below the current message in the messages panel were marked and the error message appeared.

mailspring 2018-02-25 12-15-16

@bengotow
Copy link
Collaborator

Hey! Thanks for reporting this - this is a pretty nasty issue. I'll see if we can get this fixed - there have been some updates to Slate since we released the new editor and we need to incorporate those fixes in.

@Tamriel
Copy link

Tamriel commented Feb 28, 2018

I got this, too:

Error: Failed to execute 'setStart' on 'Range': The offset 4294967293 is larger than the node's length (4).
at findDOMRange (/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/utils/find-dom-range.js:37:5)
at Content._this.updateSelection (/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/components/content.js:154:46)
at Content._this.componentDidUpdate (/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/components/content.js:121:13)
at commitLifeCycles (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:149:308)
at b (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:158:229)
at m (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:169:217)
at w (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:168:413)
at batchedUpdates (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:171:357)
at tc (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:54:269)
at vd (/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:71:249)

@tzar
Copy link

tzar commented Mar 1, 2018

Happened to me too - on the first email I've ever tried to write with mailspring no less ☹ the only formatting I had used was a bullet point list..

@jnylen
Copy link

jnylen commented Mar 1, 2018

Happens for me too.

@grolinux
Copy link

Same here. Happens to me.

Error: Failed to execute 'setStart' on 'Range': The offset 4294967295 is larger than the node's length (9).
at findDOMRange (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/utils/find-dom-range.js:37:5)
at Content._this.updateSelection (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/components/content.js:154:46)
at Content._this.componentDidUpdate (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/slate-react/lib/components/content.js:121:13)
at commitLifeCycles (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:149:308)
at b (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:158:229)
at m (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:169:217)
at w (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:168:413)
at batchedUpdates (/snap/mailspring/180/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:171:357)
at tc (/snap/mailspring/180/usr/share/mailspring/reso

@jyboudreau
Copy link

Happens to me as well. I noticed this always happens when I try to navigate the text with keyboard arrow keys.

@jyboudreau
Copy link

Possibly related to ianstormtaylor/slate#710 ?

@sonufrienko
Copy link

I have this error too on edit
bug

@Tamriel
Copy link

Tamriel commented Apr 26, 2018

I still get this error in version 1.2.1.

@jmgiaever
Copy link

Happend here too today. V 1.2.1-7e7747b6

@joaofar
Copy link

joaofar commented Jun 11, 2018

happened to me just now... after having composed a whole email... can't seem to access it again.
Think it was the arrow keys as well.

This is a major no no.
It's basic functionality we're talking here, if there's a chance this could happen when composing an email...

@intradesign
Copy link
Author

This still happens to me very regularly. And it still prevents me using Mailspring as default mail client. Isn`t there a solution in sight?

@bengotow
Copy link
Collaborator

Going to merge this in to #921 - I've been hoping we can upgrade to a new version of Slate for a while now, but there are a few performance regressions that still need to be fixed in Slate. Hopefully this can be fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants