{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4080","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4080/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4080/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4080/events","html_url":"https://github.com/eslint/eslint/issues/4080","id":110328717,"number":4080,"title":"Eslint fails on windows","user":{"login":"ameyms","id":776678,"avatar_url":"https://avatars.githubusercontent.com/u/776678?v=3","gravatar_id":"","url":"https://api.github.com/users/ameyms","html_url":"https://github.com/ameyms","followers_url":"https://api.github.com/users/ameyms/followers","following_url":"https://api.github.com/users/ameyms/following{/other_user}","gists_url":"https://api.github.com/users/ameyms/gists{/gist_id}","starred_url":"https://api.github.com/users/ameyms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameyms/subscriptions","organizations_url":"https://api.github.com/users/ameyms/orgs","repos_url":"https://api.github.com/users/ameyms/repos","events_url":"https://api.github.com/users/ameyms/events{/privacy}","received_events_url":"https://api.github.com/users/ameyms/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-07T22:11:14Z","updated_at":"2015-10-07T23:16:10Z","closed_at":null,"body":"I have the utter misfortune of having to develop on windows at work. \r\nAs can be expected, I seem to be encountering the following errors:\r\n\r\n## Running via Gulp\r\n\r\n```text\r\n\r\nC:\\Users\\amey\\Code\\app-ui>gulp lint\r\n[14:57:51] Using gulpfile ~\\Code\\Veritas\\VRP\\itrp\\src\\ui\\src\\gulpfile.js\r\n[14:57:51] Starting 'lint'...\r\nC:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\eslint.js:833\r\n            if (term in opts) {\r\n                        ^\r\n\r\nTypeError: Cannot use 'in' operator to search for 'getObjects(row.getProperty(col.field))' in undefined\r\n    at C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\eslint.js:833:25\r\n    at String.replace (native)\r\n    at EventEmitter.module.exports.api.report (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\eslint.js:832:27)\r\n    at RuleContext.report (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\rule-context.js:136:20)\r\n    at EventEmitter.Program (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\rules\\no-multi-spaces.js:106:37)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at NodeEventGenerator.enterNode (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\util\\node-event-generator.js:42:22)\r\n    at CommentEventGenerator.enterNode (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\util\\comment-event-generator.js:98:23)\r\n    at Controller.controller.traverse.enter (C:\\Users\\amey\\Code\\app-ui\\node_modules\\eslint\\lib\\eslint.js:782:36)\r\n\r\nC:\\Users\\amey\\Code\\app-ui>\r\n\r\n```\r\n\r\n## Running directly via CLI\r\nThe error also occurs when I directly invoke Eslint CLI:\r\n\r\n```\r\n\r\nC:\\Users\\amey\\Code\\app-ui>eslint -c .eslintrc main\\webapp\\js\r\nC:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\eslint.js:833\r\n            if (term in opts) {\r\n                        ^\r\n\r\nTypeError: Cannot use 'in' operator to search for 'getObjects(row.getProperty(col.field))' in undefined\r\n    at C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\eslint.js:833:25\r\n    at String.replace (native)\r\n    at EventEmitter.module.exports.api.report (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\eslint.js:832:27)\r\n    at RuleContext.report (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\rule-context.js:136:20)\r\n    at EventEmitter.Program (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\rules\\no-multi-spaces.js:106:37)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at NodeEventGenerator.enterNode (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\util\\node-event-generator.js:42:22)\r\n    at CommentEventGenerator.enterNode (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\util\\comment-event-generator.js:98:23)\r\n    at Controller.controller.traverse.enter (C:\\Users\\amey\\AppData\\Roaming\\npm\\node_modules\\eslint\\lib\\eslint.js:782:36)\r\n\r\n```\r\n\r\nI am suspecting this has something to do with the Eslint reporter since it is failing [on this line](https://github.com/eslint/eslint/blob/433a942d8458565b7375590506ba0f40d0a3f319/lib/eslint.js#L833).\r\n\r\nI am not using any custom eslint reporters.\r\n\r\nAny suggestions?\r\n\r\n\r\n## My setup \r\nOS: Windows 7\r\nNode: v4.1.2\r\nNPM: v2.14.4\r\nEslint: v1.6.0\r\n\r\n### gulpfile\r\n```js\r\nvar gulp = require('gulp'),\r\n    eslint = require('gulp-eslint');\r\n\r\ngulp.task('lint', function() {\r\n    return gulp.src(['main/webapp/js/**/*.js', '!main/webapp/js/lib/{,*/}*.js'])\r\n        .pipe(eslint())\r\n        .pipe(eslint.format())\r\n        .pipe(eslint.failOnError());\r\n});\r\n\r\n```\r\n\r\n### .eslintrc\r\n```json\r\n\r\n{\r\n    \"parser\": \"babel-eslint\",\r\n    \"env\": {\r\n        \"browser\": true,\r\n        \"es6\": true,\r\n        \"node\": true\r\n    },\r\n\r\n    \"rules\": {\r\n        \"no-undef\": 2,\r\n        \"no-mixed-requires\": [1, false],\r\n        \"strict\": [1, \"never\"],\r\n        \"curly\": 1,\r\n        \"no-bitwise\": 1,\r\n        \"max-len\": [1, 110, 4],\r\n        \"vars-on-top\": 1,\r\n        \"guard-for-in\": 1,\r\n        \"no-underscore-dangle\": 0,\r\n\r\n        \"babel/object-shorthand\": 0,\r\n        \"babel/generator-star-spacing\": 0,\r\n\r\n        \"no-loop-func\": 2,\r\n        \"no-multi-spaces\": 1,\r\n        \"no-console\": 0,\r\n        \"comma-dangle\": [1, \"never\"],\r\n        \"indent\": [1, 4],\r\n        \"quotes\": [1, \"single\"],\r\n        \"semi\": [1, \"always\"],\r\n        \"semi-spacing\": [1, {\"before\": false, \"after\": true}],\r\n\r\n        \"brace-style\": [1, \"1tbs\", { \"allowSingleLine\": true }],\r\n        \"key-spacing\": [1,\r\n            {\r\n                \"beforeColon\": false,\r\n                \"afterColon\": true\r\n            }\r\n        ],\r\n\r\n        \"new-cap\": [2, {\r\n            \"newIsCap\": true,\r\n            \"capIsNew\": false,\r\n            \"newIsCapExceptions\": [\r\n              \"ngTreetableParams\"\r\n            ]\r\n        }],\r\n\r\n        \"space-after-keywords\": [1, \"always\"],\r\n        \"space-before-blocks\": [1, \"always\"],\r\n        \"space-in-parens\": [1, \"never\"],\r\n        \"space-before-function-paren\": [1, \"never\"],\r\n        \"space-infix-ops\": [1, {\"int32Hint\": false}],\r\n        \"space-return-throw-case\": 1,\r\n        \"max-nested-callbacks\": [1, 3],\r\n        \"one-var\": [1, \"always\"],\r\n\r\n        \"eol-last\": 1\r\n    },\r\n\r\n    \"ecmaFeatures\": {\r\n        \"jsx\": true,\r\n        \"arrowFunctions\": true,\r\n        \"binaryLiterals\": true,\r\n        \"blockBindings\": true,\r\n        \"classes\": true,\r\n        \"defaultParams\": true,\r\n        \"destructuring\": true,\r\n        \"forOf\": true,\r\n        \"generators\": true,\r\n        \"modules\": true,\r\n        \"objectLiteralComputedProperties\": true,\r\n        \"objectLiteralDuplicateProperties\": true,\r\n        \"objectLiteralShorthandMethods\": true,\r\n        \"objectLiteralShorthandProperties\": true,\r\n        \"octalLiterals\": true,\r\n        \"regexUFlag\": true,\r\n        \"regexYFlag\": true,\r\n        \"restParams\": true,\r\n        \"spread\": true,\r\n        \"superInFunctions\": true,\r\n        \"templateStrings\": true,\r\n        \"unicodeCodePointEscapes\": true,\r\n        \"globalReturn\": true\r\n    },\r\n\r\n    \"plugins\": [\r\n        \"babel\"\r\n    ],\r\n\r\n    \"globals\": {\r\n        \"angular\": true,\r\n        \"d3\": true,\r\n        \"_\": true,\r\n        \"$\": true,\r\n        \"Wizard\": true\r\n    }\r\n}\r\n\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27244261-eslint-fails-on-windows?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/146362361","html_url":"https://github.com/eslint/eslint/issues/4080#issuecomment-146362361","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4080","id":146362361,"user":{"login":"ameyms","id":776678,"avatar_url":"https://avatars.githubusercontent.com/u/776678?v=3","gravatar_id":"","url":"https://api.github.com/users/ameyms","html_url":"https://github.com/ameyms","followers_url":"https://api.github.com/users/ameyms/followers","following_url":"https://api.github.com/users/ameyms/following{/other_user}","gists_url":"https://api.github.com/users/ameyms/gists{/gist_id}","starred_url":"https://api.github.com/users/ameyms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameyms/subscriptions","organizations_url":"https://api.github.com/users/ameyms/orgs","repos_url":"https://api.github.com/users/ameyms/repos","events_url":"https://api.github.com/users/ameyms/events{/privacy}","received_events_url":"https://api.github.com/users/ameyms/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T23:16:10Z","updated_at":"2015-10-07T23:16:10Z","body":"Disable rules one by one? Wow. That might take some time. Alright. I better get to it."}}