cristianferrarig / font-awesome-middleman

Font-Awesome web fonts and stylesheets as a Middleman engine
MIT License
51 stars 16 forks source link

Dependency issue with > 4.2.1 & Middleman > 4 #21

Open RyanScottLewis opened 8 years ago

RyanScottLewis commented 8 years ago

After adding the following to my Gemfile:

gem "font-awesome-middleman", "~> 4.5.0"

...and running bundle install, I get this error:

Resolving dependencies...
Bundler could not find compatible versions for gem "middleman-core":
  In snapshot (Gemfile.lock):
    middleman-core (= 4.1.8)

  In Gemfile:
    font-awesome-middleman (~> 4.5.0) was resolved to 4.5.0, which depends on
      middleman-core (~> 3.0)

    middleman (~> 4.1) was resolved to 4.1.8, which depends on
      middleman-core (= 4.1.8)

    middleman-blog was resolved to 4.0.1, which depends on
      middleman-core (>= 4.0.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Modifying my Gemfile to the following:

gem "font-awesome-middleman"

The dependencies are resolved as:

Using font-awesome-middleman 4.2.1

So it seems commit 5a05abf is to blame here, not entirely sure.

Using 4.2.1, I get the following error when attempting to use @import "font-awesome"; in my main SCSS file:

Error: File to import not found or unreadable: font-awesome.
chrishough commented 8 years ago

same error for me:

Error: File to import not found or unreadable: font-awesome.
       Load paths:
         /Users/chrishough/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bootstrap-sass-3.3.6/assets/stylesheets
         /Users/chrishough/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bootstrap-sass-3.3.6/assets/stylesheets
        on line 5 of /Users/chrishough/Studio/Code-Career/whiplash-style-guide/source/app/assets/stylesheets/application.css.scss

Running bundle update fixed this for me

NealJMD commented 8 years ago

I ran into the same exact error

Error: File to import not found or unreadable: font-awesome.
  Load paths:
    /Users/nealjmd/workspace/homepage/source/stylesheets\
    /Users/nealjmd/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/compass-core-1.0.3/stylesheets
    Compass::SpriteImporter

running bundle update does not fix this for me. in my Gemfile.lock, I ended up with

    font-awesome-middleman (4.2.1)
      middleman-core (>= 3.0.0)

@RyanScottLewis did you find a solution for this?

RyanScottLewis commented 8 years ago

Fairly certain it's because of this: https://middlemanapp.com/advanced/asset_pipeline/

I just brought Font Awesome directly into my project.

tirdadc commented 8 years ago

@RyanScottLewis can you please share how you did that structure-wise? I tried using the fontAwesome SASS gem without any luck.

cristianferrarig commented 8 years ago

Hi everyone!

@RyanScottLewis @chrishough @NealJMD @tirdadc Sorry for the heavy delay.

I push a new branch with a basic solution ( #22 ), I appreciate a lot you can check if this works fine. It works for me. Thanks!

https://github.com/cristianferrarig/font-awesome-middleman/tree/middleman-v4#using-middleman-4