Giter VIP home page Giter VIP logo

Comments (8)

ChrisWren avatar ChrisWren commented on May 26, 2024

I always have to reinstall gems when switching ruby versions. I usually just run bundle install or gem install compass with no path set after I switch versions.


Sent from Mailbox for iPhone

On Tue, Dec 31, 2013 at 7:38 AM, Mark McDonnell [email protected]
wrote:

Hey,
This isn't a direct issue with CabinJS but I'm putting this issue here in case any one can help clarify how to resolve it.
I recently downgraded my Ruby version: https://github.com/Integralist/Website/commit/016ac98319ed41da86299dfb0321ae12a4225e2c and it seems that one of the required gems (specifically compass) is unable to be located...

Running "compass:dist" (compass) task
Verifying property compass.dist exists in config...OK
File: [no files]
Options: sassDir="src/styles", cssDir="dist/styles"
/Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require': cannot load such file -- sass/script/node (LoadError)
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/bin/compass:23:in `load'
  from /Users/markmcdonnell/.gem/ruby/2.0.0/bin/compass:23:in `<main>'
Warning: Task "compass:dist" failed. Use --force to continue.
Error: Task "compass:dist" failed.
    at Task.<anonymous> (/Users/markmcdonnell/Google Drive/Dropbox/Library/Github/integralist (CabinJS)/Website/node_modules/grunt/lib/util/task.js:197:15)
    at null._onTimeout (/Users/markmcdonnell/Google Drive/Dropbox/Library/Github/integralist (CabinJS)/Website/node_modules/grunt/lib/util/task.js:225:33)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
Aborted due to warnings.

I've checked the paths to where the gems are installed...

❯ gem env                                                                 
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.14
  - RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-darwin13.0.0]
  - INSTALLATION DIRECTORY: /Users/markmcdonnell/.gem/ruby/2.0.0
  - RUBY EXECUTABLE: /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/markmcdonnell/.gem/ruby/2.0.0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-13
  - GEM PATHS:
     - /Users/markmcdonnell/.gem/ruby/2.0.0
     - /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

...and it seems that they are being installed to the first path and not the second (e.g. when I ls the files I can find them in the first path and not the second).
But, the stack trace seems to suggest that it has correctly found compass when trying the first path so I'm not sure why it then tries the fallback gem path.
I've also tried installing directly to that secondary path: bundle install --path=/Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems but when I check the gems directory it doesn't show any gems installed?

Not sure what else to try

Reply to this email directly or view it on GitHub:
#94

from cabin.

Integralist avatar Integralist commented on May 26, 2024

@ChrisWren yeah I tried bundle install and just tried gem install compass but still get the same error when running grunt...

Running "compass:dist" (compass) task
Verifying property compass.dist exists in config...OK
File: [no files]
Options: sassDir="src/styles", cssDir="dist/styles"
/Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require': cannot load such file -- sass/script/node (LoadError)
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in `require'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/bin/compass:23:in `load'
    from /Users/markmcdonnell/.gem/ruby/2.0.0/bin/compass:23:in `<main>'
Warning: Task "compass:dist" failed. Use --force to continue.
Error: Task "compass:dist" failed.
    at Task.<anonymous> (/Users/markmcdonnell/Google Drive/Dropbox/Library/Github/integralist (CabinJS)/Website/node_modules/grunt/lib/util/task.js:197:15)
    at null._onTimeout (/Users/markmcdonnell/Google Drive/Dropbox/Library/Github/integralist (CabinJS)/Website/node_modules/grunt/lib/util/task.js:225:33)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

Aborted due to warnings.

from cabin.

Integralist avatar Integralist commented on May 26, 2024

Looking at that stack trace it suggests that it found the first compass installation path. But then it looks to jump into the ruby executionable directory but from there it seems to break down

from cabin.

Integralist avatar Integralist commented on May 26, 2024

Also...

❯ bundle show compass
/Users/markmcdonnell/.rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/ruby/2.0.0/gems/compass-0.12.2

...so Compass looks to be installed.

Just so you know I'm using chruby and ruby-install to switch/install ruby versions

from cabin.

ChrisWren avatar ChrisWren commented on May 26, 2024

You may have incompatible compass and sass versions, can you tell me what versions you have for each?

from cabin.

Integralist avatar Integralist commented on May 26, 2024
❯ sass --version
Sass 3.3.0.rc.1 (Maptastic Maple)

❯ gem list sass   
sass (3.3.0.rc.1, 3.2.13, 3.2.12)

❯ gem list compass
compass (0.12.2)

from cabin.

ChrisWren avatar ChrisWren commented on May 26, 2024

aah, so you are using an edge version of sass which compass isn't compatible with. Try using 3.2.x


Sent from Mailbox for iPhone

On Thu, Jan 2, 2014 at 7:54 AM, Mark McDonnell [email protected]
wrote:

❯ sass --version
Sass 3.3.0.rc.1 (Maptastic Maple)
❯ gem list sass   
sass (3.3.0.rc.1, 3.2.13, 3.2.12)
❯ gem list compass
compass (0.12.2)

Reply to this email directly or view it on GitHub:
#94 (comment)

from cabin.

Integralist avatar Integralist commented on May 26, 2024

@ChrisWren ah ok, yeah that did the trick. thanks!

from cabin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.