I notice under dev tab "files to watch" there is sites/all/themes/sasson/sass/sasson.scss but that file does not exist in the core theme. I'm using the latest 2012-Dec-01 dev build.
The desktop-first.scss compile error:
An error occurred while running:
'compass' 'compile' '/private/var/tmp' '--output-style' 'expanded' '--boring' '--images-dir' '/sites/all/themes/sasson/images' '--config' '/private/var/tmp/assetic_compassDZtEv1' '--sass-dir' '' '--css-dir' '' '/private/var/tmp/assetic_compassvvp2Tn.scss'
Output:
error assetic_compassvvp2Tn.scss (Line 126: List index is 2 but list is only 1 item long for `nth')
create assetic_compassvvp2Tn.css
(local path before /sites snipped out).
The assetic_compassxxxxx changes each compile attempt.
I also get the following:
Strict warning: Creating default object from empty value in sasson_get_assets_list() (line 228 of /sites/all/themes/sasson/includes/assets.inc).
(local path before /sites snipped out).
Line 228 is the middle line of:
elseif ($filter == 'jquery') {
$modules['jquery']->filename = 'misc/jquery.js';
}
Comments
Comment #0.0
erutan commentedformatting
Comment #0.1
erutan commentedadd in infoz
Comment #0.2
erutan commentedredundancy
Comment #1
erutan commentedI was able to fix this by changing to 'COMPILED FILES PATH' under SASS Settings to
sites/all/themes/. That seems a little fragile...The CSS rendering is a little undesired because I have sasson under /sites/all/themes and my subtheme under /sites/all/aegir-themes/ (a github repo with multiple themes I keep on the same platform in aegir). It'd be nice to be able to choose /sites/all/themes/sasson and then /sites/all/aegir-themes/foobar, but that might be a bit of an edge case? I suppose my alternative would be /def/files/sasson if the rewrite URL worked correctly.
Comment #2
erutan commentedChecking " Rewrite URLs." brings up the:
Strict warning: Creating default object from empty value in sasson_get_assets_list() (line 228 of /sites/all/themes/sasson/includes/assets.inc).Unchecking it and flushing cache takes it away. With that unchecked + compile path set to
sites/all/themes/it works for now.Comment #3
tsi commentedOK, more than one issue here:
[theme_path]should do the trick.sasson_load_stylesheet()).Comment #4
tsi commentedPushed a fix for the first one ("files to watch" path).
Comment #5
erutan commentedDo you want me to keep on the previously released 3.x dev or pull from HEAD for testing?
Comment #6
tsi commentedNo need to keep an old version, this is why git is for. anyway, I didn't push anything major.
Comment #7
erutan commentedOk, I'll work off of head then, and make a comment of that when I post issues.
Comment #8
erutan commentedWhen I include a grid setting e.g.
#block-block-3 { @include grid(12); }from salsa my subtheme scss file I get a similar compile error for that file:I have my subtheme (erutan) directly in
sites/all/themesinstead ofsites/all/themes/aegir-themes.Comment #9
erutan commentedsince this started happening I also lose my css for admin_menu - I can clear cache to get it back but then it goes away again next refresh. existing page styling still appears just fine. disabling admin_menu doesn't fix anything (aside from me being annoyed slightly less).
Comment #10
erutan commentedComment #11
tsi commentedThat seems like a Salsa error, I have updated Salsa to the latest version released last weekend, see if that helps.
Apart from that, this issue seems a bit out of control, there are several issues here that don't seem to have anything to do with each other.
Comment #12
erutan commentedYeah - I reinstalled Sasson before and no change, I'll rebuild my subtheme again soon and see if that does anything.
I wonder if it has anything to do with me using a VirtualDocumentRoot for my local dev setup + assetic. ~/Sites/foo maps to foo.dev, I switched off of MAMP a while back but certain apps don't like VirtualDocumentRoot - Chive gives me 500s etc.
Comment #13
erutan commentedWow - that solved the desktop-first and subtheme scss issues.
I got the old:
When I went to
/admin/appearance/settings/subtheme, but that's the only time any errors have shown up. update: yeah, it's only within that certain path that the 228 shows up.Comment #14
erutan commentedadmin_menu is still being weird, but I disabled it again... I've had a similar problem with it ~a year ago.
http://drupal.org/node/1064128 old old issue. must be some malformedness from assetic builds that is making it fussy.
desktop-first.scss occasionally pops up on error message:
I've tried this with a subtheme override and base _settings.scss - luckily at this stage I can deal with default settings. No rhyme or reason I can see as to where this pops up, maybe every 20th or so page load. _settings.scss isn't being loaded before _sasson_large.scss so the latter doesn't know what to do @ line 16.
Comment #15
tsi commentedDo we have anything to do inside Sasson to prevent the admin-menu bug? the issue doesn't help much.
Comment #16
erutan commentedI don't think so - the menu bug is most likely just a side effect of either the assetic line 228 error or desktop-first.scss occasionally not wanting to recompile, it was fine until a certain point then kept on having the unstyled behaviour. I'm just back to the standard toolbar for now...
It's odd that the line 228 only shows up in the GUI for editing subtheme options in admin. I'm going to migrate the site to a new environment, I'll see how that impacts the errors (now non-critical) I've been getting.
Comment #17
erutan commentedIt might be because it's calling an earlier version of Ruby on my dev machine. I have RVM and 1.9.3 installed,
ruby -v,echo $PATH,echo $GEM_PATH, etc etc all point to that. Latest stable RVM and Compass - I'm running OS X 10.8 locally.I got this error message on trying to compile desktop_first.scss:
I noticed some of the assetic files seem to be pointing to /usr/bin/ruby -
private $rubyPath;&private $rubyBin;which in OS X 10.8 symlinks to the default install of/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby. Some symlinks /usr/bin are signed by an apple cert, yay, including ruby. It could also be that I need to use a wrapper (I've tried RVM and standard ruby builds).http://stackoverflow.com/questions/8979956/sass-broken-after-install-wit... is related.
===
Also on my dev server (Debian Squeeze) I get the message that it didn't find a compass. Manually setting some symlinks in /usr/bin upped me to
FYI this is how I set those up:
settings[sasson_compiler_destination] in the .info file has some relation to:
via: http://symfony2admingenerator.org/installation.html (search for sass).
I think we're going to need more compiler destinations - and ideally it'd be nice to be able to set one for local/dev and one for server/prod (have a toggle in the admin UI?) so we wouldn't have to touch the .info file to change those tokens on the server each time a change is pushed.
update: this is my first time digging into ruby beyond installing some gems and sass --watching. looks like I do need to symlink to wrappers. http://www.lamolabs.org/blog/5397/how-to-use-rvm-installs-of-ruby-in-she... + http://www.bradlanders.com/2011/09/02/simple-wrapper-for-ruby-scripts-ru... look good.
Comment #18
tsi commentedLet's not mix.
The ruby paths configuration issue, if exists (Linux users shouldn't suffer from that, I know windows have troubles in that area, don't know about mac but if it's compiling, even sometimes, than I guess your fine), is a very important issue and better be dealt with in a separate issue.
The theme settings error is caused by the call to
sasson_get_assets_list('js', 'jquery')from theme-settings.php.let's focus on that here.
Comment #19
erutan commentedGiven the "out of control / issues that don't seem related" I figured things could well be impacted by my local dev environment, hence attention to that. On local/OS X it compiles my subtheme.scss all the time now, and webfonts.scss, but I've been getting constant errors on desktop_first.scss due to settings.scss. I was trying to get ruby running on Debian so I could compare the errors against my local dev environment and ran into a different set of issues.
My understanding so far is that since Assetic isn't a ruby app it can't run standard ruby, it needs a wrapped version ala ruby_noexec_wrapper, which isn't sourced and/or symlinked to in /usr/bin by default. In Debian the Assetic in Sasson respect path (hence it looking for /usr/bin/env/, though it also wants more /usr/bin stuff which RVM doesn't setup) - I'll treat this as a "standard" environment vs my OS X which is a mix of what came with the system, homebrew, rvm, some semi-funky apache wildcard stuff, etc which is why I spent some time trying to dig deeper into how it all worked.
/usr/bin/env/ looks similar to http://stackoverflow.com/questions/12127603/usr-bin-env-ruby-noexec-wrap...
In retrospect, it's likely that Assetic respects $PATH on OS X as well and I just temporarily had a messed up RVM/ruby when I was tweaking things, so it went further down $PATH to hit the /usr/bin/ruby which is 1.8.
Comment #20
erutan commentedAny progress on the theme settings error which is caused by the call to sasson_get_assets_list('js', 'jquery') from theme-settings.php?
The admin_menu issue goes away when I don't have the theme compile SASS (e.g. on server).
Comment #21
tsi commentedNot really, I am busy with other tasks, for me this is very low priority since it happens only when you run Sasson as admin theme, which I usually don't.
Comment #22
tsi commentedI think my latest commit should fix the theme settings error, can you please try and test it?
Comment #23
erutan commentedI still get:
I've been using Seven for the admin theme.
Comment #24
tsi commentedYeah, this is why we shouldn't mix different issues, I'm talking about the errors from #13 that appears on the theme settings page when Sasson is being used as admin theme.
Comment #25
erutan commentedOk - that error has gone away. It wasn't one I was particularly worried about myself either.
Comment #26
erutan commentedAny idea re: #23 / something you'd want me to look into?
Comment #27
tsi commentedI guess you just need to
@import "settings"before using$large.Actually, an issue summary would be really helpful here since I have no idea what is causing what here. thanks.
Comment #28
erutan commentedI've worked around it by just combining relevant files into a resp.scss I'm including in my subtheme, but the issue is if I choose a theme to be responsive I get that assetic error for desktop-first and desktop-first and they don't compile. It seems odd as I've tried a few different dev builds of v3 and this seems obvious enough that someone else should have had the same issue if it's truly just the base theme loading files out of order. Both of the files do have the @import "settings" statement before they @import their sub files.
Comment #29
erutan commentedComment #30
erutan commentedAssetic is loading settings.scss (if I move the file out of it's default location, either in the subtheme or the basetheme it tells me that it isn't found), but it obviously isn't applying the contents of it to the foo-first.scss files hence the variables give compile errors. Someone else has this issue as well.
What I've done to get around this is to copy desktop.scss to my subtheme and just load the partials that I need into it and keep the variables for breakpoints all in that same file. It's the simplest way to avoid whatever hiccup is in the compile system.
update: copying the contents of settings.scss into desktop.scss in my subtheme still gives me the compile error re: $large. I wonder if assetic is ignoring my $PATH and $GEM_PATH set via RVM and using my default 1.8 ruby install that comes with OS X. pre SASS 3.2 you couldn't pass variables through media queries right?
update2: I feel it has something to do with me assuming $rubyPath was supposed to override all the /usr/bin stuff in Assetic - Assetic isn't meant to gather information from $PATH, but to have these paths defined in a config.yml. Since there is no config.yml it seems like these settings should be tokens we can enter via the .info file or theme UI - it seems like you're using sass.inc to path that info in a drupalish manner(
sasson_compass_path, etc), but I'm not much of a PHP guy.I've tried tweaking the settings in the following files from usr/bin/foo, judging by stack overflow posts they should work, but no dice yet.
Interestingly enough even after changing the paths in Assetic it still defaults to 1.8 if I give it an invalid import.
Comment #31
erutan commentedI rebuilt my OS X after a failed logic board (I used my time machine backup data for all my media/files/content, but my system was getting really boggy). After messing around with rvm, passenger, and a bunch of other shit I realized it wasn't just apache not pulling in the right path... I ran a little script that echoed
getenv('PATH');after editing/System/Library/LaunchDaemons/org.apache.httpd.plistand my correct path was being processed by Apache. Before this on my old machine I had been compiling via compass/sass fine locally and at one point had switched from the default old ruby-1.8 that comes with OS X to a custom one that worked fine in the CLI / fire.app, etc.After trying to recreate that and having it repeatedly say it couldn't find compass despite the edits to httpd.conf, /System/Library/LaunchDaemons/org.apache.httpd.plist, a working path otherwise, I gave up and imploded rvm / cleaned up my bash profile then and gave
sudo gem install compassa try.Works flawlessly.
Moral of the story, unless you really know your way around Ruby / are coding some actual projects, just stick with the default OS X install. ^^
Comment #32
amirtaiar commentedI kind a lost in this issue. Seems like many issues in this one - My issue as well:
I am working on the linux server if thats helps.
Any solution?
As for me, I love Sasson and used the 2.x version on may website.
Somehow On this new website I keep getting https://drupal.org/node/1502116 issue so I tried the 3.x version.
Now I get this errors which kind of taking the air out...
Comment #33
tsi commented@Amir -
Well?
Plus, if you don't think this issue is exactly what you experience, please let it be and open another one.
Comment #34
amirtaiar commentedI have several logs all include:
I have change 'COMPILED FILES PATH' under SASS Settings to sites/all/themes/ but that doesn't help.
Seems like this is the main issue here and not - Salsa and admin menu or so...
Comment #35
tsi commentedDo you have sass & compass installed on your system?
Comment #36
amirtaiar commentedI am working on my linux server [vps] and no.
But as I see on the Readme there is no such need.
So I guess I should follow this - http://compass-style.org/install/ .
I didn't fully understand it and I guess it's a new issue...
Comment #37
tsi commentedThat is a really basic question which has nothing to do with this issue, you said:
Well, you just made it worse.
Comment #38
amirtaiar commentedSorry for that.
I think the requirements need to be more clear...
Comment #39
tsi commentedI agree
Comment #39.0
tsi commentedadd in dev version
Comment #40
tsi commentedCleaning up.
So much have changed lately in the 3.x branch that this issue is probably irrelevant.
You are welcome to try the latest v3.x