anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Error compiling CSS asset #65

Open burtondav opened 11 years ago

burtondav commented 11 years ago

I renamed my apllication.css to application.css.scss. I added this line to it:

Import twitter bootstrap @import "twitter/bootstrap";

I get: Sass::SyntaxError: File to import not found or unreadable: twitter/bootstrap.

yury commented 11 years ago

can you show your Gemfile?

danil-z commented 11 years ago

Hello i'm affected too here is my Gemfile

source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
gem 'cancan'
gem 'devise'
gem 'devise-i18n'
gem 'rails-i18n'
gem 'figaro'
gem 'pg'
gem 'rolify'
gem 'simple_form', '>= 3.0.0.rc'
gem 'slim', require: 'slim/translator'
gem 'therubyracer', :platform=>:ruby
gem 'bootstrap-sass'
gem 'unicorn-rails'
group :development do
  gem 'slim-rails'
  gem 'quiet_assets'
  gem 'capistrano'
end
group :development, :test do
  gem 'factory_girl_rails'
  gem 'rspec-rails'
  gem 'ffaker'
end
group :test do
  gem 'capybara'
  gem 'poltergeist'
  #gem 'cucumber-rails', :require=>false
  gem 'cucumber-rails', github: 'marnen/cucumber-rails', :require => false
  gem 'database_cleaner'
  gem 'email_spec'
  gem 'launchy'
end

gem 'meta-tags', :require => 'meta_tags'
gem 'rails_admin'

gem 'omniauth-vkontakte'
gem 'omniauth-facebook'
gem 'omniauth-odnoklassniki'

gem 'gmaps4rails', github: 'blackbumer/Google-Maps-for-Rails'

gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',  :github => 'anjlab/bootstrap-rails'

Gemfile.lock

GIT
  remote: git://github.com/anjlab/bootstrap-rails.git
  revision: 83a4ce85cdf5edb6d0dd6e51ad37e3b649576ca0
  specs:
    anjlab-bootstrap-rails (3.0.0.2)
      railties (>= 3.0)
      sass (>= 3.2)

GIT
  remote: git://github.com/blackbumer/Google-Maps-for-Rails.git
  revision: c0a8a5b71804e693788a9b59edbaf69cf5fe6b50
  specs:
    gmaps4rails (2.0.0.pre)

