suspenders icon indicating copy to clipboard operation
suspenders copied to clipboard

Refills / Bourbon Conflict.

Open SharkBeard opened this issue 10 years ago • 9 comments

Ran a command:

$ rake assets:precompile            
rake aborted!
Sass::SyntaxError: File to import not found or unreadable: refills/flashes.

Saw:

Bourbon 4 (Refills is not currently compatible with Bourbon 5)

Tried to downgrade bourbon to ~> 4.2

$ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
You have requested:
  bourbon ~> 4.2

The bundle currently has bourbon locked at 5.0.0.beta.5.
Try running `bundle update bourbon`

If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
$ bundle update bourbon
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies....
Bundler could not find compatible versions for gem "bourbon":
  In Gemfile:
    bourbon (~> 4.2)

    suspenders was resolved to 1.39.0, which depends on
      bitters (~> 1.3) was resolved to 1.3.1, which depends on
        bourbon (>= 5.0.0.beta.3)

    neat (~> 1.7.0) was resolved to 1.7.4, which depends on
      bourbon (>= 4.0)

SharkBeard avatar Jun 20 '16 21:06 SharkBeard

Does the fix in master work for you? See https://github.com/thoughtbot/suspenders/commit/60d7bc5f4109824d1a1b95b6ebd45d7702b7aa62. If so, I'll prepare a new release. Thanks!

tute avatar Jun 20 '16 21:06 tute

It does, thanks. =]

SharkBeard avatar Jun 20 '16 21:06 SharkBeard

Spoke too soon. rake assets:precompile still failed.

SharkBeard avatar Jun 20 '16 21:06 SharkBeard

cc @tysongach for your input on how we might work this out. Thank you in advance!

tute avatar Jun 20 '16 22:06 tute

This might be an issue with Neat, rather than Refills.

  • We actually just removed the Bourbon dependency in Neat last week, but haven’t cut a release yet. You could pull from master to test that assumption.
  • While Refills does claim a Bourbon 4 dependency, the flashes partial specifically works with 4 or 5.

tysongach avatar Jun 21 '16 13:06 tysongach

This PR may help.

tysongach avatar Jun 21 '16 13:06 tysongach

Tyson merged his fix into master (thank you, Tyson!).

@aaronthewhite, does this help with your issue?

tute avatar Jun 21 '16 14:06 tute

Apparently I was being affected by issue #64 of skylight. Using the workaround allowed me to bundle install, but the refills/flashes were not generated as part of the suspenders install process because of the failing bundle. After using the workaround for skylight, deleting the repo and generating a new app with suspenders fixed everything.

SharkBeard avatar Jun 23 '16 17:06 SharkBeard

Thanks!

tute avatar Jun 23 '16 18:06 tute