IntelliJ Compass File Watcher
cmd, compass-sass, intellij-idea
Solution
I found the clue to the answer in this post: http://devnet.jetbrains.com/message/5478444 It seems you should be creating a file watcher that executes the compass compile command rather than the watcher command. Note that there is an option to choose "Show Console" (see screen print below) as 'Always', 'Never', or 'Error'.
Here's what I did to setup compass for my project:
1) at the command line in the project root directory:
% run compass install compass
directory sass/
directory stylesheets/
create sass/screen.scss
create sass/print.scss
create sass/ie.scss
create stylesheets/screen.css
create stylesheets/print.css
create stylesheets/ie.css
2) then I went into the project and moved all the sass files to sass/ and all the css files to css/
3) then I created a new File Watcher per the screen shot
For Windows
The settings from the screen shot didn't work exactly for me on Windows. Here's my settings that did work:
Program: C:\Ruby200\bin\compass.bat
Arguments: compile $FileParentDir$ --sass-dir sass --css-dir stylesheets
Working Directory: $FileParentDir$
Output paths: <blank>
Problem
I am working with IntelliJ and included an external tool. Settings - external tools - add tool here I added 'compass watch' and run it. Everything works fine, except that when compass compiled the scss it will show the psoitive result only after the next compilation. I would like to see when it finishes a task, as I do in the console window. Any idea what to change to get this working? Here is a screenshot showing that after compass finished it does not show: ``` override ../css/app.css ``` if will show the line once a new change happends. On an error it shows it right away.