Pulsar-Edit-Highlights / line

@Pulsar-Edit package for highlighting the currently selected line.
https://web.pulsar-edit.dev/packages/highlight-line
MIT License
52 stars 16 forks source link

Error on backspace to prev line. #61

Closed ozeron closed 8 years ago

ozeron commented 9 years ago
  1. Backspace to the previus line from first position in line to the middle of previous. In the center of text.

Example

Atom Version: 0.182.0 System: Mac OS X 10.10.2 Thrown From: highlight-line package, v0.9.3

Stack Trace

Uncaught Error: No line exists for row 64. Last screen row: 63

At /Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234

Error: No line exists for row 64. Last screen row: 63
  at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234:17)
  at TextEditorPresenter.module.exports.TextEditorPresenter.didDestroyDecoration (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:979:16)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:932:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Decoration.module.exports.Decoration.destroy (/Applications/Atom.app/Contents/Resources/app/src/decoration.js:59:20)
  at /Applications/Atom.app/Contents/Resources/app/src/decoration.js:46:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Marker.module.exports.Marker.destroyed (/Applications/Atom.app/Contents/Resources/app/src/marker.js:264:20)
  at /Applications/Atom.app/Contents/Resources/app/src/marker.js:51:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:318:20)
  at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/src/marker.js:62:25)
  at HighlightLineView.module.exports.HighlightLineView.resetBackground (/Users/rubydev/.atom/packages/highlight-line/lib/highlight-line-view.coffee:42:18)
  at HighlightLineView.module.exports.HighlightLineView.updateSelectedLine (/Users/rubydev/.atom/packages/highlight-line/lib/highlight-line-view.coffee:37:6)
  at atom-workspace.<anonymous> (/Users/rubydev/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
  at TextEditorView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
  at [object Object].module.exports.React.createClass.componentDidUpdate (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:201:49)
  at CallbackQueue.mixInto.notifyAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/CallbackQueue.js:75:22)
  at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactReconcileTransaction.js:88:26)
  at ReactReconcileTransaction.Mixin.closeAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42)
  at ReactReconcileTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155:16)
  at ReactUpdatesFlushTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:141:20)
  at ReactUpdatesFlushTransaction.mixInto.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:98:38)
  at Object.flushBatchedUpdates (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:176:19)
  at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42)
  at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155:16)
  at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactDefaultBatchingStrategy.js:70:19)
  at Object.enqueueUpdate (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:209:22)
  at [object Object].ReactCompositeComponentMixin.replaceState (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:878:20)
  at [object Object].ReactCompositeComponentMixin.setState (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:850:10)
  at [object Object].module.exports.React.createClass.focused (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:381:14)
  at [object Object].boundMethod [as focused] (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21)
  at atom-text-editor.TextEditorElement.shadowRootBlurred (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:215:31)
  at Object.jQuery.event.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4629:18)
  at atom-text-editor.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5124:17)
  at Function.jQuery.extend.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590:23)
  at TextEditorView.jQuery.fn.jQuery.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237:17)
  at TextEditorView.jQuery.fn.extend.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5123:15)
  at TextEditorView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:56:28)
  at TextEditorView.jQuery.fn.(anonymous function) [as focus] (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:6733:9)
  at AutocompleteView.module.exports.AutocompleteView.cancel (/Users/rubydev/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:143:19)
  at AutocompleteView.cancel (/Users/rubydev/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:1:1)
  at AutocompleteView.module.exports.AutocompleteView.onChanged (/Users/rubydev/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:226:8)
  at /Users/rubydev/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:1:1
  at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:595:12)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:507:12)
  at TextBuffer.module.exports.TextBuffer.delete (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:604:19)
  at Selection.module.exports.Selection.deleteSelectedText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:561:37)
  at Selection.module.exports.Selection.delete (/Applications/Atom.app/Contents/Resources/app/src/selection.js:532:19)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:808:35
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:826:27
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1195:26)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:819:19)
  at TextEditor.module.exports.TextEditor.delete (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:807:19)
  at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.core:delete (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:425:28)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:305:34
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1195:26)
  at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:22)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:176:20)

