{"action":"created","issue":{"url":"https://api.github.com/repos/adobe/brackets/issues/11162","labels_url":"https://api.github.com/repos/adobe/brackets/issues/11162/labels{/name}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/11162/comments","events_url":"https://api.github.com/repos/adobe/brackets/issues/11162/events","html_url":"https://github.com/adobe/brackets/issues/11162","id":80492269,"number":11162,"title":"Error raised in tern_worker when parsing HTML","user":{"login":"K-Thompson","id":6936008,"avatar_url":"https://avatars.githubusercontent.com/u/6936008?v=3","gravatar_id":"","url":"https://api.github.com/users/K-Thompson","html_url":"https://github.com/K-Thompson","followers_url":"https://api.github.com/users/K-Thompson/followers","following_url":"https://api.github.com/users/K-Thompson/following{/other_user}","gists_url":"https://api.github.com/users/K-Thompson/gists{/gist_id}","starred_url":"https://api.github.com/users/K-Thompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-Thompson/subscriptions","organizations_url":"https://api.github.com/users/K-Thompson/orgs","repos_url":"https://api.github.com/users/K-Thompson/repos","events_url":"https://api.github.com/users/K-Thompson/events{/privacy}","received_events_url":"https://api.github.com/users/K-Thompson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adobe/brackets/labels/F%20Code%20Hints","name":"F Code Hints","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T10:46:38Z","updated_at":"2015-05-26T08:50:33Z","closed_at":null,"body":"Brackets v1.3\r\n\r\nThe first time I touch below HTML file, I get these errors:\r\n\r\n```\r\nNodeSocketTransport - start\r\nWorker: Error thrown in tern_worker:undefined is not a function\r\nTypeError: undefined is not a function\r\n    at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)\r\n    at file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:987:9\r\n    at Object.BinaryExpression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:906:15)\r\n```\r\n\r\nThe above can be raised with below (validated) HTML file. The problem are the comments immediately after the opening `<body>` tag. I'm having a problem with code hinting not working (or stopping to work) and I'm wondering if this error might be part of the problem.\r\n\r\n\r\n```\r\n<!doctype html>\r\n<html>\r\n\t<head>\r\n\t\t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\r\n\t\t\r\n\t\t<title>TVM</title>\r\n\r\n\r\n\t</head>\r\n\t<body>\r\n<!--\t\t<div class=\"container\"  style=\"background-color:#ccc\">-->\r\n<!--\r\nBootstrap classes\r\n-->\r\n<!-- On rows -->\r\n<!--\r\n<tr class=\"active\">...</tr>\r\n<tr class=\"success\">...</tr>\r\n<tr class=\"warning\">...</tr>\r\n<tr class=\"danger\">...</tr>\r\n<tr class=\"info\">...</tr>\r\n-->\r\n<!-- On cells (`td` or `th`) -->\r\n<!--\r\n<tr>\r\n\t<td class=\"active\">...</td>\r\n\t<td class=\"success\">...</td>\r\n\t<td class=\"warning\">...</td>\r\n\t<td class=\"danger\">...</td>\r\n\t<td class=\"info\">...</td>\r\n</tr>\r\n-->\r\n<p>This is valid HTML</p>\r\n\t</body>\r\n</html>\r\n```\r\n\r\nSee StackOverflow [How to Fix Adobe Brackets Code Completion and Hinting](http://stackoverflow.com/questions/30393112/how-to-fix-adobe-brackets-code-completion-and-hinting)"},"comment":{"url":"https://api.github.com/repos/adobe/brackets/issues/comments/105449435","html_url":"https://github.com/adobe/brackets/issues/11162#issuecomment-105449435","issue_url":"https://api.github.com/repos/adobe/brackets/issues/11162","id":105449435,"user":{"login":"nethip","id":1577184,"avatar_url":"https://avatars.githubusercontent.com/u/1577184?v=3","gravatar_id":"","url":"https://api.github.com/users/nethip","html_url":"https://github.com/nethip","followers_url":"https://api.github.com/users/nethip/followers","following_url":"https://api.github.com/users/nethip/following{/other_user}","gists_url":"https://api.github.com/users/nethip/gists{/gist_id}","starred_url":"https://api.github.com/users/nethip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nethip/subscriptions","organizations_url":"https://api.github.com/users/nethip/orgs","repos_url":"https://api.github.com/users/nethip/repos","events_url":"https://api.github.com/users/nethip/events{/privacy}","received_events_url":"https://api.github.com/users/nethip/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T08:50:33Z","updated_at":"2015-05-26T08:50:33Z","body":"@prksingh "}}