Open torkiljohnsen opened 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.
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.
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.
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
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....
Install Compass at the command line and then switch CodeKit to use the external Compass compiler (in the preferences window.)
That did the trick, thanks Bryan!
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.
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:
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.
That sounds reasonable, thanks for the update! Appreciated
I have installed rgbapng for Compass, but Codekit can't seem to find this. I get this error when trying to compile:
But if I run
compass watch
in the commandline though, it works just fine.