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

Getting Uncaught TypeError: Object #<Editor> has no method 'decorateMarker' #25

Closed RobertGonzalez closed 10 years ago

RobertGonzalez commented 10 years ago

I just installed this package and immediately my editor started failing with the following notice:

Uncaught TypeError: Object #<Editor> has no method 'decorateMarker' in highlight-line-view.coffee:101

This is the full trace:

TypeError: Object #<Editor> has no method 'decorateMarker'
  at HighlightLineView.module.exports.HighlightLineView.createDecoration (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:105:8)
  at HighlightLineView.createDecoration (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at HighlightLineView.module.exports.HighlightLineView.handleSingleLine (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:74:14)
  at HighlightLineView.handleSingleLine (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at HighlightLineView.module.exports.HighlightLineView.showHighlight (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:65:6)
  at HighlightLineView.showHighlight (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at HighlightLineView.module.exports.HighlightLineView.updateSelectedLine (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:54:6)
  at HTMLDivElement.<anonymous> (/Users/rgonzalez/.atom/packages/highlight-line/lib/highlight-line-view.coffee:1:1)
  at HTMLDivElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676:9)
  at HTMLDivElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360:28)
  at Object.jQuery.event.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4594:12)
  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5119:17)
  at Function.jQuery.extend.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590:23)
  at SelectionView.jQuery.fn.jQuery.each (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237:17)
  at SelectionView.jQuery.fn.extend.trigger (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5118:15)
  at SelectionView.module.exports.SelectionView.updateDisplay (/Applications/Atom.app/Contents/Resources/app/src/selection-view.js:48:12)
  at EditorView.module.exports.EditorView.updateSelectionViews (/Applications/Atom.app/Contents/Resources/app/src/editor-view.js:1719:39)
  at EditorView.module.exports.EditorView.updateDisplay (/Applications/Atom.app/Contents/Resources/app/src/editor-view.js:1658:12)
  at EditorView.module.exports.EditorView.resetDisplay (/Applications/Atom.app/Contents/Resources/app/src/editor-view.js:1620:19)
  at EditorView.module.exports.EditorView.afterAttach (/Applications/Atom.app/Contents/Resources/app/src/editor-view.js:1085:12)
  at callAttachHook (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:323:107)
  at [object Object].jQuery.fn.(anonymous function) [as append] (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:339:9)
  at PaneView.module.exports.PaneView.onActiveItemChanged (/Applications/Atom.app/Contents/Resources/app/src/pane-view.js:293:24)
  at /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:3:61
  at /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133:30
  at Array.forEach (native)
  at Behavior.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132:47)
  at Behavior.module.exports.Behavior.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44:38)
  at Behavior.module.exports.Signal.emitValue (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/signal.js:82:19)
  at Pane.module.exports.Model.set (/Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:166:21)
  at Pane.accessor.set (/Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:57:23)
  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:189:25)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:174:14)
  at /Applications/Atom.app/Contents/Resources/app/src/workspace.js:214:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:787:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:816:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:749:13)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:557:44
  at flush (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:108:17)
  at process._tickCallback (node.js:605:11)

In file /Applications/Atom.app/Contents/Resources/app/src/workspace.js:223

richrace commented 10 years ago

What version of Atom are you using?

richrace commented 10 years ago

Did you have only the Settings View open? (No other Tabs?)

RobertGonzalez commented 10 years ago

This ticket can be closed I believe. I was on 0.96.0. After upgrading to 0.129.0 it is working without issue.

To answer your other question, it was failing both with the other tabs open and with just the Settings tab open. The only way to get it to close was to right click and choose "Close All Tabs". Of course, this is probably all moot at this point since I am now upgraded and the issue no longer presents itself. Apologies.

I will leave this open as it makes sense to allow you to determine if this is really an issue or not. It seems that asking users to update is not the worst thing in the world so I don't know that this is really an issue anymore.

richrace commented 10 years ago

Ah. You shouldn't have been able to install it if you were on 0.96.0. Which explains why the Editor didn't have that method.

I think this can be closed :)

On 19 Sep 2014, at 17:34, RobertGonzalez notifications@github.com wrote:

This ticket can be closed I believe. I was on 0.96.0. After upgrading to 0.129.0 it is working without issue.

To answer your other question, it was failing both with the other tabs open and with just the Settings tab open. The only way to get it to close was to right click and choose "Close All Tabs". Of course, this is probably all moot at this point since I am now upgraded and the issue no longer presents itself. Apologies.

I will leave this open as it makes sense to allow you to determine if this is really an issue or not. It seems that asking users to update is not the worst thing in the world so I don't know that this is really an issue anymore.

— Reply to this email directly or view it on GitHub.