marviq / coffee-jshint

Runs your CoffeeScript source through JSHint to check for errors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coffee-jshint crashes if the file doesn't exist

azylman opened this issue · comments

$ git --no-pager commit -F -

fs.js:427
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                ^
Error: ENOENT, no such file or directory 'apps/client/scripts/admin/browser/controllers/users.coffee'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.readFileSync (fs.js:284:15)
    at /Users/azylman/nvm/v0.10.15/lib/node_modules/coffee-jshint/lib-js/hint.js:22:22
    at Array.map (native)
    at Function._.map._.collect (/Users/azylman/nvm/v0.10.15/lib/node_modules/coffee-jshint/node_modules/underscore/underscore.js:97:56)
    at hintFiles (/Users/azylman/nvm/v0.10.15/lib/node_modules/coffee-jshint/lib-js/hint.js:20:12)
    at Object.<anonymous> (/Users/azylman/nvm/v0.10.15/lib/node_modules/coffee-jshint/cli.js:41:10)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
WARNING: You are about to commit files with coffee-jshint warnings
Use `git commit --no-verify` to do it anyway
git exited abnormally with code 1.

closed by 87f2a0b