question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Arguments to CompositeDisposable.add must have a .dispose() method

See original GitHub issue

Getting the folowing when choosing the “Split Diff: Enable” option after upgrading to Atom 1.11 on Mac:

/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:70

TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
    at assertDisposable (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:70:13)
    at CompositeDisposable.module.exports.CompositeDisposable.add (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:43:11)
    at new CompositeDisposable (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:19:14)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:265:29
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:388:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:372:28
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:491:20)
    at Object.module.exports.SplitDiff._getVisibleEditors (/Users/dunnga/.atom/packages/split-diff/lib/split-diff.coffee:339:17)
    at Object.module.exports.SplitDiff.diffPanes (/Users/dunnga/.atom/packages/split-diff/lib/split-diff.coffee:183:16)
    at atom-workspace.subscriptions.add.atom.commands.add.split-diff:enable (/Users/dunnga/.atom/packages/split-diff/lib/split-diff.coffee:32:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260: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:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:114:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mupchrchcommented, Oct 17, 2016

Appears to be a problem with trying to add a new text editor to a pane. I have filed https://github.com/atom/atom/issues/12963 as a result.

You can work around this by manually setting up 2 editors tabs side by side and then turning on split-diff.

I’m actively looking into the issue. Sorry about this everyone 😞

1reaction
mupchrchcommented, Oct 18, 2016

Issue is fixed in v1.11.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arguments to CompositeDisposable.add must have a .dispose ...
I'm still getting this. TypeError: Arguments to CompositeDisposable.add must have a .dispose() method at assertDisposable (/Applications/Atom.
Read more >
[SOLVED] Install error in ATOM when installing particle-dev ...
At Arguments to CompositeDisposable.add must have a .dispose() method TypeError: Arguments to CompositeDisposable.add must have a .dispose() ...
Read more >
Arguments to CompositeDisposable.add must have a .dispose ...
Arguments to CompositeDisposable.add must have a .dispose() method · Stack Trace. Failed to activate the atom-ternjs package. At Arguments to CompositeDisposable ...
Read more >
Platformio stop working after upgrade of linter-gcc package
At Arguments to CompositeDisposable.add must have a .dispose() method TypeError: Arguments to CompositeDisposable.add must have a .dispose() ...
Read more >
CompositeDisposable Essential
::add(...disposables) ;...disposables. Disposable instances or any objects with .dispose() methods.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found