Commands

  2x -1:21.0 core:delete (atom-text-editor.editor.is-focused)
  2x -1:09.3 core:save (atom-text-editor.editor.is-focused)
     -0:56.9 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:56.7 core:backspace (atom-text-editor.editor.is-focused)
     -0:52.2 core:move-left (atom-text-editor.editor.is-focused)
     -0:51.7 core:save (atom-text-editor.editor.is-focused)
 33x -0:36.2 core:delete (atom-text-editor.editor.is-focused)
     -0:25.8 core:backspace (atom-text-editor.editor.is-focused)
     -0:18.1 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:18.1 core:cancel (atom-text-editor.editor.is-focused)
     -0:13.1 core:move-left (atom-text-editor.editor.is-focused)
  9x -0:12.5 core:undo (atom-text-editor.editor.is-focused)
     -0:06.1 core:save (atom-text-editor.editor.is-focused)
  2x -0:05.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:03.1 core:save (atom-text-editor.editor.is-focused)
  5x -0:01.6 core:delete (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.21.3
atom-color-highlight, v3.0.8
autocomplete-plus, v2.1.6
autocomplete-plus-async, v0.22.0
ember-snippets, v1.0.0
emmet, v2.3.3
git-projects, v1.8.0
highlight-line, v0.9.3
line-ending-converter, v1.0.0
linter, v0.11.1
linter-rubocop, v0.2.2
linter-ruby, v0.1.4
ruby-block, v0.2.2
ruby-block-converter, v3.1.0
ruby-define-method, v0.2.0
ruby-slim, v0.2.0
script, v2.16.0

# Dev
No dev packages
richrace commented 9 years ago

Have you been able to replicate this? I can't seem to do it here.

vicksonzero commented 9 years ago

steps:

  1. new document, type abc[enter]def
  2. move cursor to before 'd'
  3. press [backspace]

expected: becomes abcdef actual: becomes abcdef, plus this error

alternative steps:

  1. new document, type abc[enter]def
  2. move cursor to after 'c'
  3. press [delete]

expected: becomes abcdef actual: becomes abcdef, plus this error

vicksonzero commented 9 years ago

ok even more simple:

steps:

  1. new document, press [enter]
  2. press [backspace]

or steps:

  1. new document, press [enter]
  2. press left arrow
  3. press [delete]

Atom Version: 0.182.0 System: Microsoft Windows 7 Professional Thrown From: highlight-line package, v0.9.3

Stack Trace

Uncaught Error: No line exists for row 2. Last screen row: 1

At C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-presenter.js:234

Error: No line exists for row 2. Last screen row: 1
  at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-presenter.js:234:17)
  at TextEditorPresenter.module.exports.TextEditorPresenter.didDestroyDecoration (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-presenter.js:979:16)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-presenter.js:932:24
  at Emitter.module.exports.Emitter.emit (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
  at Decoration.module.exports.Decoration.destroy (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\decoration.js:59:20)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\decoration.js:46:24
  at Emitter.module.exports.Emitter.emit (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
  at Marker.module.exports.Marker.destroyed (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\marker.js:264:20)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\marker.js:51:24
  at Emitter.module.exports.Emitter.emit (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
  at Marker.module.exports.Marker.destroy (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\marker.js:318:20)
  at Marker.module.exports.Marker.destroy (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\marker.js:62:25)
  at HighlightLineView.module.exports.HighlightLineView.resetBackground (C:\Users\Dickson\.atom\packages\highlight-line\lib\highlight-line-view.coffee:42:18)
  at HighlightLineView.module.exports.HighlightLineView.updateSelectedLine (C:\Users\Dickson\.atom\packages\highlight-line\lib\highlight-line-view.coffee:37:6)
  at atom-workspace.<anonymous> (C:\Users\Dickson\.atom\packages\highlight-line\lib\highlight-line-view.coffee:1:1)
  at atom-workspace.handler (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\space-pen-extensions.js:112:34)
  at atom-workspace.jQuery.event.dispatch (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9)
  at atom-workspace.elemData.handle (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\command-registry.js:156:19)
  at TextEditorView.jQuery.fn.trigger (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\space-pen-extensions.js:64:23)
  at [object Object].module.exports.React.createClass.componentDidUpdate (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-component.js:201:49)
  at CallbackQueue.mixInto.notifyAll (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\CallbackQueue.js:75:22)
  at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactReconcileTransaction.js:88:26)
  at ReactReconcileTransaction.Mixin.closeAll (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\Transaction.js:214:42)
  at ReactReconcileTransaction.Mixin.perform (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\Transaction.js:155:16)
  at ReactUpdatesFlushTransaction.Mixin.perform (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\Transaction.js:141:20)
  at ReactUpdatesFlushTransaction.mixInto.perform (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactUpdates.js:98:38)
  at Object.flushBatchedUpdates (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactUpdates.js:176:19)
  at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\Transaction.js:214:42)
  at ReactDefaultBatchingStrategyTransaction.Mixin.perform (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\Transaction.js:155:16)
  at Object.ReactDefaultBatchingStrategy.batchedUpdates (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactDefaultBatchingStrategy.js:70:19)
  at Object.enqueueUpdate (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactUpdates.js:209:22)
  at [object Object].ReactCompositeComponentMixin.replaceState (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactCompositeComponent.js:878:20)
  at [object Object].ReactCompositeComponentMixin.setState (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactCompositeComponent.js:850:10)
  at [object Object].module.exports.React.createClass.focused (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-component.js:381:14)
  at [object Object].boundMethod [as focused] (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\react-atom-fork\lib\ReactCompositeComponent.js:1295:21)
  at atom-text-editor.TextEditorElement.shadowRootBlurred (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-element.js:215:31)
  at Object.jQuery.event.trigger (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:4629:18)
  at atom-text-editor.<anonymous> (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:5124:17)
  at Function.jQuery.extend.each (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:590:23)
  at TextEditorView.jQuery.fn.jQuery.each (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:237:17)
  at TextEditorView.jQuery.fn.extend.trigger (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:5123:15)
  at TextEditorView.jQuery.fn.trigger (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\space-pen-extensions.js:56:28)
  at TextEditorView.jQuery.fn.(anonymous function) [as focus] (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\space-pen\vendor\jquery.js:6733:9)
  at AutocompleteView.module.exports.AutocompleteView.cancel (C:\Users\Dickson\.atom\packages\autocomplete-plus-async\lib\autocomplete-view.coffee:143:19)
  at AutocompleteView.cancel (C:\Users\Dickson\.atom\packages\autocomplete-plus-async\lib\autocomplete-view.coffee:1:1)
  at AutocompleteView.module.exports.AutocompleteView.onChanged (C:\Users\Dickson\.atom\packages\autocomplete-plus-async\lib\autocomplete-view.coffee:226:8)
  at C:\Users\Dickson\.atom\packages\autocomplete-plus-async\lib\autocomplete-view.coffee:1:1
  at TextBuffer.module.exports.Emitter.emit (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\emissary\lib\emitter.js:118:15)
  at TextBuffer.module.exports.TextBuffer.applyPatch (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:595:12)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:507:12)
  at TextBuffer.module.exports.TextBuffer.delete (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:604:19)
  at Selection.module.exports.Selection.deleteSelectedText (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\selection.js:561:37)
  at Selection.module.exports.Selection.delete (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\selection.js:532:19)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:808:35
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:826:27
  at History.module.exports.History.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:1195:26)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:819:19)
  at TextEditor.module.exports.TextEditor.delete (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:807:19)
  at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.core:delete (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-element.js:425:28)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-element.js:305:34
  at History.module.exports.History.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor.js:1195:26)
  at atom-text-editor.newCommandListeners.(anonymous function) (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\text-editor-element.js:304:22)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\command-registry.js:243:29)
  at C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\Dickson\AppData\Local\atom\app-0.182.0\resources\app\src\window-event-handler.js:176:20)

