Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange error when running beautify #60

Closed
dallasbpeters opened this issue Oct 22, 2014 · 4 comments
Closed

Strange error when running beautify #60

dallasbpeters opened this issue Oct 22, 2014 · 4 comments

Comments

@dallasbpeters
Copy link

There was an error beautifying your Sass:

/Users/admin/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:313:in `to_specs': Could not find 'sass' (>= 0) among 14 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/admin/.gem/ruby/1.9.1:/Users/admin/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/gems/1.9.1', execute `gem env` for more information
    from /Users/admin/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:322:in `to_spec'
    from /Users/admin/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:58:in `gem'
    from /Users/admin/.rvm/gems/ruby-1.9.3-p547/bin/sass-convert:22:in `<main>'
    from /Users/admin/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `eval'
    from /Users/admin/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `<main>'

screenshot 2014-10-22 14 25 57

here is my user setting file...

{
  "indent": 4,
  "dasherize": false,
  "old": false,
  // Custom environment PATH.
  "path": "/Users/admin/.rvm/gems/ruby-1.9.3-p547/bin:/Users/admin/.rvm/gems/ruby-1.9.3-p547@global/bin:/Users/admin/.rvm/rubies/ruby-1.9.3-p547/bin:/Users/admin/.rvm/bin:/Users/admin/.nvm/v0.10.32/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/ImageMagick/bin:/Users/admin/Development/Android/sdk/platform-tools:/Users/admin/Development/Android/sdk/tools:/Users/admin/Development/Android/sdk/platform-tools:/Users/admin/.rvm/bin:/Users/admin/.rvm/bin",
  "beautifyOnSave": true
}

What other info might you need about my environment?

@thezanke
Copy link

thezanke commented Nov 7, 2014

I am having this exact same problem, I had to give up for now (as I am at work and don't have the time to waste) but I have tried adding the output of 'echo $PATH' as well as the output of 'which sass' (up to /bin);

I am on OS X; I am using RVM. I have even performed an 'rvm all do gem install sass' to try to get it into whichever path SassBeautify is attempting to use. No dice. :(

badsyntax added a commit that referenced this issue Nov 25, 2014
@badsyntax
Copy link
Owner

I've added a new setting which accepts a custom GEM_PATH, which appears to fix these rvm issues.

Check the latest README for instructions. Give it a little while and you should be able to update through the package manager (make sure you're using 1.4.1).

Let me know if you still have issues!

@thezanke
Copy link

Thank you, seems to work on my side!

@alanmoo
Copy link

alanmoo commented Dec 3, 2014

Solved the issues I was having too, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants