Closed ryanaltvater closed 7 years ago
What was the setup when this issue occurred? This error can only mean the TextBuffer
was null - but the package ensure an active TextEditor
s before creating a SharePane.
So a buffer must have been destroyed within a text editor. Though I'm not too sure how that could happen - especially without removing that sharepane from the pairing session.
Did you happen to have a split window? This issue might take longer to diagnose
I suspect this is related to #52
I didn't have a split view, no. I received this error twice, and I actually wasn't looking at Atom when it occurred. I was in Chrome and when I went back to Atom, the error notification was there. That same thing happened twice. Sorry for the lack of specific details. =\
Just ran into this as well. My buddy joined my session and he got about half of my open tabs synced to his Atom, only the last one synced had any content (note it wasn't the last tab, just the last one that synced over to his session), all tabs were titled "untitled" in buddy's Atom, all but the last-synced were empty buffers. I believe the error appeared on my end when buddy closed the empty buffers/tabs.
Incidentally, I just happened to have the Pusher debug console open, because I was trying it out and was curious. So if there's some data I can try to pull from the debug that you think might be useful, let me know, I'll keep that tab open.
Thanks for the information! This is super helpful - I'll try recreating it later on and push a fix as soon as I can
Hi there, I've just published 2.0.5 which should address syncing already-open files. The question of why a buffer should a null isn't completely solved yet - but let me know how this addresses the issues :)
Just tried it again and got this error as soon as I joined. (2.0.5)
TypeError: undefined is not a function
at Function.module.exports.Range.fromText (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:49:20)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:539:24)
at /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:524:26
at TextBuffer.module.exports.TextBuffer.transact (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:755:18)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:522:21)
at TextBuffer.module.exports.TextBuffer.setText (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:459:19)
at /Users/klanni/.atom/packages/atom-pair/lib/modules/share_pane.coffee:75:33
at SharePane.module.exports.SharePane.withoutTrigger (/Users/klanni/.atom/packages/atom-pair/lib/modules/share_pane.coffee:131:7)
at /Users/klanni/.atom/packages/atom-pair/lib/modules/share_pane.coffee:74:24
at PresenceChannel.prototype.emit (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:855:17)
at PresenceChannel.prototype.handleEvent (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:3713:6)
at PresenceChannel.prototype.handleEvent (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:3831:51)
at /Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:74:9
at ConnectionManager.prototype.emit (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:855:17)
at message (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:3420:6)
at Connection.prototype.emit (/Users/klanni/.atom/packages/atom-pair/lib/pusher/pusher.js:855:17)
[Enter steps to reproduce below:]
Atom Version: 1.0.3 System: Mac OS X 10.10.4 Thrown From: atom-pair package, v2.0.1
Stack Trace
Uncaught TypeError: Cannot read property 'getText' of null
Commands
Installed Packages