roadhump / SublimeLinter-contrib-eslint_d

This linter plugin for SublimeLinter provides an interface to eslint_d
MIT License
40 stars 13 forks source link

eslint_d throws Error: Invalid option '--color' when '--color' is not even used #10

Open CxRes opened 8 years ago

CxRes commented 8 years ago

I am getting the following error message:

SublimeLinter: chdir not set or invalid, using D:\Users\X\dev\syn3\src 
SublimeLinter: eslint_d: config.js ['C:\\Program Files\\npm\\eslint_d.cmd', '--format', 'compact', '--stdin', '--stdin-filename', '__RELATIVE_TO_FOLDER__', '--config', 'D:\\Users\\X\\dev\\syn3\\.eslintrc'] 
SublimeLinter: eslint_d output:
Error: Invalid option '--color' - perhaps you meant '--ignore'? 

I do not understand the cause as --color is not even used on Node v5.5, Windows 10 x64, eslint_d 3.1.0

matanh-tzmedical commented 8 years ago

+1

roadhump commented 8 years ago

Can you run eslint_d in console and check if it is an issue of eslint_d itself?

matanh-tzmedical commented 8 years ago

This seems to have fixed itself on my system somehow. Not sure what caused it. Can anyone else confirm?

roadhump commented 8 years ago

I suppose it was a bug of eslint_d itself and it was fixed with new version.

jefe-spain commented 8 years ago

I've got the same problem, I'm using the latest version of the plugin and the latest version of SublimeLinter, but still got the same error and I don't know why:

`SublimeLinter: eslint_d: gutter.js ['/Users/jfernandez/.npm-packages/bin/eslint_d', '--format', 'compact', '--stdin', '--stdin-filename', 'RELATIVE_TO_FOLDER', '--config', '/Users/jfernandez/projects/gutter-skins/.eslintrc'] SublimeLinter: eslint_d output: Error: Invalid option '--color' - perhaps you meant '--ignore'?``

eslint_d runs correctly in console.

Node 5.6.0, eslint_d 3.1.0, OSX.

Thanks!

roadhump commented 8 years ago

Can't reproduce. Probably you should update your local eslint installation too?

jefe-spain commented 8 years ago

It's the eslint_d version, works under v2.20 , not v3.1.0

xedef commented 8 years ago

+1 Tried with Node 5.9.1 and 0.12.7 Tried with eslint_d 3.1.0, 2.5.1, 2.4.0 and 2.2.0. Removed and reinstalled all SublimeLinter and SublimeLinter-contrib-eslint_d packages. Still happening.