OK, well I'm confused. What file does compass use for options in a Rails install? The wiki gives the file syntax but I can't find any files that look right.
-Ryan On Dec 24, 3:35 pm, Nathan Weizenbaum <[email protected]> wrote: > The directory isn't the problem. The problem is that somewhere > Sass::Plugin.options[:cache_location] is getting set to nil. This is causing > update_stylesheets to fail. > > > > On Thu, Dec 24, 2009 at 1:27 PM, Chris Eppstein <[email protected]> wrote: > > There's not a good place for him to add that in a compass project. I > > suggest removing the sass cache directory. > > > Hunt & pecked on my iPhone... Sorry if it's brief! > > > On Dec 24, 2009, at 12:30 PM, Nathan Weizenbaum <[email protected]> wrote: > > > Actually, these options should automatically be merged with the default > > options. What happens when you do "p Sass::Plugin.options"? > > > On Thu, Dec 24, 2009 at 12:21 PM, Nathan Weizenbaum < <[email protected]> > > [email protected]> wrote: > > >> Ryan, I think your issue is different. Your problem seems to be that the > >> :cache flag is set for Sass::Plugin.options, but the :cache_location option > >> isn't. I've just pushed a fix to the stable branch that fixes this bug. For > >> now, if you explicitly set "Sass::Plugin.options[:cache_location] = > >> Sass::Engine::DEFAULT_OPTIONS[:cache_location]", this should work fine. > > >> On Thu, Dec 24, 2009 at 7:34 AM, Ryan Michael < <[email protected]> > >> [email protected]> wrote: > > >>> I'm having a very similar problem, but it's coming from my compass > >>> watcher script (using rails/compass). My sass files look like this: > > >>> // site.sass > >>> @import partials/base.sass > >>> @import partials/mixins.sass > >>> @import partials/products.sass > > >>> body > >>> +i18n_highlighting > > >>> #user_block > >>> float: right > >>> +inline_list > > >>> #nav_block > >>> float: left > >>> clear: both > >>> +inline_list > >>> margin-bottom: 20px > > >>> #content_block > >>> clear: both > > >>> #footer_block > >>> clear: both > >>> text-align: center > >>> +inline_list > > >>> // _products.sass > >>> @import mixins.sass > > >>> #sidebar > >>> float: left > >>> width: 200px > >>> margin-left: 20px > > >>> #browse_content > >>> margin-left: 270px > >>> +browse > > >>> // _mixins.sass > >>> =inline_list > >>> ul > >>> display: inline > >>> li > >>> display: inline > > >>> =i18n_highlighting > >>> .translation_missing > >>> background: yellow > > >>> =browse > >>> .browsing_block > >>> width: 300px > >>> float: left > > >>> compass tries to compile site.sass and gives the the following error: > > >>> TypeError: can't convert nil into String > > >>> Backtrace: > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> files.rb:81:in `join' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> files.rb:81:in `sassc_filename' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> files.rb:24:in `tree_for' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:97:in `update_stylesheet' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:83:in `update_stylesheets' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:78:in `each' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:78:in `update_stylesheets' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:76:in `each' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:76:in `update_stylesheets' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin.rb:63:in `check_for_updates' > >>> /home/kerinin/Projects/forge/vendor/plugins/haml/rails/../lib/sass/ > >>> plugin/rack.rb:43:in `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> string_coercion.rb:25:in `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in > >>> `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> params_parser.rb:15:in `call' > >>> /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/metal.rb:47:in > >>> `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/ > >>> cookie_store.rb:93:in `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> failsafe.rb:26:in `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> dispatcher.rb:114:in `call' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> reloader.rb:34:in `run' > >>> /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ > >>> dispatcher.rb:108:in `call' > >>> /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in > >>> `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call' > >>> /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in > >>> `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in > >>> `call' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in > >>> `service' > >>> /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > >>> /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > >>> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > >>> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' > >>> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > >>> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' > >>> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' > >>> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' > >>> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' > >>> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' > >>> /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in > >>> `run' > >>> /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111 > >>> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in > >>> `gem_original_require' > >>> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' > >>> script/server:3 > >>> */ > >>> body:before { > >>> white-space: pre; > >>> font-family: monospace; > >>> content: "TypeError: can't convert nil into String"; } > > >>> Not sure what's causing this but it's a PITA. The oddest part is that > >>> it doesn't seem to be consistent - sometimes it happens and sometimes > >>> it doesn't (on the exact same code) > > >>> -Ryan > > >>> On Dec 17, 1:04 pm, Nathan Weizenbaum <[email protected]> wrote: > >>> > What version of Ruby are you using? How are you calling css2sass? > > >>> > On Thu, Dec 17, 2009 at 9:20 AM, Yomi Colledge <[email protected] > >>> >wrote: > > >>> > > It's a consistent issue, I've had a play around and it seems to > >>> happen with > >>> > > even the most basic of CSS files. > > >>> > > On Wed, Dec 16, 2009 at 5:28 PM, Chris Eppstein <[email protected] > >>> >wrote: > > >>> > >> Does it happen for you all the time or only with certain inputs? > > >>> > >> If input dependent, please post that css > >>> usinghttp://gist.github.comor > >>> > >> <http://pastie.organd>http://pastie.organdsend us the link. > > >>> > >> chris > > >>> > >> On Wed, Dec 16, 2009 at 6:13 AM, baphled <[email protected]> > >>> wrote: > > >>> > >>> This seems to be a relatively new issue, though I have not tried to > >>> > >>> convert from CSS to SASS in a few months. When ever I try now get > >>> the > >>> > >>> following error: > > >>> > >>> /Library/Ruby/Gems/1.8/gems/haml-2.2.15/lib/sass/css.rb:75:in > >>> > >>> `initialize': can't convert nil into String (TypeError) > >>> > >>> from > >>> /Library/Ruby/Gems/1.8/gems/haml-2.2.15/lib/sass/css.rb:75:in > >>> > >>> `new' > >>> > >>> from > >>> /Library/Ruby/Gems/1.8/gems/haml-2.2.15/lib/sass/css.rb:75:in > >>> > >>> `initialize' > >>> > >>> from -e:1:in `new' > >>> > >>> from -e:1 > > >>> > >>> Here's a list of all the gems I have installed: > >>> > >>> actionmailer (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.3.6) > >>> > >>> actionpack (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.13.6) > >>> > >>> actionwebservice (1.2.6) > >>> > >>> activerecord (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.15.6) > >>> > >>> activeresource (2.3.5, 2.3.4, 2.3.2, 2.2.2) > >>> > >>> activesupport (2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.4.4) > >>> > >>> acts_as_ferret (0.4.4, 0.4.3) > >>> > >>> builder (2.1.2) > >>> > >>> capistrano (2.5.10, 2.5.2) > >>> > >>> cgi_multipart_eof_fix (2.5.0) > >>> > >>> compass (0.8.17) > >>> > >>> cucumber (0.4.4) > >>> > >>> daemons (1.0.10) > >>> > >>> diff-lcs (1.1.2) > >>> > >>> dnssd (1.3.1, 0.6.0) > >>> > >>> fastthread (1.0.7, 1.0.1) > >>> > >>> fcgi (0.8.8, 0.8.7) > >>> > >>> ferret (0.11.6) > >>> > >>> gem_plugin (0.2.3) > >>> > >>> haml (2.2.15) > >>> > >>> highline (1.5.1, 1.5.0) > >>> > >>> hpricot (0.8.2, 0.6.164) > >>> > >>> justinfrench-formtastic (0.2.4) > >>> > >>> libxml-ruby (1.1.3, 1.1.2) > >>> > >>> mongrel (1.1.5) > >>> > >>> mysql (2.8.1, 2.7) > >>> > >>> needle (1.3.0) > >>> > >>> net-scp (1.0.2, 1.0.1) > >>> > >>> net-sftp (2.0.4, 2.0.1, 1.1.1) > >>> > >>> net-ssh (2.0.17, 2.0.16, 2.0.4, 1.1.4) > >>> > >>> net-ssh-gateway (1.0.1, 1.0.0) > >>> > >>> nokogiri (1.4.1, 1.4.0) > >>> > >>> polyglot (0.2.9) > >>> > >>> rack (1.0.1) > >>> > >>> rails (2.3.5, 2.3.2, 2.2.2, 1.2.6) > >>> > >>> rake (0.8.7, 0.8.3) > >>> > >>> RedCloth (4.2.2, 4.1.1) > >>> > >>> rspec (1.2.9) > >>> > >>> rspec-rails (1.2.9) > >>> > >>> ruby-openid (2.1.7, 2.1.2) > >>> > >>> ruby-yadis (0.3.4) > >>> > >>> rubygems-update (1.3.5) > >>> > >>> rubynode (0.1.5) > >>> > >>> sqlite3-ruby (1.2.5, 1.2.4) > >>> > >>> term-ansicolor (1.0.4) > >>> > >>> termios (0.9.4) > >>> > >>> treetop (1.4.3, 1.4.2) > >>> > >>> webrat (0.6.0) > >>> > >>> xmpp4r (0.5, 0.4) > >>> > >>> ZenTest (4.2.1, 4.1.4) > > >>> > >>> Any guidance would be greatly appreciated. > > >>> > >>> -- > > >>> > >>> You received this message because you are subscribed to the Google > >>> Groups > >>> > >>> "Haml" group. > >>> > >>> To post to this group, send email to... > > read more » -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
