How do I set up file watcher in PhpStorm for Harp.js command line command "harp compile"? - phpstorm

I am trying to set up my file watcher so that it automatically runs harp compile in the command line when I make changes to a file or save. How do I set that up on this screen?

Related

IntelliJ file watcher

I setup file watcher to execute script on PHP files changes in my project, but it get triggered even when no files was changed.
Is it possible to see which particular change triggered watcher?

Nano text editor not warning when opening file already open

Context: I recently started using the nano text editor on a new machine (Red Hat based).
There's no GUI. I'm doing everything through the terminal. I'm using tmux to run multiple commands at once.
Steps to reproduce:
Open up an existing file in nano
Open up that same file in nano in a separate instance (without terminating the first instance) e.g. in another tmux pane
Expected output:
Nano gives a warning in step 2 along the lines of
this file is currently being edited by nano with PID x. Do you wish to continue?
This is what I have experienced on every other machine I've used nano on
Observed output:
Nano executes step 2 without warning. Only when I try to save the file does it alert me that someone else has the file open.
Issue:
This is an issue because sometimes I:
open file x in instance A
modify but don't save
do something else
forget that I haven't saved my modifications to file x, and forget that it's still open
open file x in instance B
make more modifications in instance B
try to save
be warned that 2 instances are opened
realise that I've made changes to 2 different unsaved instances of the one file

File watcher on a SCSS file

I'm completely stumped. I have tried to the best of my being to fix this.
I have a SCSS file, that has a watcher on it, but the watcher does not seem to be working. A normal CSS file is not being made at all. Here is my SCSS file:
As well, I am using the WebStorm IDE.
Error message:
An exception occurred while executing watcher 'SCSS'. Watcher has been disabled. Fix it.: Cannot run program "C:\Users\Luke\WebstormProjects\untitled\myTestWebsite\main.scss" (in directory "C:\Users\Luke\WebstormProjects\untitled\myTestWebsite"): CreateProcess error=193, %1 is not a valid Win32 application
Program path:
Your Program should point to the Sass Gem of Ruby instead you are pointing to your scss file. This is not correct:
Find the sass.bat file on your computer and use the path to that file in the program value
in my case the correct path is: c:\Ruby22\bin\sass.bat
Webstorm automatically watches every scss file you create and creates a css file. You do not need to create a file watcher for every independent scss file
Small detail: I should add --style compressed to the arguments. This creates a minified version of the css file and the load time is decreased

PHPStorm/Webstorm How to have file watcher remove .css if .scss is removed

I am using phpstorm 8.0.3 and I've been using the file watcher feature to compile SCSS to css files. However, when I delete a scss file, the one of the css file is left dangling. In netbeans, it somehow took care of it and deleted the file if the parent file was removed.
Just for testing I set up 2 file watchers. One compiles in place, one is the real file watcher that maps public/scss to public/css
real file watcher
directory structure
dialogue & resulting dangling file

MacVim: Files outside of the home directory cannot be opened from the command line unless full path is specified

I'm trying to open a file using MacVim 7.3 (53) from the command line using the bash shell in the Terminal system application in OS X 10.6.6. Files specified as command line arguments to MacVim are always opened from the home folder. For example:
> cd ~
> cd somefolder
> MacVim somefile.txt
This results in the file ~/somefile.txt being opened instead of ~/somefolder/somefile.txt.
If the full path to the file is specified in the command line argument the file will be opened as expected. For example:
> cd ~
> MacVim ~/somefolder/somefile.txt
Setting the option autochdir in .vimrc does not resolve the issue.
Use the mvim command line shell script to execute MacVim from command line. Just tested and it works as expected.