Background - File Watcher ?!?

Hi,

mayby I'm stupid but:

5. We’ve renamed Background tasks feature (that compile your TypeScript to JavaScript, LESS to CSS and so on) to File Watchers, which seems to be more appropriate name.

I can't find anything like that in the IDE.

Now I'm using Compass - I start compass with

cmd->compass watch

(yes, windows)

Is it possible to to that automaticly in phpstorm?

cu

9 comments

Here is the plugin

http://plugins.jetbrains.com/plugin?pr=idea&pluginId=7177

You can install it from the IDE: Settings -> Plugins -> Browse repo -> File Watcher -> Right click -> install

0

Thank you very much,

now I have to learn how it works.

I have the lines


@import "compass/reset";
@import "compass/css3/box-shadow";


in my SCSS.

But I got an Errormsg:


C:\Ruby\bin\scss.bat --no-cache --update main.scss:main.css
      error main.scss (Line 2: File to import not found or unreadable: compass/reset.
Load path: D:/_Daten/_SERVER/_TEST/1.test/htdocs/inc/css/sass)


Here are my settings:


jetbrainsforum.png

When I go /htdocs dir an start cmd=>compass watch it works fine.

I have a conig.rb


http_path = "/"
css_dir = "inc/css"
sass_dir = "inc/css/sass"
images_dir = "mat/cssimg"

0

You should create your own file watcher for Compass.

Check attached screenshot. It works for me.



Attachment(s):
Screen Shot 2013-02-08 at 12.01.39 AM.png
0

Hi,

at first: now it works (very fine!!!!)

But it took a litle bit - because I'm on a Windows System. So it works with this for me (and I think for other windows users):



filewatcher.png


And I have a config.rb in the htdocs:

http_path = "/"
css_dir = "/inc/css"
sass_dir = "/inc/css/sass"
images_dir = "/mat/cssimg"



cu
0

I'm quite sure the most part of SASS users are also Compass users and I wonder why JetBrains didn't implement support for compass.
I must say I'm a bit disappointed.

The configuration you've suggested doesn't make much sense, as if you already have a config.rb file set you don't need to specify all these paths, but also it doesn't seem possible to simply call "compass compile" or "compass watch" with the Watcher: I'll stick with my custom external tool.


0

It is possible to call 'compass compile' and refresh all project. But I think you will need to disable 'Immediate file sync' option to reduce the amount of compilations. Also generated files won't be nested under the original scss file.

Compass Support in progress. Please vote up this issue http://youtrack.jetbrains.com/issue/WEB-5802

0

Please sign in to leave a comment.