{"action":"created","comment":{"url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/comments/38472630","id":38472630,"diff_hunk":"@@ -9,15 +9,16 @@ class IdrisIdeMode extends EventEmitter\n   buffer: ''\n   idrisBuffers: 0\n \n-  constructor: ->\n-    pathToIdris = atom.config.get(\"language-idris.pathToIdris\")\n-    @process = spawn pathToIdris, ['--ide-mode']\n-    @process.on 'error', @error\n-    @process.on 'exit', @exited\n-    @process.on 'close', @exited\n-    @process.on 'disconnect', @exited\n+  start: ->\n+    if (not @process?) || @process.killed\n+      pathToIdris = atom.config.get(\"language-idris.pathToIdris\")\n+      @process = spawn pathToIdris, ['--ide-mode']\n+      @process.on 'error', @error\n+      @process.on 'exit', @exited","path":"lib/idris-ide-mode.coffee","position":16,"original_position":16,"commit_id":"a0175f89739e8dd54944316a5e76f5bb159982dd","original_commit_id":"a0175f89739e8dd54944316a5e76f5bb159982dd","user":{"login":"archaeron","id":471043,"avatar_url":"https://avatars.githubusercontent.com/u/471043?v=3","gravatar_id":"","url":"https://api.github.com/users/archaeron","html_url":"https://github.com/archaeron","followers_url":"https://api.github.com/users/archaeron/followers","following_url":"https://api.github.com/users/archaeron/following{/other_user}","gists_url":"https://api.github.com/users/archaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/archaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archaeron/subscriptions","organizations_url":"https://api.github.com/users/archaeron/orgs","repos_url":"https://api.github.com/users/archaeron/repos","events_url":"https://api.github.com/users/archaeron/events{/privacy}","received_events_url":"https://api.github.com/users/archaeron/received_events","type":"User","site_admin":false},"body":"No, good point. Not entirely sure what would be the most elegant way to do this.\r\nMaybe converting the callbacks to RxJS observables and using something like this: https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/debounce.md\r\n\r\nI don't like the callbacks anyway","created_at":"2015-09-01T21:10:32Z","updated_at":"2015-09-01T21:10:32Z","html_url":"https://github.com/idris-hackers/atom-language-idris/pull/54#discussion_r38472630","pull_request_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/comments/38472630"},"html":{"href":"https://github.com/idris-hackers/atom-language-idris/pull/54#discussion_r38472630"},"pull_request":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54","id":43694605,"html_url":"https://github.com/idris-hackers/atom-language-idris/pull/54","diff_url":"https://github.com/idris-hackers/atom-language-idris/pull/54.diff","patch_url":"https://github.com/idris-hackers/atom-language-idris/pull/54.patch","issue_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/54","number":54,"state":"open","locked":false,"title":"[WIP] restart the idris compiler after every commmand if it was killed","user":{"login":"archaeron","id":471043,"avatar_url":"https://avatars.githubusercontent.com/u/471043?v=3","gravatar_id":"","url":"https://api.github.com/users/archaeron","html_url":"https://github.com/archaeron","followers_url":"https://api.github.com/users/archaeron/followers","following_url":"https://api.github.com/users/archaeron/following{/other_user}","gists_url":"https://api.github.com/users/archaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/archaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archaeron/subscriptions","organizations_url":"https://api.github.com/users/archaeron/orgs","repos_url":"https://api.github.com/users/archaeron/repos","events_url":"https://api.github.com/users/archaeron/events{/privacy}","received_events_url":"https://api.github.com/users/archaeron/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-29T13:28:11Z","updated_at":"2015-09-01T21:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fbb82ade00f9b90d4027d3ee6652f67bd0573f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54/commits","review_comments_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54/comments","review_comment_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/54/comments","statuses_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/statuses/a0175f89739e8dd54944316a5e76f5bb159982dd","head":{"label":"idris-hackers:issue-51","ref":"issue-51","sha":"a0175f89739e8dd54944316a5e76f5bb159982dd","user":{"login":"idris-hackers","id":3963683,"avatar_url":"https://avatars.githubusercontent.com/u/3963683?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-hackers","html_url":"https://github.com/idris-hackers","followers_url":"https://api.github.com/users/idris-hackers/followers","following_url":"https://api.github.com/users/idris-hackers/following{/other_user}","gists_url":"https://api.github.com/users/idris-hackers/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-hackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-hackers/subscriptions","organizations_url":"https://api.github.com/users/idris-hackers/orgs","repos_url":"https://api.github.com/users/idris-hackers/repos","events_url":"https://api.github.com/users/idris-hackers/events{/privacy}","received_events_url":"https://api.github.com/users/idris-hackers/received_events","type":"Organization","site_admin":false},"repo":{"id":18728374,"name":"atom-language-idris","full_name":"idris-hackers/atom-language-idris","owner":{"login":"idris-hackers","id":3963683,"avatar_url":"https://avatars.githubusercontent.com/u/3963683?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-hackers","html_url":"https://github.com/idris-hackers","followers_url":"https://api.github.com/users/idris-hackers/followers","following_url":"https://api.github.com/users/idris-hackers/following{/other_user}","gists_url":"https://api.github.com/users/idris-hackers/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-hackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-hackers/subscriptions","organizations_url":"https://api.github.com/users/idris-hackers/orgs","repos_url":"https://api.github.com/users/idris-hackers/repos","events_url":"https://api.github.com/users/idris-hackers/events{/privacy}","received_events_url":"https://api.github.com/users/idris-hackers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idris-hackers/atom-language-idris","description":"A Idris Mode for Atom.io","fork":false,"url":"https://api.github.com/repos/idris-hackers/atom-language-idris","forks_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/forks","keys_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/teams","hooks_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/hooks","issue_events_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/events{/number}","events_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/events","assignees_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/assignees{/user}","branches_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/branches{/branch}","tags_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/tags","blobs_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/refs{/sha}","trees_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/statuses/{sha}","languages_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/languages","stargazers_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/stargazers","contributors_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/contributors","subscribers_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/subscribers","subscription_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/subscription","commits_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/commits{/sha}","git_commits_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/commits{/sha}","comments_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/comments{/number}","issue_comment_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/comments{/number}","contents_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/contents/{+path}","compare_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/merges","archive_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/downloads","issues_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues{/number}","pulls_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls{/number}","milestones_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/milestones{/number}","notifications_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/labels{/name}","releases_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/releases{/id}","created_at":"2014-04-13T12:10:44Z","updated_at":"2015-08-28T20:08:43Z","pushed_at":"2015-09-01T20:58:03Z","git_url":"git://github.com/idris-hackers/atom-language-idris.git","ssh_url":"git@github.com:idris-hackers/atom-language-idris.git","clone_url":"https://github.com/idris-hackers/atom-language-idris.git","svn_url":"https://github.com/idris-hackers/atom-language-idris","homepage":null,"size":571,"stargazers_count":21,"watchers_count":21,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":21,"default_branch":"master"}},"base":{"label":"idris-hackers:master","ref":"master","sha":"f07f25d4454a15ffac4910014f647c593fb26b90","user":{"login":"idris-hackers","id":3963683,"avatar_url":"https://avatars.githubusercontent.com/u/3963683?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-hackers","html_url":"https://github.com/idris-hackers","followers_url":"https://api.github.com/users/idris-hackers/followers","following_url":"https://api.github.com/users/idris-hackers/following{/other_user}","gists_url":"https://api.github.com/users/idris-hackers/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-hackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-hackers/subscriptions","organizations_url":"https://api.github.com/users/idris-hackers/orgs","repos_url":"https://api.github.com/users/idris-hackers/repos","events_url":"https://api.github.com/users/idris-hackers/events{/privacy}","received_events_url":"https://api.github.com/users/idris-hackers/received_events","type":"Organization","site_admin":false},"repo":{"id":18728374,"name":"atom-language-idris","full_name":"idris-hackers/atom-language-idris","owner":{"login":"idris-hackers","id":3963683,"avatar_url":"https://avatars.githubusercontent.com/u/3963683?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-hackers","html_url":"https://github.com/idris-hackers","followers_url":"https://api.github.com/users/idris-hackers/followers","following_url":"https://api.github.com/users/idris-hackers/following{/other_user}","gists_url":"https://api.github.com/users/idris-hackers/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-hackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-hackers/subscriptions","organizations_url":"https://api.github.com/users/idris-hackers/orgs","repos_url":"https://api.github.com/users/idris-hackers/repos","events_url":"https://api.github.com/users/idris-hackers/events{/privacy}","received_events_url":"https://api.github.com/users/idris-hackers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idris-hackers/atom-language-idris","description":"A Idris Mode for Atom.io","fork":false,"url":"https://api.github.com/repos/idris-hackers/atom-language-idris","forks_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/forks","keys_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/teams","hooks_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/hooks","issue_events_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/events{/number}","events_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/events","assignees_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/assignees{/user}","branches_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/branches{/branch}","tags_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/tags","blobs_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/refs{/sha}","trees_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/statuses/{sha}","languages_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/languages","stargazers_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/stargazers","contributors_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/contributors","subscribers_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/subscribers","subscription_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/subscription","commits_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/commits{/sha}","git_commits_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/git/commits{/sha}","comments_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/comments{/number}","issue_comment_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/comments{/number}","contents_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/contents/{+path}","compare_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/merges","archive_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/downloads","issues_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues{/number}","pulls_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls{/number}","milestones_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/milestones{/number}","notifications_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/labels{/name}","releases_url":"https://api.github.com/repos/idris-hackers/atom-language-idris/releases{/id}","created_at":"2014-04-13T12:10:44Z","updated_at":"2015-08-28T20:08:43Z","pushed_at":"2015-09-01T20:58:03Z","git_url":"git://github.com/idris-hackers/atom-language-idris.git","ssh_url":"git@github.com:idris-hackers/atom-language-idris.git","clone_url":"https://github.com/idris-hackers/atom-language-idris.git","svn_url":"https://github.com/idris-hackers/atom-language-idris","homepage":null,"size":571,"stargazers_count":21,"watchers_count":21,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54"},"html":{"href":"https://github.com/idris-hackers/atom-language-idris/pull/54"},"issue":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/54"},"comments":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/idris-hackers/atom-language-idris/statuses/a0175f89739e8dd54944316a5e76f5bb159982dd"}}}}