Commands

     -1:18.6 docblockr:parse-enter (atom-text-editor.editor)
     -1:18.6 editor:newline (atom-text-editor.editor)
     -1:01.7 highlight-line:toggle-background (atom-text-editor.editor)
  2x -0:55.2 highlight-line:toggle-underline (atom-text-editor.editor)
  2x -0:46.2 highlight-line:toggle-selection-borders (atom-text-editor.editor)
     -0:33.3 core:delete (atom-text-editor.editor)
     -0:32.2 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -0:32.2 docblockr:parse-enter (atom-text-editor.editor)
     -0:32.2 editor:newline (atom-text-editor.editor)
     -0:31.4 core:delete (atom-text-editor.editor)
     -0:30.2 core:backspace (atom-text-editor.editor)
     -0:29.1 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -0:29.1 docblockr:parse-enter (atom-text-editor.editor)
     -0:29.1 editor:newline (atom-text-editor.editor)
     -0:13.7 highlight-line:toggle-background (atom-text-editor.editor)
     -0:12.1 core:delete (atom-text-editor.editor)

Config

{
  "core": {
    "disabledPackages": [
      "jsdoc",
      "numbers-on-a-pane",
      "block-selection-mode",
      "vim-mode",
      "css-comb",
      "atom-ternjs"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  },
  "highlight-line": {}
}

Installed Packages

# User
autocomplete-plus-async, v0.22.0
color-picker, v1.4.4
docblockr, v0.6.3
emmet, v2.3.3
highlight-line, v0.9.3
jsformat, v0.7.18
minimap, v4.3.1
monokai, v0.12.0
Sublime-Style-Column-Selection, v1.2.3

# Dev
No dev packages
AndreasPizsa commented 9 years ago

+1 here, unfortunately. I hope this report is helpful.

[Enter steps to reproduce below:]

  1. Go to first column of a line
  2. Press backspace

Atom Version: 0.182.0 System: Mac OS X 10.10.3 Thrown From: highlight-line package, v0.9.3

Stack Trace

Uncaught Error: No line exists for row 13. Last screen row: 12

At /Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234

Error: No line exists for row 13. Last screen row: 12
  at TextEditorPresenter.module.exports.TextEditorPresenter.updateLinesState (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:234:17)
  at TextEditorPresenter.module.exports.TextEditorPresenter.didDestroyDecoration (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:979:16)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:932:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Decoration.module.exports.Decoration.destroy (/Applications/Atom.app/Contents/Resources/app/src/decoration.js:59:20)
  at /Applications/Atom.app/Contents/Resources/app/src/decoration.js:46:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Marker.module.exports.Marker.destroyed (/Applications/Atom.app/Contents/Resources/app/src/marker.js:264:20)
  at /Applications/Atom.app/Contents/Resources/app/src/marker.js:51:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker.js:318:20)
  at Marker.module.exports.Marker.destroy (/Applications/Atom.app/Contents/Resources/app/src/marker.js:62:25)
  at HighlightLineView.module.exports.HighlightLineView.resetBackground (/Users/apizsa/.atom/packages/highlight-line/lib/highlight-line-view.coffee:42:18)
  at HighlightLineView.module.exports.HighlightLineView.updateSelectedLine (/Users/apizsa/.atom/packages/highlight-line/lib/highlight-line-view.coffee:37:6)
  at atom-workspace.<anonymous> (/Users/apizsa/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
  at TextEditorView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
  at [object Object].module.exports.React.createClass.componentDidUpdate (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:201:49)
  at CallbackQueue.mixInto.notifyAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/CallbackQueue.js:75:22)
  at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactReconcileTransaction.js:88:26)
  at ReactReconcileTransaction.Mixin.closeAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42)
  at ReactReconcileTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155:16)
  at ReactUpdatesFlushTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:141:20)
  at ReactUpdatesFlushTransaction.mixInto.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:98:38)
  at Object.flushBatchedUpdates (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:176:19)
  at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:214:42)
  at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/Transaction.js:155:16)
  at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactDefaultBatchingStrategy.js:70:19)
  at Object.enqueueUpdate (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactUpdates.js:209:22)
  at [object Object].ReactCompositeComponentMixin.replaceState (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:878:20)
  at [object Object].ReactCompositeComponentMixin.setState (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:850:10)
  at [object Object].module.exports.React.createClass.focused (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:381:14)
  at [object Object].boundMethod [as focused] (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21)
  at atom-text-editor.TextEditorElement.shadowRootBlurred (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:215:31)
  at Object.jQuery.event.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4629:18)
  at atom-text-editor.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5124:17)
  at Function.jQuery.extend.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590:23)
  at TextEditorView.jQuery.fn.jQuery.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237:17)
  at TextEditorView.jQuery.fn.extend.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5123:15)
  at TextEditorView.jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:56:28)
  at TextEditorView.jQuery.fn.(anonymous function) [as focus] (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:6733:9)
  at AutocompleteView.module.exports.AutocompleteView.cancel (/Users/apizsa/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:143:19)
  at AutocompleteView.cancel (/Users/apizsa/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:1:1)
  at AutocompleteView.module.exports.AutocompleteView.onChanged (/Users/apizsa/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:226:8)
  at /Users/apizsa/.atom/packages/autocomplete-plus-async/lib/autocomplete-view.coffee:1:1
  at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:595:12)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:507:12)
  at TextBuffer.module.exports.TextBuffer.delete (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:604:19)
  at Selection.module.exports.Selection.deleteSelectedText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:561:37)
  at Selection.module.exports.Selection.backspace (/Applications/Atom.app/Contents/Resources/app/src/selection.js:494:19)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:814:26
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:826:27
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1195:26)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:819:19)
  at TextEditor.module.exports.TextEditor.backspace (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:813:19)
  at TextEditor.object.(anonymous function) [as backspace] (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
  at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.core:backspace (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:422:19)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:305:34
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1195:26)
  at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:22)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:176:20)

