error sass/style.scss (Line 41 of _respond-to.scss: Mixin breakpoint takes 2 arguments but 4 were passed.)
I have a habit of updating gems and then doing a gem cleanup afterwards.. so.. only the most current of gems are installed :P
Gems installed:
- compass-aurora 1.1.1
- toolkit 0.2.8
- susy 1.0.8
- respond-to 2.6
- breakpoint 2.0.2
Plus some others that I don't think are relevant.
As I understand it respond-to development was rolled into breakpoint 2.0 There are some instructions for "migrating to breakpoint 2.0" but I don't think it applies to Compass Aurora gems, or at least I am not confident I am heading in the right direction by modifying Aurora/Toolkit gems and scss files to remove any reference to respond-to.
Current use is very simple..
@include respond-to('my query'){
#mydiv{
content: "Sam is neato";
}
}
Any help would be appreciated!
Thanks
Comments
Comment #1
Snugug commentedThis is a known issue with the Toolkit gem. I'm in the process of updating those gems, but in the mean time, you shouldn't be so agressive with your removal of old gems as tools like Bundler will allow you to use old versions of installed gems when updates break.
Comment #2
humanaut commentedAh, ok. Thanks. I'll have to learn how to use that.
In the mean time it seems my macbook has breakpoint 1.3 installed so I can at least work on all my projects on this machine. I've noticed that even my work machine was a version behind on toolkit. Does 0.3.1 solve the issue or are you still working on it? I see in the readme it mentions breakpoint 2.0. Not sure if that's new or not.
Thanks Snugug.
Comment #3
Snugug commented3.1 should solve the issue you're having with respond-to, but it's possible some of the changes made to Breakpoint won't be compatible with what you've currently got, so I encourage you to look into Bundler regardless.
Comment #4
humanaut commentedHmm, yeah, still won't compile.
The bundler documentation looks pretty intimidating and I'm not sure I can spend the company time to learn all this right now. I'll have to learn it over the weekend or something. I am still new to compass and have been taking it all for granted I suppose.
In the mean time, there must be a way to temporarily fix this.
error sass/style.scss (Line 2 of _aurora.scss: File to import not found or unreadable: respond-to.Looking at the Breakpoint wiki.
- $breakpoint-legacy-syntax: true; (Did not do anything for me)
- Bundler (no at this time)
- There are no syntax examples for Breakpoint 2 on the wiki, but my only use of it right now is..
When I comment out @import 'aurora/susy-grid'; the error obviously doesn't happen. I guess I can just use normal media query syntax for now, but I suppose I am confused as to how a new person would be able to use the theme if they have everything updated and only followed the install instructions on the project page. Would they still have the same problems I do? Maybe not, as they would have old toolkit/breakpoint installed?
edit; I've treated myself as a new Aurora user and installed the compass-aurora gem which installs at the latest gems. A new user would not know about respond-to syntax, so I think at this point I just need to figure out the breakpoint syntax. Of course, my old projects that relied on respond-to will be in trouble I suppose, until I learn how to use bundler.
Created a new theme (again, pretending to be a new user to basically everything and following the project instructions) and I get the same error.
edit 2: I figure I'll just paste this to show how I am getting it to at least work for now.
Comment #5
humanaut commentedComment #6
esclapes commentedSnugug, when you say
You mean this could be solved using the pre-release gem?
sudo gem install compass-aurora --preUpdate
well, I can answer myself, 3.1 is refearing to toolkit 0.3.1, and the above command installs an older compass-aurora than current 1.1.1
Still getting the respond-to error after
compass create mytheme -r aurora --using aurora/coronaI guess it is because respond-to is now part of breakpoint, and I guess all
@import respond-toshould read@import breakpointComment #7
Snugug commentedAs I said, the solution to this problem is to use Bundler to keep your gems at the older version for this project. I'm sorry that you don't feel comfortable learning Bundler, but even after the official upgrade documentation is out, that will encourage you to do the same as it is the Ruby standard way of dealing with dependencies. You have a dependency on the older versions of the Compass extensions, so you should be using Bundler.
Comment #8
humanaut commentedThanks for the reply Snugug.
I actually don't mind learning bundler, I am for from uncomfortable learning it. But using company hours to learn another dependancy on a Drupal theme was not an option at the moment, since I really wasn't sure how many hours it would take me :) Remember, designers are afraid of this stuff ;-)
None the less, I understand the use for it and have been looking into it as previously mentioned.
As a brand new aurora user with no extensions installed except the ones required in the themes instructions, I might get confused as to why things were not working. Though, obviously, as mentioned, I am sure the new documentation will explain all that!
Thanks again.
Comment #9
alienresident commentedI was having the same error from 'respond-to' in a non-drupal project. I googled the error
(Line 41 of _respond-to.scss: Mixin breakpoint takes 2 arguments but 4 were passed.)and came across this post.After playing around with bundler I was still having the issue (FYI take a look at Getting Started with Bundler).
I compared the respond-to mixin in breakpoint (2.0.2) with the respond-to mixin in respond-to (2.6). I realized that my project was first calling 'breakpoint 2.0.2' and then 'respond-to 2.6' causing the error.
I removed
require 'respond-to'from config.rb and@import 'respond-tofrom my scss file and the css compiled without the error. This seems to be the same issue here in the respond-to issue queue.Hope this helps.
P.S. I was able to get bundler working and now have my compass dependencies managed! Thanks!
Comment #10
Snugug commentedFor reference, Bundler instructions have been added to the readme.
http://drupal.org/project/aurora#using-bundler