{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/11712","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/11712/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/11712/comments","events_url":"https://api.github.com/repos/atom/atom/issues/11712/events","html_url":"https://github.com/atom/atom/issues/11712","id":153574289,"number":11712,"title":"Atom fails to open new windows from command line","user":{"login":"bedge","id":499317,"avatar_url":"https://avatars.githubusercontent.com/u/499317?v=3","gravatar_id":"","url":"https://api.github.com/users/bedge","html_url":"https://github.com/bedge","followers_url":"https://api.github.com/users/bedge/followers","following_url":"https://api.github.com/users/bedge/following{/other_user}","gists_url":"https://api.github.com/users/bedge/gists{/gist_id}","starred_url":"https://api.github.com/users/bedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedge/subscriptions","organizations_url":"https://api.github.com/users/bedge/orgs","repos_url":"https://api.github.com/users/bedge/repos","events_url":"https://api.github.com/users/bedge/events{/privacy}","received_events_url":"https://api.github.com/users/bedge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/atom/atom/labels/mac","name":"mac","color":"c7def8"},{"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800"},{"url":"https://api.github.com/repos/atom/atom/labels/needs-reproduction","name":"needs-reproduction","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-07T05:06:48Z","updated_at":"2016-05-23T21:28:03Z","closed_at":null,"body":"Atom Editor v1.7.3\r\n\r\nI used to open new atom windows using:\r\n`atom -n .`\r\nA few months ago that quit working. Now, from the shell, atom only opens a window if atom is not already running.\r\nI can still open a new window from inside the editor, but not from a shell.\r\n\r\nNow, if I open the first atom instance in the foreground, with logging enables, ie, with\r\n`atom -fnl`\r\nI get a log of the error when I try to open another window from a different shell instance:\r\n```\r\n%> atom -fnl\r\n[47311:0506/220409:WARNING:resource_bundle.cc(305)] locale_file_path.empty() for locale English\r\n[47311:0506/220409:WARNING:dns_config_service_posix.cc(146)] dns_config has unhandled options!\r\n2016-05-06 22:04:10.259 Atom[47311:6623754] App load time: 390ms\r\n[47311:0506/220410:INFO:CONSOLE(52)] \"Window load time: 330ms\", source: file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js (52)\r\n[47311:0506/220411:INFO:CONSOLE(29)] \"(node) sys is deprecated. Use util instead.\", source: internal/util.js (29)\r\n[47311:0506/220411:INFO:CONSOLE(0)] \"/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.\", source:  (0)\r\n[47311:0506/220411:INFO:CONSOLE(0)] \"::shadow pseudo-element is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.\", source:  (0)\r\n[47311:0506/220412:INFO:CONSOLE(85755)] \"WebSocket connection to 'ws://localhost:56166/a244ed92-2af0-4d9c-b2a7-79747864d2fe/browser' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED\", source: /Users/bedge/src/proton/plugin/lib/proton.js (85755)\r\n[47311:0506/220412:INFO:CONSOLE(85802)] \"DEVTOOLS: disconnected!\", source: /Users/bedge/src/proton/plugin/lib/proton.js (85802)\r\n```\r\nAttempted to open another window from shell here, log continues below:\r\n```\r\n2016-05-06 22:04:19.567 Atom[47311:6623754] Unexpected end of input\r\n2016-05-06 22:04:19.575 Atom[47311:6623754] SyntaxError: Unexpected end of input\r\n    at Object.parse (native)\r\n    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/browser/atom-application.js:232:28)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at Socket.Readable.push (_stream_readable.js:110:10)\r\n    at Pipe.onread (net.js:523:20)\r\n2016-05-06 22:04:19.576 Atom[47311:6623754] Unexpected token ?\r\n2016-05-06 22:04:19.577 Atom[47311:6623754] SyntaxError: Unexpected token ?\r\n    at Object.parse (native)\r\n    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/browser/atom-application.js:232:28)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at Socket.Readable.push (_stream_readable.js:110:10)\r\n    at Pipe.onread (net.js:523:20)\r\n```\r\nNote. while I am using the proton plugin now, this was happening without proton originally.\r\n\r\nSame behavior in --safe mode too."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/221101671","html_url":"https://github.com/atom/atom/issues/11712#issuecomment-221101671","issue_url":"https://api.github.com/repos/atom/atom/issues/11712","id":221101671,"user":{"login":"bedge","id":499317,"avatar_url":"https://avatars.githubusercontent.com/u/499317?v=3","gravatar_id":"","url":"https://api.github.com/users/bedge","html_url":"https://github.com/bedge","followers_url":"https://api.github.com/users/bedge/followers","following_url":"https://api.github.com/users/bedge/following{/other_user}","gists_url":"https://api.github.com/users/bedge/gists{/gist_id}","starred_url":"https://api.github.com/users/bedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedge/subscriptions","organizations_url":"https://api.github.com/users/bedge/orgs","repos_url":"https://api.github.com/users/bedge/repos","events_url":"https://api.github.com/users/bedge/events{/privacy}","received_events_url":"https://api.github.com/users/bedge/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T21:28:03Z","updated_at":"2016-05-23T21:28:03Z","body":"Nope, that's it. The first case - running 2 instances of atom passing a different path as an argument to each instance.\r\nThe first one opens atom at the specified path, the second one does not open any new windows.\r\n\r\nHowever, if the -fl args are specified for the initial atom instance, I get this error on the original console immediately after I try to instantiate the second instance:\r\n\r\n> 2016-05-23 14:26:15.015 Atom[57910:14693057] Unexpected end of input\r\n> 2016-05-23 14:26:15.020 Atom[57910:14693057] SyntaxError: Unexpected end of input\r\n>     at Object.parse (native)\r\n>     at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/browser/atom-application.js:232:28)\r\n>     at emitOne (events.js:77:13)\r\n>     at Socket.emit (events.js:169:7)\r\n>     at readableAddChunk (_stream_readable.js:146:16)\r\n>     at Socket.Readable.push (_stream_readable.js:110:10)\r\n>     at Pipe.onread (net.js:523:20)\r\n> 2016-05-23 14:26:15.020 Atom[57910:14693057] Unexpected token d\r\n> 2016-05-23 14:26:15.021 Atom[57910:14693057] SyntaxError: Unexpected token d\r\n>     at Object.parse (native)\r\n>     at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/browser/atom-application.js:232:28)\r\n>     at emitOne (events.js:77:13)\r\n>     at Socket.emit (events.js:169:7)\r\n>     at readableAddChunk (_stream_readable.js:146:16)\r\n>     at Socket.Readable.push (_stream_readable.js:110:10)\r\n>     at Pipe.onread (net.js:523:20)\r\n> "}}
{"actor":{"display_login":"bedge"}}