-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot find node on Windows #38
Comments
Where did you set I'm not sure how emacs looks up things on the windows path (I have never used emacs on windows). |
@scottaj In my .emacs, so yeah would expect it to work, I'm not sure either. |
Can you post the output of the test run buffer after setting that value, so I can see the command it is generating? Are you sure you are setting the variable after the plugin loads so that it is not overriden by the plugin's default? You may want to try setting the value in the customize UI and see if it sticks then. |
Any update on this? I'll close it otherwise. |
Same problem here. I have changed the path of mocha-which-node and I can see the new path in the test buffer, but still not working:
Any idea? |
If you copy that command to your CLI, does it work or give the same error? The error you posted is a nodeJS error, not an error from this plugin. This indicates node actually did run. What is weird is that it looks like it tried to run its own executable, and then blew up doing that. |
I've made it work using the following settings:
It looks like in windows it's easier to just run the Thanks for your help and for this great package :-) |
@jmhdez any idea how that would translate to 'customize', hoping to avoid having to make a file for every project but have yet to get this package to work unfortunetly |
@vidjuheffex the simplest way I found to make it work was to set this vars in .emacs.d to run the mocha installed locally in each project using the mocha.opts for that project.
|
Works for me! Strangely the exact same values in customize do not work. I also am not sure what you mean by mocha.opts, but I do know that mocha-text-project is working |
This is likely a pathing issue, but running mocha results in
node.exe is in my windows $PATH.
I then tried setting
mocha-which-node
, with and without an escaped path, and I get the same error.The text was updated successfully, but these errors were encountered: