Closed rebirthfate closed 8 years ago
Hello. Do you have Use Shadow DOM
disabled in your Atom settings by any chance?
I'll close this issue since there is no response. Feel free to reopen or create a new ticket if this problem persists.
I was redirected to this issue.
Atom: 1.18.0 x64 Electron: 1.3.15 OS: "Fedora release Thrown From: php-integrator-base package 3.0.1
Failed to activate the php-integrator-base package
At Arguments to CompositeDisposable.add must have a .dispose() method
TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
at assertDisposable (/usr/share/atom/resources/app/node_modules/event-kit/lib/composite-disposable.js:74:19)
at CompositeDisposable.module.exports.CompositeDisposable.add (/usr/share/atom/resources/app/node_modules/event-kit/lib/composite-disposable.js:43:17)
at requireAutocompleteManagerAsync (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:110:29)
at Object.requireAutocompleteManagerAsync (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:31:15)
at Object.consumeProvider (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:107:16)
at Object.consumeProvider_3_0 (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:92:23)
at Provider.module.exports.Provider.provide (/usr/share/atom/resources/app/node_modules/service-hub/lib/provider.js:34:58)
at ServiceHub.module.exports.ServiceHub.provide (/usr/share/atom/resources/app/node_modules/service-hub/lib/service-hub.js:30:26)
at Package.module.exports.Package.activateServices (/usr/share/atom/resources/app/src/package.js:446:77)
at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app/src/package.js:256:22)
at /usr/share/atom/resources/app/src/package.js:225:38
at Package.module.exports.Package.measure (/usr/share/atom/resources/app/src/package.js:99:21)
at /usr/share/atom/resources/app/src/package.js:218:32
at Package.module.exports.Package.activate (/usr/share/atom/resources/app/src/package.js:215:40)
at PackageManager.module.exports.PackageManager.activatePackage (/usr/share/atom/resources/app/src/package-manager.js:645:40)
at /usr/share/atom/resources/app/src/package-manager.js:377:25
at /usr/share/atom/resources/app/src/config.js:644:26
at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
at Config.module.exports.Config.emitChangeEvent (/usr/share/atom/resources/app/src/config.js:835:35)
at Config.module.exports.Config.setRawValue (/usr/share/atom/resources/app/src/config.js:621:25)
at Config.module.exports.Config.set (/usr/share/atom/resources/app/src/config.js:236:20)
at Config.module.exports.Config.removeAtKeyPath (/usr/share/atom/resources/app/src/config.js:386:18)
at Package.module.exports.Package.enable (/usr/share/atom/resources/app/src/package.js:84:32)
at PackageManager.module.exports.PackageManager.enablePackage (/usr/share/atom/resources/app/src/package-manager.js:188:20)
at HTMLButtonElement.enablementButtonClickHandler (/usr/share/atom/resources/app/node_modules/settings-view/lib/package-card.js:361:31)
-8:39.4.0 intentions:highlight (input.hidden-input)
-8:37.6.0 core:save (input.hidden-input)
-7:31.8.0 editor:fold-at-indent-level-1 (input.hidden-input)
-7:25.1.0 editor:fold-at-indent-level-2 (input.hidden-input)
-6:49.5.0 docblockr:parse-enter (input.hidden-input)
-6:49.5.0 editor:newline (input.hidden-input)
7x -6:44.6.0 core:backspace (input.hidden-input)
-6:42.4.0 docblockr:parse-tab (input.hidden-input)
-6:42.4.0 snippets:next-tab-stop (input.hidden-input)
-6:42.4.0 snippets:expand (input.hidden-input)
-6:42.4.0 editor:indent (input.hidden-input)
2x -6:35.8.0 core:delete (input.hidden-input)
-6:34.5.0 intentions:highlight (input.hidden-input)
-6:34.3.0 core:save (input.hidden-input)
-6:16.5.0 core:confirm (input.hidden-input)
-5:07.5.0 core:delete (input.hidden-input)
atom-beautify 0.30.4
atom-text-transformer 0.7.0
auto-detect-indentation 1.3.0
auto-indent 0.5.0
autoclose-html 0.23.0
autocomplete-html-entities 0.1.0
autocomplete-php 0.3.7
autohide-tree-view 0.25.1
busy-signal 1.4.3
color-picker 2.2.5
docblockr 0.11.0
docs-snippets 0.8.0
escape-utils 0.5.3
hyperclick 0.1.2
indentation-indicator 1.0.0
intentions 1.1.2
language-blade 0.34.0
language-latte 0.4.0
language-vue 0.23.0
language-vue-component 0.5.0
line-ending-converter 1.3.2
lint-sass-vue 1.0.5
linter 2.2.0
linter-bootlint 1.0.4
linter-coffeelint 1.2.1
linter-csslint 1.3.4
linter-eslint 8.2.1
linter-htmlhint 1.3.3
linter-jslint 11.1.0
linter-php 1.3.2
linter-phpcs 1.6.7
linter-shellcheck 1.4.4
linter-stylelint 4.0.0
linter-ui-default 1.6.3
linter-xmllint 1.4.3
markdown-toc 0.4.2
merge-conflicts 1.4.5
minimap 4.29.0
php-getters-setters 0.5.5
php-integrator-annotations 1.2.0
php-integrator-autocomplete-plus 1.6.0
php-integrator-base 3.0.1
php-integrator-navigation 1.2.1
php-integrator-refactoring 1.4.0
php-integrator-symbol-viewer 0.6.4
pigments 0.39.1
project-manager 3.3.5
sync-settings 0.8.2
tester 1.4.0
tester-phpunit 1.0.6
vue2-autocomplete 0.1.0-alpha.4
vuejs2-snippets 0.9.0
wakatime 7.0.3
I will remove all and reinstall the core.
I solved by running composer install --no-dev
in ~/.atom/packages/php-integrator-base/core/3.0.0
and restarting atom.
In the core installation logs, composer failed to autoload some binary (sorry, I lost log before to copy).
I rm -rf 'd the contents of the plugins folder and installed the latest 1.18.0 and still have the same problem, rm -rf'd ~/.atom and even then I can't install php-integrator-base, it always fails saying that core failed, but no traceback and the red notification disappears without any opportunity to interrogate it for more information.
When I load a .php file and reinstall the plugin I get this traceback for the failure to install the the base package, this is independent of 'core':
TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
at assertDisposable (/usr/share/atom/resources/app/node_modules/event-kit/lib/composite-disposable.js:74:19)
at CompositeDisposable.module.exports.CompositeDisposable.add (/usr/share/atom/resources/app/node_modules/event-kit/lib/composite-disposable.js:43:17)
at requireAutocompleteManagerAsync (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:110:29)
at Object.requireAutocompleteManagerAsync (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:31:15)
at Object.consumeProvider (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:107:16)
at Object.consumeProvider_3_0 (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/main.js:92:23)
at Provider.module.exports.Provider.provide (/usr/share/atom/resources/app/node_modules/service-hub/lib/provider.js:34:58)
at ServiceHub.module.exports.ServiceHub.provide (/usr/share/atom/resources/app/node_modules/service-hub/lib/service-hub.js:30:26)
at Package.module.exports.Package.activateServices (/usr/share/atom/resources/app/src/package.js:446:77)
at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app/src/package.js:256:22)
at /usr/share/atom/resources/app/src/package.js:225:38
at Package.module.exports.Package.measure (/usr/share/atom/resources/app/src/package.js:99:21)
at /usr/share/atom/resources/app/src/package.js:218:32
at Package.module.exports.Package.activate (/usr/share/atom/resources/app/src/package.js:215:40)
at PackageManager.module.exports.PackageManager.activatePackage (/usr/share/atom/resources/app/src/package-manager.js:645:40)
at /usr/share/atom/resources/app/node_modules/settings-view/lib/package-manager.js:519:35
at exit (/usr/share/atom/resources/app/node_modules/settings-view/lib/package-manager.js:128:22)
at triggerExitCallback (/usr/share/atom/resources/app/src/buffered-process.js:338:17)
at /usr/share/atom/resources/app/src/buffered-process.js:359:17
at Socket.<anonymous> (/usr/share/atom/resources/app/src/buffered-process.js:220:15)
at emitOne (events.js:101:20)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
no joy for me with nelson6365's solution:
$ cd ~/.atom/packages/php-integrator-base/core/3.0.0
bash: cd: /home/sid/.atom/packages/php-integrator-base/core/3.0.0: No such file or directory
I'm running Xenial with php 7.1 via a ppa, so it's nothing to do with lacking 7.1, but just for curiosity I tried installing the legacy-php56 version and it has the same failure to install core error but no traceback when I open a PHP file or reinstall base.
Sadly I can't even go back to the previous version of Atom because the Atom repo does not keep older, compatible versions of the packages around, so I'm forced to switch to NetBeans until Atom becomes usable again.
To reproduce the error:
Boot Ubuntu 17.04 livecd.
apt-get install php7.0-cli;
Install Atom 1.18.0, install the php-integrator-base.
After several prompts to install dependencies you will get a red notification "Core installation failed" which appears and goes away out of context of the installation so it isn't immediately obvious what it means or whether anything can be done about it.
Create a new php file and save it. Try any features of the php-integrator, none will work.
Try disabling and re-enabling php-integrator-base. You will get a blue notice that Core is not installed yet and it is being fetched, then the red notification that it failed.
So I can rule out that it has anything to do with Xenial or anything to do with pre-existing data on my user account.
@nelson6e65 Atom automatically redirects items with the same error message, but the issue is not related. Feel free to create a new one if it continues to pose a problem.
@w-barath If you're still experiencing problems, please create a new issue, since the original issue was related to the shadow DOM.
php-integrator requires latest https://gitlab.com/php-integrator/core which further requires php7.1 along with another extensions
Installing php7.1 & following extensions in my case helped
sudo apt-get install php7.1-mbstring
sudo apt-get install php7.1-sqlite3
sudo apt-get install php7.1-xml
[Enter steps to reproduce below:]
Atom Version: 1.4.3 System: Unknown Windows Version Thrown From: php-integrator-base package, v0.5.2
Stack Trace
Failed to activate the php-integrator-base package
Commands
Config
Installed Packages