Comments (15)
@coryhouse @alvipeo can I get the DEBUG output for the issue?
set DEBUG=esw:* & esw webpack.config.* src tools
from eslint-watch.
Sure thing!
C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot>npm run lint
[email protected] lint C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot
set DEBUG=esw:* && esw webpack.config.* src tools
esw:eslint-cli Loaded +0ms
esw:eslint-cli EsLint path: C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot\node_modules.bin\eslint.cmd +3ms
esw:eslint-help Loaded +37ms
esw:options Loaded +30ms
esw:success-formatter loaded +295ms
esw:simple-detail loaded +5ms
esw:watcher Loaded +1ms
esw:arg-parser Loaded +2ms
esw:esw-cli Loaded +0ms
esw:esw-cli Eslint-Watch: 2.1.11 +1ms
esw:eslint-help Executing help +0ms
esw:eslint-cli eslint: [ '--help' ] +1ms
esw:eslint-help Help text received +568ms
esw:eslint-help Alias found: -c +2ms
esw:eslint-help Parsing --config +1ms
esw:eslint-help Parsing --no-eslintrc +1ms
esw:eslint-help Parsing no option +0ms --no-eslintrc
esw:eslint-help Parsing --env +1ms
esw:eslint-help Parsing --ext +0ms
esw:eslint-help Parsing --global +1ms
esw:eslint-help Parsing --parser +0ms
esw:eslint-help Parsing --parser-options +1ms
esw:eslint-help Parsing --cache +0ms
esw:eslint-help Parsing --cache-file +1ms
esw:eslint-help Parsing --cache-location +1ms
esw:eslint-help Parsing --rulesdir +0ms
esw:eslint-help Parsing --plugin +0ms
esw:eslint-help Parsing --rule +1ms
esw:eslint-help Parsing --ignore-path +0ms
esw:eslint-help Parsing --no-ignore +1ms
esw:eslint-help Parsing no option +0ms --no-ignore
esw:eslint-help Parsing --ignore-pattern +1ms
esw:eslint-help Parsing --stdin +0ms
esw:eslint-help Parsing --stdin-filename +1ms
esw:eslint-help Parsing --quiet +0ms
esw:eslint-help Parsing --max-warnings +1ms
esw:eslint-help Alias found: -o +0ms
esw:eslint-help Parsing --output-file +1ms
esw:eslint-help Alias found: -f +0ms
esw:eslint-help Parsing --format +1ms
esw:eslint-help Parsing --init +1ms
esw:eslint-help Parsing --fix +0ms
esw:eslint-help Parsing --debug +0ms
esw:eslint-help Alias found: -h +1ms
esw:eslint-help Parsing --help +0ms
esw:eslint-help Alias found: -v +1ms
esw:eslint-help Parsing --version +1ms
esw:eslint-help Parsing --no-inline-config +0ms
esw:eslint-help Parsing no option +1ms --no-inline-config
esw:eslint-help Parsing --print-config +0ms
esw:esw-cli Arguments passed: [ 'C:\Program Files (x86)\nodejs\node.exe', 'C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot\nod
e_modules\eslint-watch\bin\esw', 'webpack.config.', 'src', 'tools' ] +6ms
esw:esw-cli Parsing args +4ms
esw:arg-parser Directories to check: [ 'webpack.config.', 'src', 'tools' ] +0ms
esw:arg-parser Args [ 'webpack.config.', 'src', 'tools' ] +1ms
esw:arg-parser Pushing item: webpack.config. +1ms
esw:arg-parser Pushing item: src +0ms
esw:arg-parser Pushing item: tools +1ms
esw:arg-parser setting custom formatter +0ms
esw:arg-parser GetPath: simple-detail +1ms
esw:esw-cli Running initial lint +0ms
esw:esw-cli [ 'webpack.config.', 'src', 'tools', '-f', 'C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot\node_modules\eslint-wat
ch\src\formatters\simple-detail' ] +1ms
esw:eslint-cli eslint: [ 'webpack.config.', 'src', 'tools', '-f', 'C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot\node_modules
\eslint-watch\src\formatters\simple-detail' ] +1ms
esw:eslint-cli 0 +10ms
'C:\Users\chouse\Documents\Visual' is not recognized as an internal or external command,
operable program or batch file.
esw:esw-cli exitCode: 1 +38ms
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "lint"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] lint: set DEBUG=esw:* && esw webpack.config.* src tools
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] lint script 'set DEBUG=esw:* && esw webpack.config.* src tools'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-slingshot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! set DEBUG=esw:* && esw webpack.config.* src tools
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-slingshot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-slingshot
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot\npm-debug.log
from eslint-watch.
Thank you. Can I also get the eslint version you are using. Looks like I am not able to reproduce it.
from eslint-watch.
I'm running eslint 2.9.0. Though I just upgraded to 2.11.1 and it continues to occur. I've confirmed that moving to a directory without spaces resolves the issue.
This line showed me that the space was the issue:
'C:\Users\chouse\Documents\Visual' is not recognized as an internal or external command,
operable program or batch file.
from eslint-watch.
I've also confirmed this occurs on Windows 7 and 10.
from eslint-watch.
Got it to throw, thank you.
from eslint-watch.
It looks like this is going to take a little more work than I initially thought.
from eslint-watch.
Thanks for giving it a look! I'm really enjoying eslint-watch in the meantime. I also used it in my Pluralsight course which has already been viewed by 1000's in the last week, so your work is getting a lot of use!
from eslint-watch.
Glad it is of use to you! I also appreciate the promo! I will keep you posted on the progress of the issue.
from eslint-watch.
Hi @rizowski - Any update? I've had quite a few Windows users get bitten by this. The good news is my Pluralsight course and React Slingshot are both getting a lot of traffic so you should be seeing a lot of downloads. :)
from eslint-watch.
Hey @coryhouse Sorry for the delay. I have messed around with a couple of ideas trying to fix the issue. One of the most common ways to solve the issue is to escape the spaces in the path. I haven't been able to get that to work on windows however.
from eslint-watch.
While I'm strong in JS, I'm still a noob in creating npm packages. But the other popular npm packages I'm using with React Slingshot are able to handle paths with spaces. For example, Webpack, Babel, and Mocha. I suspect they're using an npm package that handles path issues for them. Perhaps using the same abstraction would take this issue off your hands altogether?
from eslint-watch.
@coryhouse I was able to figure out a fix; at least on my machine. path-fix
for me? If that can be verified I will push out the fix.
from eslint-watch.
Just FYI - the new release you just published isn't marked as latest yet in Github.
from eslint-watch.
@coryhouse it should be now.
from eslint-watch.
Related Issues (20)
- esw --watch throws EPERM on Windows HOT 4
- Doesn't track file changes with --ext js,jsx HOT 4
- esw results are doubled/shown twice HOT 6
- Option to not print "clean" message; only errors HOT 4
- Changing branches on git triggers dozens of concurrent `eslint` processes to be created HOT 3
- Hope to have more comfortable information. HOT 2
- npm audit high priority warning HOT 1
- Error parsing '--rule' CLI option HOT 2
- Missing Module HOT 3
- Running `esw --changed -w` causes non-JS files to attempt to be linted HOT 4
- `--clear --color -w` causes duplicated output HOT 4
- Slowness, maybe because it's not just linting an individual file? not sure HOT 1
- Watch mode does print to the console HOT 4
- ESLint 8 support HOT 2
- "The --print-config option must be used with exactly one file name." HOT 1
- Nothing happens HOT 6
- `ENOENT` of `eslint` causes a silent exit rather than an expected error message to install `eslint`
- Print a message upon file watch trigger HOT 3
- --watch-ignore should include by default the ignored patterns
- Tried it and had to uninstall it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-watch.