How to use compass in phpstorm?

前端 未结 4 1305
失恋的感觉
失恋的感觉 2021-01-31 11:00

I\'m aware of this question: How to add Compass syntax support to Jetbrains PhpStorm? but it doesn\'t help.

I just opted for copying the files over, much easier in my pr

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 12:04

    I am using PhpStorm 2017.1.4

    Setting the Ruby path variable and enabling compass in PhpStorm did not work out for me.

    I could not use compass from the project directory ("Failed to run Compass") because the terminal could not resolve the command compass with the executable from the Ruby instal dir.

    Thus, I permanently set a windows (using win10) environment variable following this explanation.

    Quick explanation:

    • Assuming you have already installed ruby and compass.

    • Go to: Control Panel -> System -> Advanced System Settings -> Environment Variables...

    • Add C:\Ruby22\bin to your PATH variable

    • Restart PhpStorm

    Further advice:

    If you imported your Project from a different system it might help if you delete your config.rb filed and run compass init from your project root.

提交回复
热议问题