danielchatfield / atom-wrap

1 stars 1 forks source link

Uncaught RangeError: Maximum call stack size exceeded #5

Open silverliebt opened 5 years ago

silverliebt commented 5 years ago

Context: using Atom to write a markdown document, with markdown preview toggled on. At a certain point in writing text, new lines are created without returning (should be still on the same line, but I'm not, I'm on a new line -- so text is not wrapping correctly. Then the error appears. I've seen it twice now. Also, I'm then unable to create issue -- no response to the create issue button within Atom.

Here's the details:

RangeError: Maximum call stack size exceeded at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:491906) at TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/static/:11:487640) at WrapEditorView.module.exports.WrapEditorView.wrapFromRange (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:66:19) at WrapEditorView.module.exports.WrapEditorView.updateWrap (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:52:10) at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1172354) at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1173795) at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:504122) at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:492297) at TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/static/:11:487640) at WrapEditorView.module.exports.WrapEditorView.wrapFromRange (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:66:19) at WrapEditorView.module.exports.WrapEditorView.updateWrap (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:52:10) at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1172354) at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1173795) at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:504122) at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:492297) at TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/static/:11:487640) at WrapEditorView.module.exports.WrapEditorView.wrapFromRange (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:66:19) at WrapEditorView.module.exports.WrapEditorView.updateWrap (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:52:10) at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1172354) at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1173795) at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:504122) at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:492297) at TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/static/:11:487640) at WrapEditorView.module.exports.WrapEditorView.wrapFromRange (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:66:19) at WrapEditorView.module.exports.WrapEditorView.updateWrap (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:52:10) at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1172354) at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1173795) at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:504122) at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:492297) at TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/static/:11:487640) at WrapEditorView.module.exports.WrapEditorView.wrapFromRange (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:66:19) at WrapEditorView.module.exports.WrapEditorView.updateWrap (/Users/danielpotter/.atom/packages/wrap/lib/wrap-editor-view.coffee:52:10) at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1172354) at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1173795) at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:504122) at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/:11:492297)

dangerrg commented 5 years ago

I'm having the same issue

dflock commented 4 years ago

You can trigger this by pressing ctrl+j to try to join lines inside a code block.