{"action":"closed","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/7312","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/7312/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/7312/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/7312/events","html_url":"https://github.com/meteor/meteor/issues/7312","id":162423784,"number":7312,"title":"Shell throws an exception when a key is pressed during Meteor's rebuild","user":{"login":"kachkaev","id":608862,"avatar_url":"https://avatars.githubusercontent.com/u/608862?v=3","gravatar_id":"","url":"https://api.github.com/users/kachkaev","html_url":"https://github.com/kachkaev","followers_url":"https://api.github.com/users/kachkaev/followers","following_url":"https://api.github.com/users/kachkaev/following{/other_user}","gists_url":"https://api.github.com/users/kachkaev/gists{/gist_id}","starred_url":"https://api.github.com/users/kachkaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachkaev/subscriptions","organizations_url":"https://api.github.com/users/kachkaev/orgs","repos_url":"https://api.github.com/users/kachkaev/repos","events_url":"https://api.github.com/users/kachkaev/events{/privacy}","received_events_url":"https://api.github.com/users/kachkaev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/bug","name":"bug","color":"b60205"},{"url":"https://api.github.com/repos/meteor/meteor/labels/confirmed","name":"confirmed","color":"f2831d"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Impact:some","name":"Impact:some","color":"fef2c0"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Tool:Shell","name":"Project:Tool:Shell","color":"009800"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Severity:has-workaround","name":"Severity:has-workaround","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"assignees":[{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/meteor/meteor/milestones/12","html_url":"https://github.com/meteor/meteor/milestones/Release%201.4","labels_url":"https://api.github.com/repos/meteor/meteor/milestones/12/labels","id":1734688,"number":12,"title":"Release 1.4","description":null,"creator":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2016-04-27T18:02:56Z","updated_at":"2016-06-29T17:55:30Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-27T10:47:27Z","updated_at":"2016-06-29T17:55:30Z","closed_at":"2016-06-29T17:55:30Z","body":"I've been seeing this for a while and finally decided to report. This is probably applicable to any Meteor 1.3.*\r\n\r\nThe following exception frequently occurs when Meteor shell is interacted while Meteor is rebuilding itself:\r\n\r\n```\r\nW20160627-11:35:56.831(1)? (STDERR)\r\nW20160627-11:35:56.936(1)? (STDERR) /path/to/project/.meteor/local/build/programs/server/shell-server.js:164\r\nW20160627-11:35:56.936(1)? (STDERR)     if (options.key !== self.key) {\r\nW20160627-11:35:56.936(1)? (STDERR)                ^\r\nW20160627-11:35:56.937(1)? (STDERR) TypeError: Cannot read property 'key' of undefined\r\nW20160627-11:35:56.937(1)? (STDERR)     at /path/to/project/.meteor/local/build/programs/server/shell-server.js:164:16\r\nW20160627-11:35:56.938(1)? (STDERR)     at finish (/path/to/project/.meteor/local/build/programs/server/shell-server.js:130:7)\r\nW20160627-11:35:56.938(1)? (STDERR)     at Socket.onClose (/path/to/project/.meteor/local/build/programs/server/shell-server.js:120:5)\r\nW20160627-11:35:56.938(1)? (STDERR)     at Socket.emit (events.js:117:20)\r\nW20160627-11:35:56.938(1)? (STDERR)     at TCP.close (net.js:466:12)\r\n```\r\nI'm experiencing this when running both the shell and meteor itself in a single terminal tab, but I guess the exception will still trigger regardless of this.\r\n\r\n## Steps to reproduce\r\n\r\n1. Run `meteor run & meteor shell; lsof -P | grep ':3000' | awk '{print $2}' | xargs kill -9` – this will start Meteor in the background and will then open the shell in the foreground. _This lets you see the console output without switching between the tabs. When the shell is closed with `^C`, meteor server is also killed._\r\n\r\n2. Play a bit with the shell.\r\n\r\n3. Change one of the project files so that Meteor started to rebuild.\r\n\r\n4. While rebuild is taking place, pass any key press to the shell (I often accidentally press `up` trying to bring up previous shell commands because I think that Meteor has already stopped building, but it has not).\r\n\r\n5. See the above error once Meteor build has finished.\r\n\r\nEvery time the exception occurs I have to restart the server because the shell quits and therefore Meteor's background process gets killed.\r\n\r\nAny thoughts?"}}
{"actor":{"display_login":"benjamn"}}