Commands

     -0:23.0 refactor:done (atom-text-editor.editor.is-focused)
     -0:23.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:22.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:21.8 editor:indent (atom-text-editor.editor.is-focused)
     -0:20.5 autocomplete-plus:cancel (atom-text-editor.editor.is-focused)
  4x -0:20.2 editor:indent (atom-text-editor.editor.is-focused)
     -0:17.2 core:move-down (atom-text-editor.editor.is-focused)
     -0:17.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
  2x -0:15.7 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
     -0:15.1 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -0:14.6 core:backspace (atom-text-editor.editor.is-focused)
     -0:14.3 editor:indent (atom-text-editor.editor.is-focused)
     -0:11.8 refactor:done (atom-text-editor.editor.is-focused)
     -0:11.8 editor:newline (atom-text-editor.editor.is-focused)
     -0:10.8 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
  7x -0:10.5 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "disabledPackages": [
      "autosave",
      "autocomplete",
      "snippets",
      "linter-jsl",
      "linter-jshint",
      "linter-coffeelint",
      "atom-lint",
      "linter-eslint",
      "linter"
    ],
    "themes": [
      "atom-light-ui",
      "solarized-light-syntax"
    ]
  }
}

Installed Packages

# User
achievements, v0.7.0
atom-beautify, v0.21.3
atom-handlebars, v0.4.0
autocomplete-emojis, v1.0.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.2.0
autocomplete-plus-async, v0.22.0
coffee-navigator, v0.0.15
coffee-refactor, v0.6.2
color-picker, v1.4.4
docs-snippets, v0.8.0
editorconfig, v0.3.0
file-icons, v1.4.11
highlight-line, v0.9.3
js-refactor, v0.3.0
jumpy, v2.0.2
language-gherkin, v0.3.0
language-jade, v0.3.0
linter-csslint, v0.0.11
linter-js-yaml, v1.0.0
linter-php, v0.0.11
linter-phpcs, v0.0.12
linter-scss-lint, v0.0.14
open-last-project, v0.3.1
pretty-json, v0.3.2
refactor, v0.4.1
script, v2.16.0
travis-ci-status, v0.11.2
valign, v0.13.4
wakatime, v4.0.0

# Dev
markdown-preview, v0.100.0
richrace commented 9 years ago

I still cannot reproduce this.

screendriver commented 9 years ago

:+1: Same here: Mac OS X 10.10.2 + Atom 0.186.0 It occurs sometimes and not always. But when it occurs I have to close and reopen Atom.

richrace commented 9 years ago

Still happenning?

screendriver commented 9 years ago

For me it's working at the moment.