jessegrosjean / foldingtext-for-atom

Outline editor with productivity features (No longer in development)
Other
40 stars 10 forks source link

Uncaught TypeError: Cannot read property 'replaceBodyTextInRange' of undefined #61

Closed RobTrew closed 9 years ago

RobTrew commented 9 years ago

[Enter steps to reproduce below:]

  1. Place collapsed cursor on empty line
  2. Ctrl-click contextual menu: Format > Edit Link
  3. Paste a URL (we are attaching a link without selecting text, as in [](http://somelink.com))

Error message on Enter

Atom Version: 1.0.0 System: Mac OS X 10.10.3 Thrown From: foldingtext-for-atom package, v0.7.0

Stack Trace

Uncaught TypeError: Cannot read property 'replaceBodyTextInRange' of undefined

At /Users/robintrew/.atom/packages/foldingtext-for-atom/lib/editor/outline-editor.coffee:2034

TypeError: Cannot read property 'replaceBodyTextInRange' of undefined
  at Object.textInput.setDelegate.confirm (/Users/robintrew/.atom/packages/foldingtext-for-atom/lib/editor/outline-editor.coffee:2034:15)
  at ft-text-input.TextInputElement.confirm (/Users/robintrew/.atom/packages/foldingtext-for-atom/lib/extensions/ui/text-input-element.coffee:243:16)
  at atom-text-editor.atom.commands.add.core:confirm (/Users/robintrew/.atom/packages/foldingtext-for-atom/lib/extensions/ui/text-input-element.coffee:247:41)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

Commands

     -0:13.5.0 editor:newline (span.ft-body-text)
     -0:13.1.0 editor:indent (span.ft-body-text)
     -0:11.5.0 core:paste (span.ft-body-text)
     -0:09.1.0 core:undo (span.ft-body-text)
     -0:01.7.0 core:paste (atom-text-editor.editor.mini.is-focused)
  2x -0:01.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "tomorrow-night-eighties-syntax"
    ]
  },
  "foldingtext-for-atom": {
    "disableAnimation": true
  }
}

Installed Packages

# User
foldingtext-for-atom, v0.7.0
foldingtext-markdown, v1.3.2
language-haskell, v1.1.4
language-purescript, v0.4.0
linter-gjslint, v0.0.5
pretty-json, v0.3.3
tomorrow-night-eighties-syntax, v0.6.1

# Dev
No dev packages