-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paths with spaces aren't supported #84
Comments
@coryhouse @alvipeo can I get the DEBUG output for the issue? |
Sure thing! C:\Users\chouse\Documents\Visual Studio 2005\react-slingshot>npm run lint
esw:eslint-cli Loaded +0ms npm ERR! Windows_NT 6.1.7601 npm ERR! Please include the following file with any support request: |
Thank you. Can I also get the eslint version you are using. Looks like I am not able to reproduce it. |
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, |
I've also confirmed this occurs on Windows 7 and 10. |
Got it to throw, thank you. |
It looks like this is going to take a little more work than I initially thought. |
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! 👍 |
Glad it is of use to you! I also appreciate the promo! I will keep you posted on the progress of the issue. |
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. :) |
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. 😞 Let me mess around with this a bit more. I have a little bit of time today that I can work on it. Do you have any suggestions that I could try? |
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? |
@coryhouse I was able to figure out a fix; at least on my machine. 😌 Took a bit of work, but I think it should help with future problems. Can you or anyone that has been experiencing this problem test out the version that is on the branch |
* Trying a normalizer function * Adding appveyor and getting almost all tests to pass * Fixing #84 * Updating readme * Adding donation link since this project is starting to take a significant amount of my time
Just FYI - the new release you just published isn't marked as latest yet in Github. |
@coryhouse it should be now. |
On Windows, if you try running eslint-watch in a path that contains spaces in the name, it will fail to parse the path properly.
Example: coryhouse/react-slingshot#150
The text was updated successfully, but these errors were encountered: