{"action":"created","issue":{"url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/33","repository_url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin","labels_url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/33/comments","events_url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/33/events","html_url":"https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues/33","id":183439714,"number":33,"title":"Error: Mode graphql failed to advance stream","user":{"login":"sedubois","id":4217871,"avatar_url":"https://avatars.githubusercontent.com/u/4217871?v=3","gravatar_id":"","url":"https://api.github.com/users/sedubois","html_url":"https://github.com/sedubois","followers_url":"https://api.github.com/users/sedubois/followers","following_url":"https://api.github.com/users/sedubois/following{/other_user}","gists_url":"https://api.github.com/users/sedubois/gists{/gist_id}","starred_url":"https://api.github.com/users/sedubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedubois/subscriptions","organizations_url":"https://api.github.com/users/sedubois/orgs","repos_url":"https://api.github.com/users/sedubois/repos","events_url":"https://api.github.com/users/sedubois/events{/privacy}","received_events_url":"https://api.github.com/users/sedubois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-17T14:57:49Z","updated_at":"2016-10-17T17:56:50Z","closed_at":null,"body":"IntelliJ IDEA 2016.2.4 Build #IU-162.2032.8. I'm not quite sure what triggers this. I didn't see anything working wrong otherwise, just this error repeating in the GraphQL console. It is just annoying because the GraphQL console tab will then suddenly open.\r\n\r\n```\r\nError: Mode graphql failed to advance stream.\r\n    at readToken (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:24651:11)\r\n    at runMode (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:24691:36)\r\n    at highlightLine (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:24723:5)\r\n    at getLineStyles (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:24759:20)\r\n    at buildLineContent (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:24821:40)\r\n    at updateExternalMeasurement (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:20432:30)\r\n    at prepareMeasureForLine (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:20468:14)\r\n    at measureChar (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:20441:36)\r\n    at endOperation_R2 (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:20962:26)\r\n    at endOperations (/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js:20928:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/comments/254283244","html_url":"https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues/33#issuecomment-254283244","issue_url":"https://api.github.com/repos/jimkyndemeyer/js-graphql-intellij-plugin/issues/33","id":254283244,"user":{"login":"jimkyndemeyer","id":15837712,"avatar_url":"https://avatars.githubusercontent.com/u/15837712?v=3","gravatar_id":"","url":"https://api.github.com/users/jimkyndemeyer","html_url":"https://github.com/jimkyndemeyer","followers_url":"https://api.github.com/users/jimkyndemeyer/followers","following_url":"https://api.github.com/users/jimkyndemeyer/following{/other_user}","gists_url":"https://api.github.com/users/jimkyndemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jimkyndemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimkyndemeyer/subscriptions","organizations_url":"https://api.github.com/users/jimkyndemeyer/orgs","repos_url":"https://api.github.com/users/jimkyndemeyer/repos","events_url":"https://api.github.com/users/jimkyndemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/jimkyndemeyer/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T17:56:50Z","updated_at":"2016-10-17T17:56:50Z","body":"This appears to be related to `codemirror-graphql`.\r\n\r\nTo help reproduce it, I'd like you to edit `/Users/sdubois/Library/Application Support/IntelliJIdea2016.2/js-graphql-language-service.dist.js` and add the following error logging.\r\n\r\nAbove line 162.530 containing `if(cmCurrentDocValue != textToParse)` add a new line containing `try {`\r\n\r\nAfter `res.send(JSON.stringify(responseData));` at approx. line 162.559, add:\r\n\r\n```\r\n    } catch(e) {\r\n      console.error('\\n[ERROR] ' + new Date() + ':');\r\n      console.error(e);\r\n      console.error(JSON.stringify(requestData));\r\n      console.error('\\n');\r\n    }\r\n```\r\n\r\nThis should console.error the editor buffer that chokes `codemirror-graphql`."}}
{"actor":{"display_login":"jimkyndemeyer"}}