GIT
  remote: git://github.com/marnen/cucumber-rails.git
  revision: 0b5fc7efb0e3d1c87a488e53ee4f76131a86c660
  specs:
    cucumber-rails (1.3.1)
      capybara (>= 1.1.2)
      cucumber (>= 1.2.0)
      nokogiri (>= 1.5.0)
      rails (>= 3.0)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.0.0)
      actionpack (= 4.0.0)
      mail (~> 2.5.3)
    actionpack (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    activemodel (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
    activerecord (4.0.0)
      activemodel (= 4.0.0)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.0)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activesupport (4.0.0)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    addressable (2.3.5)
    arel (4.0.0)
    atomic (1.1.13)
    bcrypt-ruby (3.1.1)
    bootstrap-sass (2.3.2.1)
      sass (~> 3.2)
    builder (3.1.4)
    cancan (1.6.10)
    capistrano (2.15.5)
      highline
      net-scp (>= 1.0.0)
      net-sftp (>= 2.0.0)
      net-ssh (>= 2.0.14)
      net-ssh-gateway (>= 1.1.0)
    capybara (2.1.0)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    coffee-rails (4.0.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0.beta, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.6.3)
    cucumber (1.3.6)
      builder (>= 2.1.2)
      diff-lcs (>= 1.1.3)
      gherkin (~> 2.12.0)
      multi_json (~> 1.7.5)
      multi_test (>= 0.0.2)
    database_cleaner (1.1.1)
    devise (3.0.3)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      warden (~> 1.2.3)
    devise-i18n (0.9.0)
    diff-lcs (1.2.4)
    email_spec (1.5.0)
      launchy (~> 2.1)
      mail (~> 2.2)
    erubis (2.7.0)
    eventmachine (1.0.3)
    execjs (1.4.0)
      multi_json (~> 1.0)
    factory_girl (4.2.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.2.1)
      factory_girl (~> 4.2.0)
      railties (>= 3.0.0)
    faraday (0.8.8)
      multipart-post (~> 1.2.0)
    faye-websocket (0.4.7)
      eventmachine (>= 0.12.0)
    ffaker (1.18.0)
    figaro (0.7.0)
      bundler (~> 1.0)
      rails (>= 3, < 5)
    font-awesome-rails (3.2.1.3)
      railties (>= 3.2, < 5.0)
    gherkin (2.12.1)
      multi_json (~> 1.3)
    haml (4.0.3)
      tilt
    hashie (2.0.5)
    highline (1.6.19)
    hike (1.2.3)
    http_parser.rb (0.5.3)
    httpauth (0.2.0)
    i18n (0.6.5)
    jbuilder (1.5.0)
      activesupport (>= 3.0.0)
      multi_json (>= 1.2.0)
    jquery-rails (3.0.4)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (4.0.4)
      jquery-rails
      railties (>= 3.1.0)
    jwt (0.1.8)
      multi_json (>= 1.5)
    kaminari (0.14.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    kgio (2.8.0)
    launchy (2.3.0)
      addressable (~> 2.3)
    libv8 (3.11.8.17)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    meta-tags (1.5.0)
      actionpack
    mime-types (1.24)
    mini_portile (0.5.1)
    minitest (4.7.5)
    multi_json (1.7.9)
    multi_test (0.0.2)
    multipart-post (1.2.0)
    nested_form (0.3.2)
    net-scp (1.1.2)
      net-ssh (>= 2.6.5)
    net-sftp (2.1.2)
      net-ssh (>= 2.6.5)
    net-ssh (2.6.8)
    net-ssh-gateway (1.2.0)
      net-ssh (>= 2.6.5)
    nokogiri (1.6.0)
      mini_portile (~> 0.5.0)
    oauth2 (0.8.1)
      faraday (~> 0.8)
      httpauth (~> 0.1)
      jwt (~> 0.1.4)
      multi_json (~> 1.0)
      rack (~> 1.2)
    omniauth (1.1.4)
      hashie (>= 1.2, < 3)
      rack
    omniauth-facebook (1.4.1)
      omniauth-oauth2 (~> 1.1.0)
    omniauth-oauth2 (1.1.1)
      oauth2 (~> 0.8.0)
      omniauth (~> 1.0)
    omniauth-odnoklassniki (0.0.4)
      omniauth (~> 1.0)
      omniauth-oauth2 (~> 1.0)
    omniauth-vkontakte (1.2.0)
      multi_json
      omniauth (~> 1.1.0)
      omniauth-oauth2 (~> 1.0)
    orm_adapter (0.4.0)
    pg (0.16.0)
    poltergeist (1.3.0)
      capybara (~> 2.1.0)
      faye-websocket (>= 0.4.4, < 0.5.0)
      http_parser.rb (~> 0.5.3)
    polyglot (0.3.3)
    quiet_assets (1.0.2)
      railties (>= 3.1, < 5.0)
    rack (1.5.2)
    rack-pjax (0.7.0)
      nokogiri (~> 1.5)
      rack (~> 1.3)
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (4.0.0)
      actionmailer (= 4.0.0)
      actionpack (= 4.0.0)
      activerecord (= 4.0.0)
      activesupport (= 4.0.0)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.0)
      sprockets-rails (~> 2.0.0)
    rails-i18n (0.7.4)
      i18n (~> 0.5)
    rails_admin (0.5.0)
      bootstrap-sass (~> 2.3)
      builder (~> 3.1)
      coffee-rails (~> 4.0)
      font-awesome-rails (~> 3.0)
      haml (~> 4.0)
      jquery-rails (~> 3.0)
      jquery-ui-rails (~> 4.0)
      kaminari (~> 0.14)
      nested_form (~> 0.3)
      rack-pjax (~> 0.7)
      rails (~> 4.0.0)
      remotipart (~> 1.0)
      safe_yaml (~> 0.9)
      sass-rails (~> 4.0)
    railties (4.0.0)
      actionpack (= 4.0.0)
      activesupport (= 4.0.0)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    raindrops (0.11.0)
    rake (10.1.0)
    ref (1.0.5)
    remotipart (1.2.1)
    rolify (3.2.0)
    rspec-core (2.14.5)
    rspec-expectations (2.14.2)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-mocks (2.14.3)
    rspec-rails (2.14.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    safe_yaml (0.9.5)
    sass (3.2.10)
    sass-rails (4.0.0)
      railties (>= 4.0.0.beta, < 5.0)
      sass (>= 3.1.10)
      sprockets-rails (~> 2.0.0)
    simple_form (3.0.0.rc)
      actionpack (>= 4.0.0.rc1, < 4.1)
      activemodel (>= 4.0.0.rc1, < 4.1)
    slim (2.0.1)
      temple (~> 0.6.6)
      tilt (>= 1.3.3, < 2.1)
    slim-rails (2.0.1)
      actionpack (>= 3.0, < 4.1)
      activesupport (>= 3.0, < 4.1)
      railties (>= 3.0, < 4.1)
      slim (~> 2.0)
    sprockets (2.10.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    temple (0.6.6)
    therubyracer (0.11.4)
      libv8 (~> 3.11.8.12)
      ref
    thor (0.18.1)
    thread_safe (0.1.2)
      atomic
    tilt (1.4.1)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    turbolinks (1.3.0)
      coffee-rails
    tzinfo (0.3.37)
    uglifier (2.1.2)
      execjs (>= 0.3.0)
      multi_json (~> 1.0, >= 1.0.2)
    unicorn (4.6.3)
      kgio (~> 2.6)
      rack
      raindrops (~> 0.7)
    unicorn-rails (1.1.0)
      rack
      unicorn
    warden (1.2.3)
      rack (>= 1.0)
    xpath (2.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  anjlab-bootstrap-rails!
  bootstrap-sass
  cancan
  capistrano
  capybara
  coffee-rails (~> 4.0.0)
  cucumber-rails!
  database_cleaner
  devise
  devise-i18n
  email_spec
  factory_girl_rails
  ffaker
  figaro
  gmaps4rails!
  jbuilder (~> 1.2)
  jquery-rails
  launchy
  meta-tags
  omniauth-facebook
  omniauth-odnoklassniki
  omniauth-vkontakte
  pg
  poltergeist
  quiet_assets
  rails (= 4.0.0)
  rails-i18n
  rails_admin
  rolify
  rspec-rails
  sass-rails (~> 4.0.0)
  simple_form (>= 3.0.0.rc)
  slim
  slim-rails
  therubyracer
  turbolinks
  uglifier (>= 1.3.0)
  unicorn-rails
burtondav commented 11 years ago

My GEM File:

ruby '1.9.3' gem 'rails', '3.2.12' gem 'rake', '10.0.3' gem 'pg' gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git' gem 'devise' gem 'thin' gem 'simple_form' gem 'paperclip' gem 'RedCloth' gem 'cancan' gem 'switch_user' gem 'pony' gem 'jquery-rails' gem 'jquery-rest-rails' gem 'jquery-qtip2-rails' gem 'jquery-datatables-rails' gem 'jqtree-rails' gem 'fullcalendar-rails' gem 'json' gem 'geocoder' gem 'gmaps4rails' gem 'acts_as_list' gem 'ancestry' gem 'bootstrap-editable-rails' gem 'axlsx' gem 'acts_as_xlsx' gem 'axlsx_rails' gem 'pdfkit' gem 'rest-client' gem 'rabl' gem 'rails_admin_nestable' gem 'rolify' gem 'will_paginate'

group :development do gem 'better_errors' gem 'binding_of_caller' gem 'meta_request' end

Gems used only for assets and not required

in production environments by default.

group :assets do

gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'bootstrap-sass'

end

Deploy with Capistrano

gem 'capistrano'

group :test do

Pretty printed test output

gem 'turn', '0.8.2', :require => false end

gem 'rubber', '2.0.1' gem 'open4' gem 'gelf' gem 'graylog2_exceptions', :git => 'git://github.com/wr0ngway/graylog2_exceptions.git' gem 'graylog2-resque'

ZephiroRB commented 11 years ago

Hey remove gem 'bootstrap-sass'

and restart server :dancer:

rothlis commented 11 years ago

I had this issue as well: File to import not found or unreadable: variables.

I "fixed" the issue by added the full path to all imports in bootstrap/_bootstrap.scss. For example, @import "variables"; would become @import "twitter/bootstrap/variables";

Any idea how to fix this properly?

yury commented 11 years ago

@rothlis it very likely that you forget require option in

gem 'anjlab-bootstrap-rails', '>= 3.0.0', require: 'bootstrap-rails'

gfrey commented 11 years ago

Had this issue with failed compilation of CSS asset, too. Blame emacs's scss-mode. It tried to compile the file (failed because missing load_paths for twitter/bootstrap from the gem) and generated some output (containing the mentioned message and some stacktrace) rails happily served.

danmaz74 commented 10 years ago

I had this problem, and fixed by including the bootstrap gem before the rails_admin gem.

danpe commented 10 years ago

I'm having the same issue, is there any fix?