Explain popularly how to run this compass in PHPStorm 9? Installed Ruby. I started some commands there. In general, I installed it. But all this outside of PHP storm is done. The problem is that there are ready projects. Each project has a separate disk partition. The project contains the CSS and SASS folders. They have a bunch of ready-made files with lines like:

@import "compass"; @import "compass/reset"; 

PHP Storm gives an error when editing SASS, of course - because COMPASS is not installed. But how? How can I install it and set it on this project? All information from the network tells how to create a new project. In my case, neither can I use this for myself.

    1 answer 1

    Most likely you have not installed a compass in your project.

    But let's order. "Some kind of team there" will not work.
    1. From rubyinstaller.org we download and install ruby ​​into the system (you don’t need to do this on a poppy).
    2. Install sass, for this, run the command gem install sass in the console
    3. Install compass, for this, run the command gem install compass in the console
    4. Install sass and compass in the project, to do this, go to the project folder from the console or open the terminal in your project in PHPStorm and execute the compass init command.
    5. The stylesheets / config.rb file describes all the conditions for which sass and compass are valid.

    Let's look at it:
    css_dir - output directory where compiled css will be placed
    sass_dir - directory in which you will place your .sass files
    images_dir - directory for images
    javascripts_dir - directory for js

    6. Further, if necessary, in the console execute the compass watch command. This command starts automatic tracking of the sass folder and when a change appears in any file in this folder, it automatically compiles everything into the css folder.

    • 1. Starting from point 4, everything breaks down)) Since the terminal in PHPstorm issues requests for these commands: "compass" is not an internal or external command, an executable program, or a batch file. - Andrei Faizullin
    • 2. In PHPstorm, there are functions for monitoring File Watcher, as well as settings for the Compass plugin. I would configure from this side. Since I have a lot of projects, and in each their own SASS and CSS. According to your scheme, I need to carry out all these manipulations for each project. And in fact - it is necessary that when you save the SASS file, CSS is compiled. - Andrei Faizullin