kurenn / sabisu-rails

Simple and powerful engine for exploring your Rails api application
MIT License
127 stars 29 forks source link

Sass::SyntaxError in SabisuRails::Explorer#index on rails 4.2.0 #21

Closed gilmishal closed 9 years ago

gilmishal commented 9 years ago

I am trying to complete the apionrails tutorial using rails 4.2.0, and for some reason it shows me this error, I am thinking it is due to the fact that I am using rails 4.2.0.

this is where the error is thrown

Extracted source (around line #132):

@include border-radius($form-input-radius); @include box-shadow($form-input-box-shadow); @include appearance($ap: none); # line 132

@if($include-input-transition) { @include single-transition($form-input-transition-property $form-input-transition-duration $form-input-transition-timing-function);

kchens commented 9 years ago

I'm having the same error as well.

tenaz3 commented 9 years ago

Same problem with me

kurenn commented 9 years ago

Try locking out the compass version on the Gemfile to something like:

gem 'compass-rails', '1.1.7'
clondono commented 9 years ago

any update on this? the gem 'compass-rails', '1.1.7' doesnt work

kurenn commented 9 years ago

The problem comes with furatto and the compass version, this is my Gemfile.lock file, if someone else can share another one, probably I can address the problem in a better way....

GIT
  remote: git://github.com/IcaliaLabs/sabisu-rails.git
  revision: de6340971e70589de2ae2cb0d8170a9a9df84103
  specs:
    sabisu_rails (0.0.2.beta)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
      httparty (~> 0.13)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.0.2)
      actionpack (= 4.0.2)
      mail (~> 2.5.4)
    actionpack (4.0.2)
      activesupport (= 4.0.2)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    active_model_serializers (0.8.1)
      activemodel (>= 3.0)
    activemodel (4.0.2)
      activesupport (= 4.0.2)
      builder (~> 3.1.0)
    activerecord (4.0.2)
      activemodel (= 4.0.2)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.2)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activesupport (4.0.2)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    addressable (2.3.6)
    arel (4.0.2)
    bcrypt (3.1.7)
    builder (3.1.4)
    chunky_png (1.3.1)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.7.0)
    compass (0.12.6)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.2.19)
    compass-rails (1.1.7)
      compass (>= 0.12.2)
      sprockets (<= 2.11.0)
    delayed_job (4.0.6)
      activesupport (>= 3.0, < 5.0)
    delayed_job_active_record (4.0.3)
      activerecord (>= 3.0, < 5.0)
      delayed_job (>= 3.0, < 4.1)
    devise (3.2.4)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    diff-lcs (1.2.5)
    email_spec (1.6.0)
      launchy (~> 2.1)
      mail (~> 2.2)
    erubis (2.7.0)
    execjs (2.2.0)
    factory_girl (4.4.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.4.1)
      factory_girl (~> 4.4.0)
      railties (>= 3.0.0)
    ffaker (1.24.0)
    font-awesome-rails (4.1.0.0)
      railties (>= 3.2, < 5.0)
    fssm (0.2.10)
    furatto (1.3.7)
      actionpack (>= 3.0)
      activemodel (>= 3.0)
      railties (>= 3.0)
    hike (1.2.3)
    httparty (0.13.1)
      json (~> 1.8)
      multi_xml (>= 0.5.2)
    i18n (0.7.0)
    jquery-rails (3.1.0)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.1)
    kaminari (0.16.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    launchy (2.4.3)
      addressable (~> 2.3)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.25.1)
    minitest (4.7.5)
    multi_json (1.10.1)
    multi_xml (0.5.5)
    orm_adapter (0.5.0)
    polyglot (0.3.5)
    rack (1.5.2)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (4.0.2)
      actionmailer (= 4.0.2)
      actionpack (= 4.0.2)
      activerecord (= 4.0.2)
      activesupport (= 4.0.2)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.2)
      sprockets-rails (~> 2.0.0)
    railties (4.0.2)
      actionpack (= 4.0.2)
      activesupport (= 4.0.2)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.2)
    rdoc (4.1.1)
      json (~> 1.4)
    rspec-core (2.14.8)
    rspec-expectations (2.14.5)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-mocks (2.14.6)
    rspec-rails (2.14.2)
      actionpack (>= 3.0)
      activemodel (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    sass (3.2.19)
    sass-rails (4.0.3)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.2.0)
      sprockets (~> 2.8, <= 2.11.0)
      sprockets-rails (~> 2.0)
    sdoc (0.4.0)
      json (~> 1.8)
      rdoc (~> 4.0, < 5.0)
    shoulda-matchers (2.6.1)
      activesupport (>= 3.0.0)
    simple_form (3.0.2)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
    sprockets (2.11.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    sqlite3 (1.3.9)
    thor (0.19.1)
    thread_safe (0.3.4)
    tilt (1.4.1)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.43)
    uglifier (2.5.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    warden (1.2.3)
      rack (>= 1.0)

PLATFORMS
  ruby

DEPENDENCIES
  active_model_serializers
  coffee-rails (~> 4.0.0)
  compass-rails
  delayed_job_active_record
  devise
  email_spec
  factory_girl_rails
  ffaker
  font-awesome-rails
  furatto
  jquery-rails
  kaminari
  rails (= 4.0.2)
  rspec-rails (~> 2.14)
  sabisu_rails!
  sass-rails (~> 4.0.0)
  sdoc
  shoulda-matchers
  simple_form
  sqlite3
  uglifier (>= 1.3.0)

Thnks! =)

kcoleman731 commented 9 years ago

Hi @kurenn

I am seeing the same issue as well. Below is my Gemfile.lock. Hope this helps. The tool looks fantastic and I'd love to get it working.

Also, I am currently going through your rails API tutorial. It is awesome, thank you very much for putting it together.

GIT
  remote: git://github.com/IcaliaLabs/sabisu-rails.git
  revision: de6340971e70589de2ae2cb0d8170a9a9df84103
  specs:
    sabisu_rails (0.0.2.beta)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
      httparty (~> 0.13)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.2.0)
      actionpack (= 4.2.0)
      actionview (= 4.2.0)
      activejob (= 4.2.0)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.5)
    actionpack (4.2.0)
      actionview (= 4.2.0)
      activesupport (= 4.2.0)
      rack (~> 1.6.0)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    actionview (4.2.0)
      activesupport (= 4.2.0)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    activejob (4.2.0)
      activesupport (= 4.2.0)
      globalid (>= 0.3.0)
    activemodel (4.2.0)
      activesupport (= 4.2.0)
      builder (~> 3.1)
    activerecord (4.2.0)
      activemodel (= 4.2.0)
      activesupport (= 4.2.0)
      arel (~> 6.0)
    activesupport (4.2.0)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    arel (6.0.0)
    bcrypt (3.1.10)
    binding_of_caller (0.7.2)
      debug_inspector (>= 0.0.1)
    builder (3.2.2)
    byebug (4.0.1)
      columnize (= 0.9.0)
      rb-readline (= 0.5.2)
    chunky_png (1.3.4)
    coffee-rails (4.1.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.3.0)
      coffee-script-source
      execjs
    coffee-script-source (1.9.1)
    columnize (0.9.0)
    compass (1.0.3)
      chunky_png (~> 1.2)
      compass-core (~> 1.0.2)
      compass-import-once (~> 1.0.5)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
      sass (>= 3.3.13, < 3.5)
    compass-core (1.0.3)
      multi_json (~> 1.0)
      sass (>= 3.3.0, < 3.5)
    compass-import-once (1.0.5)
      sass (>= 3.2, < 3.5)
    compass-rails (2.0.4)
      compass (~> 1.0.0)
      sass-rails (<= 5.0.1)
      sprockets (< 2.13)
    debug_inspector (0.0.2)
    devise (3.4.1)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      responders
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    diff-lcs (1.2.5)
    erubis (2.7.0)
    execjs (2.4.0)
    factory_girl (4.5.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.5.0)
      factory_girl (~> 4.5.0)
      railties (>= 3.0.0)
    ffaker (1.32.1)
    ffi (1.9.8)
    font-awesome-rails (4.3.0.0)
      railties (>= 3.2, < 5.0)
    furatto (1.3.7)
      actionpack (>= 3.0)
      activemodel (>= 3.0)
      railties (>= 3.0)
    globalid (0.3.3)
      activesupport (>= 4.1.0)
    hike (1.2.3)
    httparty (0.13.3)
      json (~> 1.8)
      multi_xml (>= 0.5.2)
    i18n (0.7.0)
    jbuilder (2.2.11)
      activesupport (>= 3.0.0, < 5)
      multi_json (~> 1.2)
    jquery-rails (4.0.3)
      rails-dom-testing (~> 1.0)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    json (1.8.2)
    loofah (2.0.1)
      nokogiri (>= 1.5.9)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    mime-types (2.4.3)
    mini_portile (0.6.2)
    minitest (5.5.1)
    multi_json (1.11.0)
    multi_xml (0.5.5)
    nokogiri (1.6.6.2)
      mini_portile (~> 0.6.0)
    orm_adapter (0.5.0)
    rack (1.6.0)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (4.2.0)
      actionmailer (= 4.2.0)
      actionpack (= 4.2.0)
      actionview (= 4.2.0)
      activejob (= 4.2.0)
      activemodel (= 4.2.0)
      activerecord (= 4.2.0)
      activesupport (= 4.2.0)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.2.0)
      sprockets-rails
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.5)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6.0)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.2)
      loofah (~> 2.0)
    railties (4.2.0)
      actionpack (= 4.2.0)
      activesupport (= 4.2.0)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.2)
    rb-fsevent (0.9.4)
    rb-inotify (0.9.5)
      ffi (>= 0.5.0)
    rb-readline (0.5.2)
    rdoc (4.2.0)
      json (~> 1.4)
    responders (2.1.0)
      railties (>= 4.2.0, < 5)
    rspec-core (3.2.2)
      rspec-support (~> 3.2.0)
    rspec-expectations (3.2.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.2.0)
    rspec-mocks (3.2.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.2.0)
    rspec-rails (3.2.1)
      actionpack (>= 3.0, < 4.3)
      activesupport (>= 3.0, < 4.3)
      railties (>= 3.0, < 4.3)
      rspec-core (~> 3.2.0)
      rspec-expectations (~> 3.2.0)
      rspec-mocks (~> 3.2.0)
      rspec-support (~> 3.2.0)
    rspec-support (3.2.2)
    sass (3.4.13)
    sass-rails (5.0.1)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (~> 1.1)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    shoulda-matchers (2.8.0)
      activesupport (>= 3.0.0)
    simple_form (3.1.0)
      actionpack (~> 4.0)
      activemodel (~> 4.0)
    spring (1.3.3)
    sprockets (2.12.3)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.2.4)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (>= 2.8, < 4.0)
    sqlite3 (1.3.10)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    turbolinks (2.5.3)
      coffee-rails
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.7.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    warden (1.2.3)
      rack (>= 1.0)
    web-console (2.1.2)
      activemodel (>= 4.0)
      binding_of_caller (>= 0.7.2)
      railties (>= 4.0)
      sprockets-rails (>= 2.0, < 4.0)

PLATFORMS
  ruby

DEPENDENCIES
  byebug
  coffee-rails (~> 4.1.0)
  compass-rails
  devise
  factory_girl_rails
  ffaker
  font-awesome-rails
  furatto
  jbuilder (~> 2.0)
  jquery-rails
  rails (= 4.2.0)
  rspec-rails
  sabisu_rails!
  sass-rails (~> 5.0)
  sdoc (~> 0.4.0)
  shoulda-matchers
  simple_form
  spring
  sqlite3
  turbolinks
  uglifier (>= 1.3.0)
  web-console (~> 2.0)
archagy commented 9 years ago

changing the version of furatto to 1.3.7 solve the problem. thanks

ardarda commented 9 years ago

1.3.7 Furatto did not solve the issue, I want to use that gem of yours, seems very useful. Thanks for the tutorial by the way!

ERR; NameError in SabisuRails::Explorer#index

kurenn commented 9 years ago

Try to get the latest version from sabisu, that is from github:

Your Gemfile

source 'https://rubygems.org'
.
.
.
gem 'furatto', github: "IcaliaLabs/furatto-rails"
gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails"
.
.

Let me know if that works, I currently have one project with that configuration

ardarda commented 9 years ago

Still not working; the error is as follows:


Sass::SyntaxError in SabisuRails::Explorer#index Showing /Users/ardacicek/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/sabisu-rails-f9c9f2c41d84/app/views/layouts/sabisu_rails.html.erb where line #13 raised:

File to import not found or unreadable: compass/css3.

ardarda commented 9 years ago

Using furatto 1.4.0 (was 1.3.7) from git://github.com/IcaliaLabs/furatto-rails.git (at master) Using sabisu_rails 0.0.2.beta from git://github.com/IcaliaLabs/sabisu-rails.git (at master)

kurenn commented 9 years ago

Update the version of compass-rails to at least 2.0:

gem 'compass-rails', '~> 2.0'
ardarda commented 9 years ago

Could not track what I really have done but finally I manage to use the sabisu, thanks a lot.

kurenn commented 9 years ago

Can you share what you did in order to close this issue?

ardarda commented 9 years ago

Gemfile: solved my issue

. . gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails" gem 'furatto', github: "IcaliaLabs/furatto-rails" gem 'compass-rails', github: "Compass/compass-rails", branch: "master" . .

kurenn commented 9 years ago

Sweet!

adinsley commented 8 years ago

I had this problem and found that the only way that I could get it to work was to remove the gem 'compass-rails' altogether.

The compass-rails was causing me to have dependency issues, but once I had removed compass-rails I got the Saibisu working all together.

danielmoralesp commented 7 years ago

Gemfile: solve this issue

. . gem 'furatto', github: "IcaliaLabs/furatto-rails" gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails" gem 'compass-rails', '~> 2.0' . .