Comments (8)
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 (specificallycompass
) 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 thegems
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.
@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.
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.
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.
You may have incompatible compass and sass versions, can you tell me what versions you have for each?
from cabin.
❯ 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.
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.
@ChrisWren ah ok, yeah that did the trick. thanks!
from cabin.
Related Issues (20)
- [chore] bump version of response-time across entire stack once patch is merged
- add option to exclude app info HOT 1
- YOUR-CABIN-API-KEY HOT 18
- req.logger/res.logger `silent` option in Express? HOT 9
- Any way to return "msg" (in prod) as JSON? HOT 6
- HTTP2 does not support raw Response headers via `res._header` so an alternative will need to be discovered
- Marketing
- Exist '#' on Router
- Bad: Use Express inside Koa with koa-connect
- Implement Beacon + localStorage API
- TypeScript support HOT 2
- Multiple destinations via axe, or multiple axe loggers? HOT 1
- Writing logs to a file instead of console HOT 2
- error with koa HOT 3
- fatal: not a git repository (or any of the parent directories): .git HOT 5
- Bundler plugins HOT 4
- How to make the log tiny (compact mode) HOT 2
- docs: update SHOW_META, SHOW_META_APP, and OMIT_META_FIELDS in README
- [feat] Switch between apache-friendly and JSON output HOT 2
- [feat] TypeScript support? (Again) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cabin.