Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to activate the php-integrator-base package #84

Closed
rebirthfate opened this issue Feb 5, 2016 · 9 comments
Closed

Failed to activate the php-integrator-base package #84

rebirthfate opened this issue Feb 5, 2016 · 9 comments
Labels

Comments

@rebirthfate
Copy link

[Enter steps to reproduce below:]

  1. ...
  2. ...

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

At Cannot read property 'querySelector' of null

TypeError: Cannot read property 'querySelector' of null
    at ClassProvider.module.exports.AbstractProvider.registerEvents (file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/AbstractProvider.coffee:93:57)
    at file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/AbstractProvider.coffee:51:18
    at Workspace.module.exports.Workspace.observeTextEditors (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\workspace.js:290:9)
    at ClassProvider.module.exports.AbstractProvider.doActualInitialization (file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/AbstractProvider.coffee:49:24)
    at ClassProvider.module.exports.AbstractProvider.activate (file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/AbstractProvider.coffee:31:14)
    at Object.module.exports.activateProviders (file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/Main.coffee:44:22)
    at Object.module.exports.setService (file:///C:/Users/rebirth_liang/.atom/packages/php-integrator-tooltips/lib/Main.coffee:61:10)
    at Provider.module.exports.Provider.provide (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\node_modules\service-hub\lib\provider.js:30:52)
    at ServiceHub.module.exports.ServiceHub.provide (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\node_modules\service-hub\lib\service-hub.js:30:20)
    at Package.module.exports.Package.activateServices (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:352:71)
    at Package.module.exports.Package.activateNow (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:186:16)
    at C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:156:32
    at Package.module.exports.Package.measure (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:92:15)
    at C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:149:26
    at Package.module.exports.Package.activate (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package.js:146:34)
    at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\package-manager.js:524:21)
    at C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\node_modules\settings-view\lib\package-manager.js:385:60
    at exit (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
    at triggerExitCallback (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\buffered-process.js:213:47)
    at ChildProcess.<anonymous> (C:\Users\rebirth_liang\AppData\Local\atom\app-1.4.3\resources\app.asar\src\buffered-process.js:235:18)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Commands

     -3:41.3.0 find-and-replace:show (input.hidden-input)
     -3:41 core:paste (input.hidden-input)
     -3:40.6.0 core:confirm (input.hidden-input)
     -3:37.3.0 core:copy (input.hidden-input)
     -3:37.1.0 find-and-replace:show (input.hidden-input)
     -3:36.9.0 core:paste (input.hidden-input)
     -3:36.6.0 core:confirm (input.hidden-input)
     -3:30 editor:consolidate-selections (input.hidden-input)
     -3:30 core:cancel (input.hidden-input)
     -2:20.3.0 editor:newline (input.hidden-input)
  2x -2:13 core:cut (input.hidden-input)
     -2:11.6.0 core:save (input.hidden-input)
     -1:56.5.0 core:copy (input.hidden-input)
     -1:54.4.0 core:paste (input.hidden-input)
     -1:52.5.0 core:save (input.hidden-input)
     -1:10.8.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-material-ui)

Config

{
  "core": {
    "audioBeep": false,
    "destroyEmptyPanes": false,
    "disabledPackages": [
      "linter-phpcs",
      "linter-jshint",
      "linter-jscs",
      "autocomplete-plus"
    ],
    "excludeVcsIgnoredPaths": false,
    "followSymlinks": false,
    "openEmptyEditorOnStart": false,
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  },
  "php-integrator-base": {
    "composerCommand": "C:\\ProgramData\\ComposerSetup\\bin\\composer.phar",
    "phpCommand": "C:\\xampp\\php\\php.exe"
  }
}

Installed Packages

# User
atom-autocomplete-php, v0.18.7
atom-beautify, v0.28.21
atom-jshint, v2.0.0
atom-material-syntax, v0.3.2
atom-material-ui, v0.8.1
jquery-snippets, v11.0.0
linter, v1.11.3
linter-php, v1.1.7
minimap, v4.19.0
php-integrator-annotations, v0.2.4
php-integrator-autocomplete-plus, v0.5.0
php-integrator-base, v0.5.2
php-integrator-call-tips, v0.2.0
php-integrator-navigation, v0.4.0
php-integrator-refactoring, v0.2.0
php-integrator-tooltips, v0.3.1
Remote-FTP, v0.7.15
sync-settings, v0.6.0
tabs-to-spaces, v1.0.1

# Dev
No dev packages
@ghost ghost added the bug label Feb 5, 2016
@ghost
Copy link

ghost commented Feb 5, 2016

Hello. Do you have Use Shadow DOM disabled in your Atom settings by any chance?

@ghost
Copy link

ghost commented Feb 19, 2016

I'll close this issue since there is no response. Feel free to reopen or create a new ticket if this problem persists.

@nelson6e65
Copy link

nelson6e65 commented Jul 21, 2017

I was redirected to this issue.

  1. Disabled the package
  2. Then activated

Atom: 1.18.0 x64
Electron: 1.3.15
OS: "Fedora release
Thrown From: php-integrator-base package 3.0.1

Stack Trace

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)

Commands

     -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)

Non-Core Packages

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 

@nelson6e65
Copy link

nelson6e65 commented Jul 21, 2017

I will remove all and reinstall the core.

@nelson6e65
Copy link

nelson6e65 commented Jul 21, 2017

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).

@w-barath
Copy link

w-barath commented Jul 26, 2017

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.

@w-barath
Copy link

w-barath commented Jul 26, 2017

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.

@Gert-dev
Copy link
Owner

Gert-dev commented Jul 28, 2017

@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.

@ajitbohra
Copy link

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants