{"action":"created","issue":{"url":"https://api.github.com/repos/angelozerr/tern.java/issues/381","labels_url":"https://api.github.com/repos/angelozerr/tern.java/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/angelozerr/tern.java/issues/381/comments","events_url":"https://api.github.com/repos/angelozerr/tern.java/issues/381/events","html_url":"https://github.com/angelozerr/tern.java/issues/381","id":121523720,"number":381,"title":"jshint breaks the server connection","user":{"login":"boniatillo-com","id":12187299,"avatar_url":"https://avatars.githubusercontent.com/u/12187299?v=3","gravatar_id":"","url":"https://api.github.com/users/boniatillo-com","html_url":"https://github.com/boniatillo-com","followers_url":"https://api.github.com/users/boniatillo-com/followers","following_url":"https://api.github.com/users/boniatillo-com/following{/other_user}","gists_url":"https://api.github.com/users/boniatillo-com/gists{/gist_id}","starred_url":"https://api.github.com/users/boniatillo-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boniatillo-com/subscriptions","organizations_url":"https://api.github.com/users/boniatillo-com/orgs","repos_url":"https://api.github.com/users/boniatillo-com/repos","events_url":"https://api.github.com/users/boniatillo-com/events{/privacy}","received_events_url":"https://api.github.com/users/boniatillo-com/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-10T16:22:03Z","updated_at":"2015-12-11T18:05:33Z","closed_at":null,"body":"When the `.jshintrc` has an invalid format, the jshint plugin breaks the server connection and I do not find  a way to avoid this. I think we need a way to catch that plugin exception in the server an send back the error to the client as usual, via `IResponseHandler.onError()`.\r\n\r\nThis is the error:\r\n\r\n```\r\n\u001B[31mERROR\u001B[0m: Can't parse config file: C:/Users/arian/Documents/Test/test_rayo/.jshintrc\r\nError:SyntaxError: Unexpected token k\r\n\r\nTern error#jshint with 27ms: \r\njava.net.SocketException: Connection reset\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angelozerr/tern.java/issues/comments/164005558","html_url":"https://github.com/angelozerr/tern.java/issues/381#issuecomment-164005558","issue_url":"https://api.github.com/repos/angelozerr/tern.java/issues/381","id":164005558,"user":{"login":"boniatillo-com","id":12187299,"avatar_url":"https://avatars.githubusercontent.com/u/12187299?v=3","gravatar_id":"","url":"https://api.github.com/users/boniatillo-com","html_url":"https://github.com/boniatillo-com","followers_url":"https://api.github.com/users/boniatillo-com/followers","following_url":"https://api.github.com/users/boniatillo-com/following{/other_user}","gists_url":"https://api.github.com/users/boniatillo-com/gists{/gist_id}","starred_url":"https://api.github.com/users/boniatillo-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boniatillo-com/subscriptions","organizations_url":"https://api.github.com/users/boniatillo-com/orgs","repos_url":"https://api.github.com/users/boniatillo-com/repos","events_url":"https://api.github.com/users/boniatillo-com/events{/privacy}","received_events_url":"https://api.github.com/users/boniatillo-com/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T18:05:33Z","updated_at":"2015-12-11T18:05:33Z","body":"How can I include `shelljs` in the plugin? To do `var shjs = require(\"shelljs\")` does not work."}}