{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-vs-code/pulls/comments/185375224","pull_request_review_id":116749621,"id":185375224,"diff_hunk":"@@ -102,7 +94,40 @@ def send_diagnostics(self, path, diagnostics):\n             'uri': 'file://{0}'.format(path),\n             'diagnostics': _diagnostics,\n         }\n-        self.send_notification('textDocument/publishDiagnostics', params)\n+        self._endpoint.notify('textDocument/publishDiagnostics', params=params)\n+\n+\n+def start_tcp_lang_server(bind_addr, port, handler_class):\n+    if not issubclass(handler_class, LangServer):\n+        raise ValueError('Handler class must be an instance of LangServer')\n+\n+    # Construct a custom wrapper class around the user's handler_class\n+    wrapper_class = type(\n+        handler_class.__name__ + 'Handler',\n+        (_StreamHandlerWrapper,),\n+        {'DELEGATE_CLASS': handler_class}\n+    )\n+\n+    try:\n+        server = socketserver.TCPServer((bind_addr, port), wrapper_class)\n+    except Exception as e:\n+        log('Fatal Exception: {}'.format(e))\n+        sys.exit(1)\n+    try:\n+        log('Serving %s on (%s, %s)', handler_class.__name__, bind_addr, port)\n+        server.serve_forever()\n+    finally:\n+        log('Shutting down')\n+        server.server_close()\n+\n+\n+def start_io_lang_server(rfile, wfile, handler_class):\n+    if not issubclass(handler_class, LangServer):\n+        raise ValueError(\n+            'Handler class must be an instance of PythonLanguageServer')","path":"coala_langserver/langserver.py","position":144,"original_position":144,"commit_id":"96b508512b5018f72f0c84ed0fce0da4b8d28387","original_commit_id":"96b508512b5018f72f0c84ed0fce0da4b8d28387","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars1.githubusercontent.com/u/15092?v=4","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"body":"class name `PythonLanguageServer` isnt correct.","created_at":"2018-05-02T01:26:19Z","updated_at":"2018-05-02T01:29:01Z","html_url":"https://github.com/coala/coala-vs-code/pull/32#discussion_r185375224","pull_request_url":"https://api.github.com/repos/coala/coala-vs-code/pulls/32","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/comments/185375224"},"html":{"href":"https://github.com/coala/coala-vs-code/pull/32#discussion_r185375224"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-vs-code/pulls/32","id":177455613,"html_url":"https://github.com/coala/coala-vs-code/pull/32","diff_url":"https://github.com/coala/coala-vs-code/pull/32.diff","patch_url":"https://github.com/coala/coala-vs-code/pull/32.patch","issue_url":"https://api.github.com/repos/coala/coala-vs-code/issues/32","number":32,"state":"open","locked":false,"title":"Updated to use jsonrpc","user":{"login":"ksdme","id":12156014,"avatar_url":"https://avatars1.githubusercontent.com/u/12156014?v=4","gravatar_id":"","url":"https://api.github.com/users/ksdme","html_url":"https://github.com/ksdme","followers_url":"https://api.github.com/users/ksdme/followers","following_url":"https://api.github.com/users/ksdme/following{/other_user}","gists_url":"https://api.github.com/users/ksdme/gists{/gist_id}","starred_url":"https://api.github.com/users/ksdme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksdme/subscriptions","organizations_url":"https://api.github.com/users/ksdme/orgs","repos_url":"https://api.github.com/users/ksdme/repos","events_url":"https://api.github.com/users/ksdme/events{/privacy}","received_events_url":"https://api.github.com/users/ksdme/received_events","type":"User","site_admin":false},"body":"Updates coala-vs-code to use jsonrpc module from python-language-server (https://github.com/palantir/python-language-server/pull/32).\r\n\r\nCloses https://github.com/coala/coala-vs-code/issues/27","created_at":"2018-03-26T14:00:13Z","updated_at":"2018-05-02T01:29:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53844b2bb9d41f5e82d2571bbc4e8c10ae68a15f","assignee":{"login":"ksdme","id":12156014,"avatar_url":"https://avatars1.githubusercontent.com/u/12156014?v=4","gravatar_id":"","url":"https://api.github.com/users/ksdme","html_url":"https://github.com/ksdme","followers_url":"https://api.github.com/users/ksdme/followers","following_url":"https://api.github.com/users/ksdme/following{/other_user}","gists_url":"https://api.github.com/users/ksdme/gists{/gist_id}","starred_url":"https://api.github.com/users/ksdme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksdme/subscriptions","organizations_url":"https://api.github.com/users/ksdme/orgs","repos_url":"https://api.github.com/users/ksdme/repos","events_url":"https://api.github.com/users/ksdme/events{/privacy}","received_events_url":"https://api.github.com/users/ksdme/received_events","type":"User","site_admin":false},"assignees":[{"login":"ksdme","id":12156014,"avatar_url":"https://avatars1.githubusercontent.com/u/12156014?v=4","gravatar_id":"","url":"https://api.github.com/users/ksdme","html_url":"https://github.com/ksdme","followers_url":"https://api.github.com/users/ksdme/followers","following_url":"https://api.github.com/users/ksdme/following{/other_user}","gists_url":"https://api.github.com/users/ksdme/gists{/gist_id}","starred_url":"https://api.github.com/users/ksdme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksdme/subscriptions","organizations_url":"https://api.github.com/users/ksdme/orgs","repos_url":"https://api.github.com/users/ksdme/repos","events_url":"https://api.github.com/users/ksdme/events{/privacy}","received_events_url":"https://api.github.com/users/ksdme/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":787903799,"url":"https://api.github.com/repos/coala/coala-vs-code/labels/difficulty/low","name":"difficulty/low","color":"5eaff9","default":false},{"id":889574169,"url":"https://api.github.com/repos/coala/coala-vs-code/labels/importance/low","name":"importance/low","color":"c2e0c6","default":false},{"id":536464091,"url":"https://api.github.com/repos/coala/coala-vs-code/labels/process/pending%20review","name":"process/pending review","color":"c2e0c6","default":false},{"id":890759222,"url":"https://api.github.com/repos/coala/coala-vs-code/labels/size/L","name":"size/L","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala-vs-code/pulls/32/commits","review_comments_url":"https://api.github.com/repos/coala/coala-vs-code/pulls/32/comments","review_comment_url":"https://api.github.com/repos/coala/coala-vs-code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala-vs-code/issues/32/comments","statuses_url":"https://api.github.com/repos/coala/coala-vs-code/statuses/96b508512b5018f72f0c84ed0fce0da4b8d28387","head":{"label":"ksdme:jsonrpc-dev","ref":"jsonrpc-dev","sha":"96b508512b5018f72f0c84ed0fce0da4b8d28387","user":{"login":"ksdme","id":12156014,"avatar_url":"https://avatars1.githubusercontent.com/u/12156014?v=4","gravatar_id":"","url":"https://api.github.com/users/ksdme","html_url":"https://github.com/ksdme","followers_url":"https://api.github.com/users/ksdme/followers","following_url":"https://api.github.com/users/ksdme/following{/other_user}","gists_url":"https://api.github.com/users/ksdme/gists{/gist_id}","starred_url":"https://api.github.com/users/ksdme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksdme/subscriptions","organizations_url":"https://api.github.com/users/ksdme/orgs","repos_url":"https://api.github.com/users/ksdme/repos","events_url":"https://api.github.com/users/ksdme/events{/privacy}","received_events_url":"https://api.github.com/users/ksdme/received_events","type":"User","site_admin":false},"repo":{"id":126732413,"name":"coala-vs-code","full_name":"ksdme/coala-vs-code","owner":{"login":"ksdme","id":12156014,"avatar_url":"https://avatars1.githubusercontent.com/u/12156014?v=4","gravatar_id":"","url":"https://api.github.com/users/ksdme","html_url":"https://github.com/ksdme","followers_url":"https://api.github.com/users/ksdme/followers","following_url":"https://api.github.com/users/ksdme/following{/other_user}","gists_url":"https://api.github.com/users/ksdme/gists{/gist_id}","starred_url":"https://api.github.com/users/ksdme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksdme/subscriptions","organizations_url":"https://api.github.com/users/ksdme/orgs","repos_url":"https://api.github.com/users/ksdme/repos","events_url":"https://api.github.com/users/ksdme/events{/privacy}","received_events_url":"https://api.github.com/users/ksdme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksdme/coala-vs-code","description":"A visual studio code plugin working via Language Server","fork":true,"url":"https://api.github.com/repos/ksdme/coala-vs-code","forks_url":"https://api.github.com/repos/ksdme/coala-vs-code/forks","keys_url":"https://api.github.com/repos/ksdme/coala-vs-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksdme/coala-vs-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksdme/coala-vs-code/teams","hooks_url":"https://api.github.com/repos/ksdme/coala-vs-code/hooks","issue_events_url":"https://api.github.com/repos/ksdme/coala-vs-code/issues/events{/number}","events_url":"https://api.github.com/repos/ksdme/coala-vs-code/events","assignees_url":"https://api.github.com/repos/ksdme/coala-vs-code/assignees{/user}","branches_url":"https://api.github.com/repos/ksdme/coala-vs-code/branches{/branch}","tags_url":"https://api.github.com/repos/ksdme/coala-vs-code/tags","blobs_url":"https://api.github.com/repos/ksdme/coala-vs-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksdme/coala-vs-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksdme/coala-vs-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksdme/coala-vs-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksdme/coala-vs-code/statuses/{sha}","languages_url":"https://api.github.com/repos/ksdme/coala-vs-code/languages","stargazers_url":"https://api.github.com/repos/ksdme/coala-vs-code/stargazers","contributors_url":"https://api.github.com/repos/ksdme/coala-vs-code/contributors","subscribers_url":"https://api.github.com/repos/ksdme/coala-vs-code/subscribers","subscription_url":"https://api.github.com/repos/ksdme/coala-vs-code/subscription","commits_url":"https://api.github.com/repos/ksdme/coala-vs-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksdme/coala-vs-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksdme/coala-vs-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksdme/coala-vs-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksdme/coala-vs-code/contents/{+path}","compare_url":"https://api.github.com/repos/ksdme/coala-vs-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksdme/coala-vs-code/merges","archive_url":"https://api.github.com/repos/ksdme/coala-vs-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksdme/coala-vs-code/downloads","issues_url":"https://api.github.com/repos/ksdme/coala-vs-code/issues{/number}","pulls_url":"https://api.github.com/repos/ksdme/coala-vs-code/pulls{/number}","milestones_url":"https://api.github.com/repos/ksdme/coala-vs-code/milestones{/number}","notifications_url":"https://api.github.com/repos/ksdme/coala-vs-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksdme/coala-vs-code/labels{/name}","releases_url":"https://api.github.com/repos/ksdme/coala-vs-code/releases{/id}","deployments_url":"https://api.github.com/repos/ksdme/coala-vs-code/deployments","created_at":"2018-03-25T19:28:44Z","updated_at":"2018-03-25T19:28:46Z","pushed_at":"2018-05-01T20:43:13Z","git_url":"git://github.com/ksdme/coala-vs-code.git","ssh_url":"git@github.com:ksdme/coala-vs-code.git","clone_url":"https://github.com/ksdme/coala-vs-code.git","svn_url":"https://github.com/ksdme/coala-vs-code","homepage":null,"size":508,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"440dc897d0ef6e110fb190cc3db15b405cad2b79","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":79922715,"name":"coala-vs-code","full_name":"coala/coala-vs-code","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala-vs-code","description":"A visual studio code plugin working via Language Server","fork":false,"url":"https://api.github.com/repos/coala/coala-vs-code","forks_url":"https://api.github.com/repos/coala/coala-vs-code/forks","keys_url":"https://api.github.com/repos/coala/coala-vs-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala-vs-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala-vs-code/teams","hooks_url":"https://api.github.com/repos/coala/coala-vs-code/hooks","issue_events_url":"https://api.github.com/repos/coala/coala-vs-code/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala-vs-code/events","assignees_url":"https://api.github.com/repos/coala/coala-vs-code/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala-vs-code/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala-vs-code/tags","blobs_url":"https://api.github.com/repos/coala/coala-vs-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala-vs-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala-vs-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala-vs-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala-vs-code/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala-vs-code/languages","stargazers_url":"https://api.github.com/repos/coala/coala-vs-code/stargazers","contributors_url":"https://api.github.com/repos/coala/coala-vs-code/contributors","subscribers_url":"https://api.github.com/repos/coala/coala-vs-code/subscribers","subscription_url":"https://api.github.com/repos/coala/coala-vs-code/subscription","commits_url":"https://api.github.com/repos/coala/coala-vs-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala-vs-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala-vs-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala-vs-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala-vs-code/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala-vs-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala-vs-code/merges","archive_url":"https://api.github.com/repos/coala/coala-vs-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala-vs-code/downloads","issues_url":"https://api.github.com/repos/coala/coala-vs-code/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala-vs-code/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala-vs-code/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala-vs-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala-vs-code/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala-vs-code/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala-vs-code/deployments","created_at":"2017-01-24T15:13:56Z","updated_at":"2018-04-08T14:22:20Z","pushed_at":"2018-05-01T20:43:14Z","git_url":"git://github.com/coala/coala-vs-code.git","ssh_url":"git@github.com:coala/coala-vs-code.git","clone_url":"https://github.com/coala/coala-vs-code.git","svn_url":"https://github.com/coala/coala-vs-code","homepage":null,"size":504,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":10,"open_issues":26,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/32"},"html":{"href":"https://github.com/coala/coala-vs-code/pull/32"},"issue":{"href":"https://api.github.com/repos/coala/coala-vs-code/issues/32"},"comments":{"href":"https://api.github.com/repos/coala/coala-vs-code/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala-vs-code/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-vs-code/statuses/96b508512b5018f72f0c84ed0fce0da4b8d28387"}},"author_association":"NONE"}}
{"actor":{"display_login":"jayvdb"}}