Skip to content

Instantly share code, notes, and snippets.

@doctyper
Created December 10, 2010 20:14
Show Gist options
  • Save doctyper/736729 to your computer and use it in GitHub Desktop.
Save doctyper/736729 to your computer and use it in GitHub Desktop.
$ compass compile path/to/sass/ --trace
ArgumentError on line 95 of /Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb: wrong number of arguments (3 for 2)
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:95:in `compile_if_required'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:82:in `run'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:80:in `each'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:80:in `run'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:103:in `timed'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/compiler.rb:79:in `run'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/commands/update_project.rb:36:in `perform'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/commands/base.rb:18:in `execute'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/commands/project_base.rb:19:in `execute'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/bin/compass:25
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/bin/compass:39:in `call'
/Library/Ruby/Gems/1.8/gems/compass-0.11.alpha.4/bin/compass:39
/usr/local/bin/compass:19:in `load'
/usr/local/bin/compass:19
@doctyper
Copy link
Author

ruby 1.8.7 (2009-06-12 patchlevel 174)

@chriseppstein
Copy link

Sounds like I broke lemonade, but you don't need it anymore it's built in.

@chriseppstein
Copy link

But note that the API has changed from before.

@doctyper
Copy link
Author

Right, I'm trying to use the new API, but I get an "Undefined mixin 'icon-sprite'" error when trying to reference a sprite.

@chriseppstein
Copy link

it's only called icon-sprite if your icons are in a folder called "icon". if the folder is called "foo" then the mixin is "foo-sprite"

@doctyper
Copy link
Author

Ah, thanks. Just finished porting over the API (have several sprites in use). I'll file a couple of bugs once I isolate some issues, but one feature that I miss terribly is y-offset. I had to re-export some images with spacing built-in to work around that limitation.

@chriseppstein
Copy link

Thanks for helping test! You can set uniform spacing per sprite, but I guess you needed to specify the y-spacing different from the x-spacing?

@doctyper
Copy link
Author

Well, it's different from spacing in that Lemonade offsets the image by your passed-in y-value.

For example, if you gave it a y-offset of 3, it would position the image beginning 3 pixels from the top. The spacing parameter pads the area between each sprite, but still positions the image flush with the top of the element.

Am I making sense?

@chriseppstein
Copy link

Yes. You can still do that by using this function directly like you were before with sprite-image()
http://beta.compass-style.org/reference/compass/helpers/sprites/#sprite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment