{"action":"created","issue":{"url":"https://api.github.com/repos/php-integrator/atom-base/issues/259","repository_url":"https://api.github.com/repos/php-integrator/atom-base","labels_url":"https://api.github.com/repos/php-integrator/atom-base/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/php-integrator/atom-base/issues/259/comments","events_url":"https://api.github.com/repos/php-integrator/atom-base/issues/259/events","html_url":"https://github.com/php-integrator/atom-base/issues/259","id":195584436,"number":259,"title":"Socket connection with the PHP server could not be established","user":{"login":"franiglesias","id":16079996,"avatar_url":"https://avatars.githubusercontent.com/u/16079996?v=3","gravatar_id":"","url":"https://api.github.com/users/franiglesias","html_url":"https://github.com/franiglesias","followers_url":"https://api.github.com/users/franiglesias/followers","following_url":"https://api.github.com/users/franiglesias/following{/other_user}","gists_url":"https://api.github.com/users/franiglesias/gists{/gist_id}","starred_url":"https://api.github.com/users/franiglesias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franiglesias/subscriptions","organizations_url":"https://api.github.com/users/franiglesias/orgs","repos_url":"https://api.github.com/users/franiglesias/repos","events_url":"https://api.github.com/users/franiglesias/events{/privacy}","received_events_url":"https://api.github.com/users/franiglesias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":65,"created_at":"2016-12-14T16:49:31Z","updated_at":"2016-12-28T16:56:04Z","closed_at":null,"body":"Hi,\r\n\r\nI'm getting this error several times, after restarting Atom\r\n\r\n> PHP Integrator - Oops, something went wrong!\r\n> The socket connection with the PHP server could not be established. This means the PHP server could not be spawned. This is most likely an issue with your setup, such as your PHP binary not being found, an extension missing on your system, ...\r\n\r\nDeveloper tools console shows:\r\n\r\n> The PHP server has something to say: Starting socket server on port 30441...\r\n\r\n\r\nand then...\r\n\r\n> events.js:160 Uncaught Error: connect ECONNREFUSED 127.0.0.1:30441\r\n\r\n\r\nIf I force reindex, I get this after completion, and work normally for a while:\r\n\r\n> /Users/miralba/.atom/packages/php-integrator-base/lib/Main.coffee:302\r\n> php-integrator-base - Indexing: 575727.754ms\r\n> /Users/miralba/.atom/packages/php-integrator-base/lib/Main.coffee:302 php-integrator-base - Indexing: 1056.668ms\r\n> /Users/miralba/.atom/packages/php-integrator-base/lib/Main.coffee:302 php-integrator-base - Indexing: 1256.311ms\r\n\r\nAnd, then, a new message \r\n\r\n> PHP Integrator - Oops, something went wrong!\r\n> The socket connection to the PHP server was unexpectedly closed. Either something caused the process to stop, the socket to close, or the PHP process may have crashed. If you're sure it's the last one, feel free to report a bug.\r\n>  \r\n> An attempt will be made to restart the server and reestablish the connection.\r\n> \r\n\r\nAfter that, it attempts to reindex, but it seems stalled and it never starts. A null.sql appears in .atom/packages/php-integrator-base/indexes\r\n\r\nI'm not sure what's going on, I think my PHP is right (php-integrator worked fine before last updates).\r\n\r\nThe problem appears randomly. I've been working for an while, and after editing several files with no problem, the PHP server died again.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/php-integrator/atom-base/issues/comments/269505488","html_url":"https://github.com/php-integrator/atom-base/issues/259#issuecomment-269505488","issue_url":"https://api.github.com/repos/php-integrator/atom-base/issues/259","id":269505488,"user":{"login":"claytonrcarter","id":1420419,"avatar_url":"https://avatars.githubusercontent.com/u/1420419?v=3","gravatar_id":"","url":"https://api.github.com/users/claytonrcarter","html_url":"https://github.com/claytonrcarter","followers_url":"https://api.github.com/users/claytonrcarter/followers","following_url":"https://api.github.com/users/claytonrcarter/following{/other_user}","gists_url":"https://api.github.com/users/claytonrcarter/gists{/gist_id}","starred_url":"https://api.github.com/users/claytonrcarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claytonrcarter/subscriptions","organizations_url":"https://api.github.com/users/claytonrcarter/orgs","repos_url":"https://api.github.com/users/claytonrcarter/repos","events_url":"https://api.github.com/users/claytonrcarter/events{/privacy}","received_events_url":"https://api.github.com/users/claytonrcarter/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T16:56:04Z","updated_at":"2016-12-28T16:56:04Z","body":"It took a while, but I finally experienced the \"Unexpected token\" error again. This is different from the most common error I'm experiencing, where the package gets stuck indexing, the socket never reconnects, and no errors are logged to the console.  Regardless, I have gisted the console dump here: https://gist.github.com/claytonrcarter/af17a9311499633e4cedc80bcf146c90\r\n\r\nI'm experiencing these issues on MacOS 10.11.2 :\r\n```\r\n~/D/tmp $ atom -v\r\nAtom    : 1.12.7\r\nElectron: 1.3.13\r\nChrome  : 52.0.2743.82\r\nNode    : 6.5.0\r\n~/D/tmp $ php -v\r\nPHP 5.6.24 (cli) (built: Jul 22 2016 02:41:22)\r\n```\r\nLet me know if/how I can keep helping.  I'm eager to help stabilize this."}}
{"actor":{"display_login":"claytonrcarter"}}