Unable to set file watcher for coffeescript Follow
I have been trying to follow this guide to setup a file watcher for coffeescript: https://www.jetbrains.com/webstorm/help/transpiling-coffeescript-to-javascript.html
However, i have run into some issues, mainly the guide talks about a coffee.cmd file, which doesn't actually exist.
There is however a file called "coffee" which i think is the file run from the cmd when you execute the command "coffee".
Now i have tried selecting that file, and i get this error:
An exception occurred while executing watcher 'CoffeeScript'. Watcher has been disabled. Fix it.: Cannot run program "C:\Users\Rasmus\AppData\Roaming\npm\node_modules\coffee-script\bin\coffee" (in directory "C:\Users\Rasmus\Documents\GitHub\thegame"): CreateProcess error=193, %1 is not a valid Win32 application
My file watcher is configured like that.
What can I do to fix this?
Please sign in to leave a comment.
Hi there,
It exist. Possibly your CoffeeScript compiler installation is incomplete/corrupted. Try removing and installing it again.
That file is a .js file and ment to run by actual node.exe -- it cannot be executed directly. The .cmd file does exactly that (simply speaking) -- it executes that file using node.
Correct file on your Windows OS shoud be C:\Users\USERNAME\AppData\Roaming\npm\coffee.cmd