Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
274 stars 19 forks source link

Unable to install core for 4.5.0 #445

Closed snowwolf007cn closed 6 years ago

snowwolf007cn commented 6 years ago

/Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 stream.socket.on @ internal/child_process.js:346 emitOne @ events.js:116 emit @ events.js:211 _handle.close @ net.js:554 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 ChildProcess._handle.onexit @ internal/child_process.js:209 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 stream.socket.on @ internal/child_process.js:346 emitOne @ events.js:116 emit @ events.js:211 _handle.close @ net.js:554 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 ChildProcess._handle.onexit @ internal/child_process.js:209 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/ComposerService.js:77 Composer has something to say:

/Users/zhangzhi/.atom/packages/php-ide-serenata/lib/ComposerService.js:77 Composer has something to say:
[InvalidArgumentException]
Could not find package serenata/serenata with version 4.3.0.

/Users/zhangzhi/.atom/packages/php-ide-serenata/lib/ComposerService.js:77 Composer has something to say: create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

/Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 ChildProcess._handle.onexit @ internal/child_process.js:209 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 Serenata unexpectedly closed. Either something caused the process to stop, it crashed, or the socket closed. In case of the first two, you should see additional output indicating this is the case and you can report a bug. If there is no additional output, you may be missing the right dependencies or extensions or the server may have run out of memory (you can increase it via the settings screen). process.on.code @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:184 emitTwo @ events.js:126 emit @ events.js:214 maybeClose @ internal/child_process.js:925 ChildProcess._handle.onexit @ internal/child_process.js:209 /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 The socket connection notified us of an error Error: connect ECONNREFUSED 127.0.0.1:20601 at Object._errnoException (util.js:1024) at _exceptionWithHostPort (util.js:1046) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182) onSocketError @ /Users/zhangzhi/.atom/packages/php-ide-serenata/lib/Proxy.js:308 emitOne @ events.js:116 emit @ events.js:211 emitErrorNT @ internal/streams/destroy.js:64 _combinedTickCallback @ internal/process/next_tick.js:138 _tickCallback @ internal/process/next_tick.js:180

UziTech commented 6 years ago

I have the same problem. An error shows right away and nothing shows in the developer console.

OS      : Windows 10
Atom    : 1.30.0-beta2
Electron: 2.0.5
Chrome  : 61.0.3163.100
Node    : 8.9.3
UziTech commented 6 years ago

I uninstalled php-ide-serenata, restarted atom then installed php-ide-serenata, and when I clicked to install the core I got the following error in the console:

connect ECONNREFUSED 127.0.0.1:17081
UziTech commented 6 years ago
  1. Close Atom
  2. Delete %USERPROFILE%\AppData\Roaming\php-ide-serenata
  3. Open Atom

worked!!

seb2411 commented 6 years ago

On Linux removing the ~/.cache/php-ide-serenata do the trick.

snowwolf007cn commented 6 years ago

I'm using the mac, so is there some magic same?

snowwolf007cn commented 6 years ago

I reinstall php-ide-serenata and try to install the core, composer tells me that serenata/serenata 4.3.0 is not found.

snowwolf007cn commented 6 years ago

After hours of work, I find a way to fix the problem on MAC, and follow steps blow:

  1. uninstall php-ide-serenata
  2. remove ~/Library/Preferences/php-ide-serenata/core and ~/Library/Preferences/php-ide-serenata/server rm -rf ~/Library/Preferences/php-ide-serenata/core ~/Library/Preferences/php-ide-serenata/server
  3. use apm to install php-ide-serenata@4.3.0, this version using serenata/serenata:4.1.0, and can be properly installed on atom. apm install php-ide-serenata@4.3.0
Gert-dev commented 6 years ago

This was likely a temporary issue with packagist not registering the new version yet or your Composer falling back to cache; I get it often when fairly rapidly trying to install a new version of a dependency I just tagged. Very annoying, but not something I can fix unfortunately.