2

I keep getting message boxes suggesting that I should install file watchers. When I click 'Add Watcher' and press 'OK' on the dialog it gives the error...

Please set program to run

Where do I get the programs from?

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
  • File Watcher is just a convenience tool that will launch specified program whenever your file gets modified/saved. So .. if you want setup a watcher to compile your `.less` files into `.css` you will need to have LESS compiler installed on your system. – LazyOne Oct 30 '14 at 11:59
  • 1
    If it knows there's a watcher then it ought to help me install it! – Ian Warburton Dec 02 '14 at 21:49

2 Answers2

6

1) not sure why the below instruction does not show how to install jade program. So Sebastian K is right, install

npm install jade -g

the location for windows is this - remember this installed location of jade

C:\Users\lee\AppData\Roaming\npm\jade.cmd

2) follow instruction https://www.jetbrains.com/webstorm/help/new-watcher-dialog.html

3) see attachment to confirm if it works.

enter image description here

Dung
  • 19,199
  • 9
  • 59
  • 54
2

In case it helps somebody you would have to follow this slightly less than obvious procedure:

Install Jade globally using npm:

npm install jade -g

This will actually drop some extra files in your node (or in my case nodist) directory that you will need to set up the watcher.

Set up the watcher by entering following path (tweaked for your own environment):

"c:\Program Files\nodist\bin\jade.cmd" 

for "Program" setting under Watcher configuration for Jade in WebStorm. For the rest of the settings you can leave the defaults.

Sebastian K
  • 6,235
  • 1
  • 43
  • 67