{"action":"created","issue":{"url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/133","repository_url":"https://api.github.com/repos/ricardofbarros/linter-js-standard","labels_url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/133/comments","events_url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/133/events","html_url":"https://github.com/ricardofbarros/linter-js-standard/issues/133","id":169880592,"number":133,"title":"Cannot use newer standard versions on windows","user":{"login":"ishamf","id":3515649,"avatar_url":"https://avatars.githubusercontent.com/u/3515649?v=3","gravatar_id":"","url":"https://api.github.com/users/ishamf","html_url":"https://github.com/ishamf","followers_url":"https://api.github.com/users/ishamf/followers","following_url":"https://api.github.com/users/ishamf/following{/other_user}","gists_url":"https://api.github.com/users/ishamf/gists{/gist_id}","starred_url":"https://api.github.com/users/ishamf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishamf/subscriptions","organizations_url":"https://api.github.com/users/ishamf/orgs","repos_url":"https://api.github.com/users/ishamf/repos","events_url":"https://api.github.com/users/ishamf/events{/privacy}","received_events_url":"https://api.github.com/users/ishamf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T09:33:08Z","updated_at":"2016-08-24T17:24:13Z","closed_at":null,"body":"When a recent version of standard is installed in the project, the plugin wouldn't use it.\r\n\r\nI tried to step through the code, and here's what I found:\r\n\r\n1. `requireWithLocalOverride` tries to load the project's `standard`\r\n2. The project's `standard` loads `standard-engine`\r\n3. `standard-engine` loads `get-stdin`\r\n4. `get-stdin` tries to access `process.stdin` (even when it's only required and not used).\r\n5. Accessing `process.stdin` inside Atom throws an exception on windows ![stdin](https://cloud.githubusercontent.com/assets/3515649/17475464/4e022fc4-5d85-11e6-99d5-d0c5b2466c0b.PNG)\r\n\r\n6. The exception is caught, `requireWithLocalOverride` loads the default version of standard instead\r\n\r\nThe older version of standard works because it requires an old version of `get-stdin`, which doesn't always access `process.stdin`."},"comment":{"url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/comments/242144073","html_url":"https://github.com/ricardofbarros/linter-js-standard/issues/133#issuecomment-242144073","issue_url":"https://api.github.com/repos/ricardofbarros/linter-js-standard/issues/133","id":242144073,"user":{"login":"ishamf","id":3515649,"avatar_url":"https://avatars.githubusercontent.com/u/3515649?v=3","gravatar_id":"","url":"https://api.github.com/users/ishamf","html_url":"https://github.com/ishamf","followers_url":"https://api.github.com/users/ishamf/followers","following_url":"https://api.github.com/users/ishamf/following{/other_user}","gists_url":"https://api.github.com/users/ishamf/gists{/gist_id}","starred_url":"https://api.github.com/users/ishamf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishamf/subscriptions","organizations_url":"https://api.github.com/users/ishamf/orgs","repos_url":"https://api.github.com/users/ishamf/repos","events_url":"https://api.github.com/users/ishamf/events{/privacy}","received_events_url":"https://api.github.com/users/ishamf/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T17:24:13Z","updated_at":"2016-08-24T17:24:13Z","body":"Actually, I'm not really sure where to fix this. I've created a [pull request](https://github.com/sindresorhus/get-stdin/pull/17) in `get-stdin` that should fix this, but it might be better to fix it on Electron instead, making `process.stdin` return some kind of noop stream."}}
{"actor":{"display_login":"ishamf"}}