bdkjones / CodeKit-1-Old

146 stars 1 forks source link

CodeKit does not find "rgbapng", but Compass does #335

Open torkiljohnsen opened 12 years ago

torkiljohnsen commented 12 years ago

I have installed rgbapng for Compass, but Codekit can't seem to find this. I get this error when trying to compile:

Compass was unable to compile one or more files in the project: 

LoadError on line 160 of /Applications/CodeKit.app/Contents/Resources/engines/compass/bin/../lib/compass/configuration/data.rb: no such file to load -- rgbapng
Run with --trace to see the full backtrace

But if I run compass watch in the commandline though, it works just fine.

bdkjones commented 12 years ago

Have you followed the steps on the help page for using plugins with Compass?

A less-cumbersome way to use them is coming in the next update.

torkiljohnsen commented 12 years ago

Embarrassingly I have to admin I had not…

But, when I, in my project's config.rb, changed require "rgbapng" to require "/Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/rgbapng.rb"

I get this error:

Compass was unable to compile one or more files in the project: 

LoadError on line 1 of /Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/rgbapng.rb: no such file to load -- rgbapng/functions
Run with --trace to see the full backtrace

inside the /lib folder, there is a subfolder called rgbapng with a functions.rb-file.

bdkjones commented 12 years ago

Until the update, you have to add a require statement to the config file for all the dependencies that your plugin requires. In this case, it looks like it's looking for something in the functions folder within the plugin.

torkiljohnsen commented 12 years ago

Eagerly awaiting the next update then :)

On Wed, May 2, 2012 at 11:56 AM, bdkjones < reply@reply.github.com

wrote:

Until the update, you have to add a require statement to the config file for all the dependencies that your plugin requires. In this case, it looks like it's looking for something in the functions folder within the plugin.


Reply to this email directly or view it on GitHub: https://github.com/bdkjones/CodeKit/issues/335#issuecomment-5457641

mynameispj commented 12 years ago

So, I'm trying to use the same plugin with Codekit and encountering problems even when I specifically include the absolute paths of all of plugin's dependencies.

Here's my config.rb file...

require "/Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/rgbapng/functions.rb"
require "/Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/rgbapng.rb"
require "/Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/stylesheets/_rgbapng.scss"

And here's the error I'm getting from Codekit:

Compass was unable to compile one or more files in the project:

LoadError on line 55 of /Library/Ruby/Site/1.8/rubygems/custom_require.rb: no such file to load --         
/Library/Ruby/Gems/1.8/gems/compass-rgbapng-0.1.1/lib/stylesheets/_rgbapng.scss
Run with --trace to see the full backtrace

Any ideas? I'd really like to use this plugin with Codekit on the project I'm working on....

bdkjones commented 12 years ago

Install Compass at the command line and then switch CodeKit to use the external Compass compiler (in the preferences window.)

mynameispj commented 12 years ago

That did the trick, thanks Bryan!

JohnONolan commented 11 years ago

Related: http://stackoverflow.com/questions/13259541/compiling-error-on-codekit-when-using-sass-compass-and-susy

Is a fix for this coming? I've run into it a couple of times now and had to talk other devs through fixing this issue when using any projects of mine which utilise compass plugins.

bdkjones commented 11 years ago

Hi John,

The status is currently in limbo. The reason is that the developers of Compass are working on a better plugin system for Compass, so I'm waiting to see what they come up with. More automatic support of common Compass plugins is definitely something I want to achieve, though.

-Bryan

On 2013 Mar 05, at 13:20 , JohnONolan notifications@github.com wrote:

Related: http://stackoverflow.com/questions/13259541/compiling-error-on-codekit-when-using-sass-compass-and-susy

Is a fix for this coming? I've run into it a couple of times now and had to talk other devs through fixing this issue when using any projects of mine which utilise compass plugins.

— Reply to this email directly or view it on GitHub.

JohnONolan commented 11 years ago

That sounds reasonable, thanks for the update! Appreciated