Sublime Forum

Compass build issue

#1

Hi there, saying I’m new to Sass / Compass and Sublime is an understatement, but I’m taking a course to learn… the last module discusses Compass and a few other frameworks. I’ve installed compass via Terminal (I’m on a Mac) and it seems to be working but when I compile via Sublime I’m getting an error that:

[ERROR] compass not found. Make sure it exists in your PATH.

Compass is in my PATH (/usr/local/bin), and is running fine through Terminal… is this PATH a setting within the Compass Build System? Or something else? How do I fix the problem?

Someone has shown me how do what I need via Terminal but I’d like to be able to finish the course as it’s taught.

TIA for your help.

0 Likes

#2

This is kind of a FAQ, but one without a simple answer. It’s easy to describe what the problem is, but how to fix it is tricky. The problem is that the environment (which includes the PATH environment variable) in shells run via the Terminal app is not the same as the environment for general GUI apps such as Sublime Text. So while /usr/local/bin is in your PATH in Terminal, it isn’t in your PATH in Sublime Text.

How to fix? Sorry, I don’t know off-hand. OS X keep changing how to specify an environment for GUI processes. You might be able to brute-force things by always specifying the full path to Compass in Sublime Text.

0 Likes