{"action":"created","comment":{"url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments/45588341","id":45588341,"diff_hunk":"@@ -37,7 +37,16 @@ export class Simctl implements ISimctl {\n \t}\n \n \tpublic getAppContainer(deviceId: string, applicationIdentifier: string): IFuture<string> {\n-\t\treturn this.simctlExec(\"get_app_container\", [deviceId, applicationIdentifier]);\n+\t\treturn (() => {\n+\t\t\ttry {\n+\t\t\t\treturn this.simctlExec(\"get_app_container\", [deviceId, applicationIdentifier]).wait();\n+\t\t\t} catch(e) {\n+\t\t\t\tif (e.message.indexOf(\"No such file or directory\") > -1) {","path":"lib/simctl.ts","position":9,"original_position":9,"commit_id":"1eb493d96c6169fe80d82ae07261305d6f66d805","original_commit_id":"1eb493d96c6169fe80d82ae07261305d6f66d805","user":{"login":"teobugslayer","id":5443453,"avatar_url":"https://avatars.githubusercontent.com/u/5443453?v=3","gravatar_id":"","url":"https://api.github.com/users/teobugslayer","html_url":"https://github.com/teobugslayer","followers_url":"https://api.github.com/users/teobugslayer/followers","following_url":"https://api.github.com/users/teobugslayer/following{/other_user}","gists_url":"https://api.github.com/users/teobugslayer/gists{/gist_id}","starred_url":"https://api.github.com/users/teobugslayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teobugslayer/subscriptions","organizations_url":"https://api.github.com/users/teobugslayer/orgs","repos_url":"https://api.github.com/users/teobugslayer/repos","events_url":"https://api.github.com/users/teobugslayer/events{/privacy}","received_events_url":"https://api.github.com/users/teobugslayer/received_events","type":"User","site_admin":false},"body":"I strongly recommend to explain in a comment why we have this code. It is very unnatural and two months late we won't remember why it is there.\r\n\r\nThat said, are we sure this is the *correct* way? Is it possible to get this message in other scenarios, thus trigger a false positive?","created_at":"2015-11-23T10:28:41Z","updated_at":"2015-11-23T10:28:41Z","html_url":"https://github.com/telerik/ios-sim-portable/pull/47#discussion_r45588341","pull_request_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments/45588341"},"html":{"href":"https://github.com/telerik/ios-sim-portable/pull/47#discussion_r45588341"},"pull_request":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47","id":51503336,"html_url":"https://github.com/telerik/ios-sim-portable/pull/47","diff_url":"https://github.com/telerik/ios-sim-portable/pull/47.diff","patch_url":"https://github.com/telerik/ios-sim-portable/pull/47.patch","issue_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/47","number":47,"state":"open","locked":false,"title":"Doesn't throw error when the application is not installed on the iOS simulator","user":{"login":"Fatme","id":760518,"avatar_url":"https://avatars.githubusercontent.com/u/760518?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatme","html_url":"https://github.com/Fatme","followers_url":"https://api.github.com/users/Fatme/followers","following_url":"https://api.github.com/users/Fatme/following{/other_user}","gists_url":"https://api.github.com/users/Fatme/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatme/subscriptions","organizations_url":"https://api.github.com/users/Fatme/orgs","repos_url":"https://api.github.com/users/Fatme/repos","events_url":"https://api.github.com/users/Fatme/events{/privacy}","received_events_url":"https://api.github.com/users/Fatme/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-23T09:55:57Z","updated_at":"2015-11-23T10:28:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85062b439248103b1bf0f65800161a1d4b52c899","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47/commits","review_comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47/comments","review_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/47/comments","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/1eb493d96c6169fe80d82ae07261305d6f66d805","head":{"label":"telerik:fatme/fix-livesync","ref":"fatme/fix-livesync","sha":"1eb493d96c6169fe80d82ae07261305d6f66d805","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":26213988,"name":"ios-sim-portable","full_name":"telerik/ios-sim-portable","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/ios-sim-portable","description":"A Node.js command-line utility to launch an iOS application bundle (.app) in the Xcode iOS Simulator","fork":false,"url":"https://api.github.com/repos/telerik/ios-sim-portable","forks_url":"https://api.github.com/repos/telerik/ios-sim-portable/forks","keys_url":"https://api.github.com/repos/telerik/ios-sim-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/ios-sim-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/ios-sim-portable/teams","hooks_url":"https://api.github.com/repos/telerik/ios-sim-portable/hooks","issue_events_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/ios-sim-portable/events","assignees_url":"https://api.github.com/repos/telerik/ios-sim-portable/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/ios-sim-portable/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/tags","blobs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/ios-sim-portable/languages","stargazers_url":"https://api.github.com/repos/telerik/ios-sim-portable/stargazers","contributors_url":"https://api.github.com/repos/telerik/ios-sim-portable/contributors","subscribers_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscribers","subscription_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscription","commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/ios-sim-portable/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/ios-sim-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/ios-sim-portable/merges","archive_url":"https://api.github.com/repos/telerik/ios-sim-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/ios-sim-portable/downloads","issues_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/ios-sim-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/ios-sim-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/ios-sim-portable/labels{/name}","releases_url":"https://api.github.com/repos/telerik/ios-sim-portable/releases{/id}","created_at":"2014-11-05T10:09:32Z","updated_at":"2015-10-28T07:50:27Z","pushed_at":"2015-11-23T09:55:58Z","git_url":"git://github.com/telerik/ios-sim-portable.git","ssh_url":"git@github.com:telerik/ios-sim-portable.git","clone_url":"https://github.com/telerik/ios-sim-portable.git","svn_url":"https://github.com/telerik/ios-sim-portable","homepage":"","size":146,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"telerik:master","ref":"master","sha":"ce7c0f61e77e0e821b67799ed4fc076332fc60e8","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":26213988,"name":"ios-sim-portable","full_name":"telerik/ios-sim-portable","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/ios-sim-portable","description":"A Node.js command-line utility to launch an iOS application bundle (.app) in the Xcode iOS Simulator","fork":false,"url":"https://api.github.com/repos/telerik/ios-sim-portable","forks_url":"https://api.github.com/repos/telerik/ios-sim-portable/forks","keys_url":"https://api.github.com/repos/telerik/ios-sim-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/ios-sim-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/ios-sim-portable/teams","hooks_url":"https://api.github.com/repos/telerik/ios-sim-portable/hooks","issue_events_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/ios-sim-portable/events","assignees_url":"https://api.github.com/repos/telerik/ios-sim-portable/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/ios-sim-portable/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/tags","blobs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/ios-sim-portable/languages","stargazers_url":"https://api.github.com/repos/telerik/ios-sim-portable/stargazers","contributors_url":"https://api.github.com/repos/telerik/ios-sim-portable/contributors","subscribers_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscribers","subscription_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscription","commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/ios-sim-portable/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/ios-sim-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/ios-sim-portable/merges","archive_url":"https://api.github.com/repos/telerik/ios-sim-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/ios-sim-portable/downloads","issues_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/ios-sim-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/ios-sim-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/ios-sim-portable/labels{/name}","releases_url":"https://api.github.com/repos/telerik/ios-sim-portable/releases{/id}","created_at":"2014-11-05T10:09:32Z","updated_at":"2015-10-28T07:50:27Z","pushed_at":"2015-11-23T09:55:58Z","git_url":"git://github.com/telerik/ios-sim-portable.git","ssh_url":"git@github.com:telerik/ios-sim-portable.git","clone_url":"https://github.com/telerik/ios-sim-portable.git","svn_url":"https://github.com/telerik/ios-sim-portable","homepage":"","size":146,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47"},"html":{"href":"https://github.com/telerik/ios-sim-portable/pull/47"},"issue":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/issues/47"},"comments":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/1eb493d96c6169fe80d82ae07261305d6f66d805"}}}}