formadmin icon indicating copy to clipboard operation
formadmin copied to clipboard

atoms/* not found

Open declarus opened this issue 8 years ago • 4 comments

Hi!

I'm trying to get your theme running on an Active Admin setup using Rails 5 and I get the error that Formadmin cannot find the folder or any files in atoms/*.

Any thoughts?

My admin.scss file:

// Active Admin's got SASS!
// @import "active_admin/mixins";
// @import "active_admin/base";
@import "formadmin/formadmin";

The error in detail:

File to import not found or unreadable: atoms/*.
Load paths:
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/babel-source-5.8.35/lib
  /Users/work/Workspace/myproject/app/assets/javascripts
  /Users/work/Workspace/myproject/app/assets/stylesheets
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/formadmin-0.2.1/app/assets/images
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/formadmin-0.2.1/app/assets/stylesheets
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/bundler/gems/activeadmin-5ae2e3db5bf6/app/assets/images
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/bundler/gems/activeadmin-5ae2e3db5bf6/app/assets/javascripts
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/bundler/gems/activeadmin-5ae2e3db5bf6/app/assets/stylesheets
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/bundler/gems/activeadmin-5ae2e3db5bf6/vendor/assets/javascripts
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/bundler/gems/activeadmin-5ae2e3db5bf6/vendor/assets/stylesheets
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/jquery-rails-4.3.1/vendor/assets/javascripts
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/formtastic-3.1.5/app/assets/stylesheets
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/actioncable-5.1.4/lib/assets/compiled
  /Users/work/.rvm/gems/ruby-2.3.1@myproject/gems/actionview-5.1.4/lib/assets/compiled

My Gemfile.lock:

GIT
  remote: https://github.com/activeadmin/activeadmin.git
  revision: 5ae2e3db5bf69e94ea8c205b83f04799154ceee3
  specs:
    activeadmin (2.0.0.alpha)
      arbre (>= 1.1.1)
      formtastic (~> 3.1)
      formtastic_i18n
      inherited_resources (~> 1.7)
      jquery-rails (>= 4.2.0)
      kaminari (>= 1.0.1)
      railties (>= 4.2, < 5.2)
      ransack (~> 1.3)
      sass (~> 3.4)
      sprockets (>= 3.0, < 4.1)
      sprockets-es6 (>= 0.9.2)

GIT
  remote: https://github.com/activeadmin/inherited_resources
  revision: 5d18499877852437f2c058747f07bc80e46557fc
  specs:
    inherited_resources (1.7.2)
      actionpack (>= 4.2, < 5.2)
      has_scope (~> 0.6)
      railties (>= 4.2, < 5.2)
      responders

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.1.4)
      actionpack (= 5.1.4)
      nio4r (~> 2.0)
      websocket-driver (~> 0.6.1)
    actionmailer (5.1.4)
      actionpack (= 5.1.4)
      actionview (= 5.1.4)
      activejob (= 5.1.4)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (5.1.4)
      actionview (= 5.1.4)
      activesupport (= 5.1.4)
      rack (~> 2.0)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (5.1.4)
      activesupport (= 5.1.4)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.3)
    activejob (5.1.4)
      activesupport (= 5.1.4)
      globalid (>= 0.3.6)
    activemodel (5.1.4)
      activesupport (= 5.1.4)
    activerecord (5.1.4)
      activemodel (= 5.1.4)
      activesupport (= 5.1.4)
      arel (~> 8.0)
    activesupport (5.1.4)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    arbre (1.1.1)
      activesupport (>= 3.0.0)
    arel (8.0.0)
    ast (2.3.0)
    babel-source (5.8.35)
    babel-transpiler (0.7.0)
      babel-source (>= 4.0, < 6)
      execjs (~> 2.0)
    bcrypt (3.1.11)
    builder (3.2.3)
    byebug (9.1.0)
    cancan (1.6.10)
    coderay (1.1.2)
    concurrent-ruby (1.0.5)
    config (1.4.0)
      activesupport (>= 3.0)
      deep_merge (~> 1.1.1)
    countries (2.1.2)
      i18n_data (~> 0.8.0)
      money (~> 6.9)
      sixarm_ruby_unaccent (~> 1.1)
      unicode_utils (~> 1.4)
    country_select (3.1.1)
      countries (~> 2.0)
      sort_alphabetical (~> 1.0)
    crass (1.0.2)
    deep_merge (1.1.1)
    devise (4.3.0)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0, < 5.2)
      responders
      warden (~> 1.2.3)
    diff-lcs (1.3)
    erubi (1.6.1)
    execjs (2.7.0)
    factory_girl (4.8.1)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.8.0)
      factory_girl (~> 4.8.0)
      railties (>= 3.0.0)
    ffi (1.9.18)
    formadmin (0.2.1)
      activeadmin
    formtastic (3.1.5)
      actionpack (>= 3.2.13)
    formtastic_i18n (0.6.0)
    globalid (0.4.0)
      activesupport (>= 4.2.0)
    has_scope (0.7.1)
      actionpack (>= 4.1, < 5.2)
      activesupport (>= 4.1, < 5.2)
    i18n (0.8.6)
    i18n_data (0.8.0)
    jquery-rails (4.3.1)
      rails-dom-testing (>= 1, < 3)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    kaminari (1.0.1)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.0.1)
      kaminari-activerecord (= 1.0.1)
      kaminari-core (= 1.0.1)
    kaminari-actionview (1.0.1)
      actionview
      kaminari-core (= 1.0.1)
    kaminari-activerecord (1.0.1)
      activerecord
      kaminari-core (= 1.0.1)
    kaminari-core (1.0.1)
    listen (3.1.5)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
      ruby_dep (~> 1.2)
    loofah (2.1.1)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.6.6)
      mime-types (>= 1.16, < 4)
    method_source (0.9.0)
    mime-types (3.1)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2016.0521)
    mini_portile2 (2.3.0)
    minitest (5.10.3)
    money (6.9.0)
      i18n (>= 0.6.4, < 0.9)
    mustermann (1.0.1)
    nio4r (2.1.0)
    nokogiri (1.8.1)
      mini_portile2 (~> 2.3.0)
    orm_adapter (0.5.0)
    parallel (1.12.0)
    parser (2.4.0.0)
      ast (~> 2.2)
    payday (1.1.5)
      i18n (~> 0.7)
      money (~> 6.5)
      prawn (~> 1.0.0)
      prawn-svg (~> 0.15.0.0)
    pdf-core (0.2.5)
    pdfkit (0.8.2)
    pg (0.21.0)
    polyamorous (1.3.1)
      activerecord (>= 3.0)
    powerpack (0.1.1)
    prawn (1.0.0)
      pdf-core (~> 0.2.2)
      ttfunk (~> 1.1.1)
    prawn-svg (0.15.0.0)
      prawn (>= 0.8.4)
    pry (0.11.1)
      coderay (~> 1.1.0)
      method_source (~> 0.9.0)
    puma (3.10.0)
    rack (2.0.3)
    rack-protection (2.0.0)
      rack
    rack-test (0.7.0)
      rack (>= 1.0, < 3)
    rails (5.1.4)
      actioncable (= 5.1.4)
      actionmailer (= 5.1.4)
      actionpack (= 5.1.4)
      actionview (= 5.1.4)
      activejob (= 5.1.4)
      activemodel (= 5.1.4)
      activerecord (= 5.1.4)
      activesupport (= 5.1.4)
      bundler (>= 1.3.0)
      railties (= 5.1.4)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (5.1.4)
      actionpack (= 5.1.4)
      activesupport (= 5.1.4)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rainbow (2.2.2)
      rake
    rake (12.1.0)
    ransack (1.8.3)
      actionpack (>= 3.0)
      activerecord (>= 3.0)
      activesupport (>= 3.0)
      i18n
      polyamorous (~> 1.3)
    rb-fsevent (0.10.2)
    rb-inotify (0.9.10)
      ffi (>= 0.5.0, < 2)
    responders (2.4.0)
      actionpack (>= 4.2.0, < 5.3)
      railties (>= 4.2.0, < 5.3)
    rspec-core (3.6.0)
      rspec-support (~> 3.6.0)
    rspec-expectations (3.6.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.6.0)
    rspec-mocks (3.6.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.6.0)
    rspec-rails (3.6.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 3.6.0)
      rspec-expectations (~> 3.6.0)
      rspec-mocks (~> 3.6.0)
      rspec-support (~> 3.6.0)
    rspec-support (3.6.0)
    rubocop (0.50.0)
      parallel (~> 1.10)
      parser (>= 2.3.3.1, < 3.0)
      powerpack (~> 0.1)
      rainbow (>= 2.2.2, < 3.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (~> 1.0, >= 1.0.1)
    ruby-progressbar (1.9.0)
    ruby_dep (1.5.0)
    ruby_http_client (3.2.0)
    sass (3.5.1)
      sass-listen (~> 4.0.0)
    sass-listen (4.0.0)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
    sendgrid-ruby (5.1.0)
      ruby_http_client (~> 3.2)
      sinatra (>= 1.4.7, < 3)
    sinatra (2.0.0)
      mustermann (~> 1.0)
      rack (~> 2.0)
      rack-protection (= 2.0.0)
      tilt (~> 2.0)
    sixarm_ruby_unaccent (1.2.0)
    sort_alphabetical (1.1.0)
      unicode_utils (>= 1.2.2)
    spring (2.0.2)
      activesupport (>= 4.2)
    spring-watcher-listen (2.0.1)
      listen (>= 2.7, < 4.0)
      spring (>= 1.2, < 3.0)
    sprockets (3.7.1)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-es6 (0.9.2)
      babel-source (>= 5.8.11)
      babel-transpiler
      sprockets (>= 3.0.0)
    sprockets-rails (3.2.1)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    thor (0.20.0)
    thread_safe (0.3.6)
    tilt (2.0.8)
    ttfunk (1.1.1)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    unicode-display_width (1.3.0)
    unicode_utils (1.4.0)
    warden (1.2.7)
      rack (>= 1.0)
    websocket-driver (0.6.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.2)
    wkhtmltopdf-binary (0.12.3.1)

PLATFORMS
  ruby

DEPENDENCIES
  activeadmin!
  byebug
  cancan
  config
  country_select
  devise (> 4.x)
  factory_girl_rails (~> 4.0)
  formadmin
  inherited_resources!
  listen (>= 3.0.5, < 3.2)
  payday
  pdfkit
  pg (~> 0.18)
  pry
  puma (~> 3.7)
  rails (~> 5.1.4)
  rspec-rails (~> 3.6)
  rubocop (~> 0.50.0)
  sendgrid-ruby
  spring
  spring-watcher-listen (~> 2.0.0)
  tzinfo-data
  wkhtmltopdf-binary

BUNDLED WITH
   1.16.0.pre.2

declarus avatar Oct 25 '17 11:10 declarus

Unfortunately I couldn't reproduce this here.

Anyway, I believe the problem is related to importing the files inside a folder via wildcard. https://github.com/formaweb/formadmin/blob/master/app/assets/stylesheets/formadmin/_formadmin.scss

Maybe we can change the imports to file-only.

caiotarifa avatar Oct 25 '17 13:10 caiotarifa

@caiotarifa Thanks for the quick reply. So are you treating this as a bug or should I just try and overwrite the _formadmin.scss file myself?

declarus avatar Oct 25 '17 15:10 declarus

@caiotarifa Forked the gem and just explicitly included all scss components. I'm not sure why the "/*" does not seem to work in Rails 5, but that must be the cause.

Theme looks great btw!

https://github.com/declarus/formadmin/tree/master

declarus avatar Oct 30 '17 10:10 declarus

Sorry, I couldn't check the problem, but certainly not Rails 5.

As soon as I can, I'll implement this way import in this gem.

caiotarifa avatar Oct 30 '17 16:10 caiotarifa