Giter Club home page Giter Club logo

Comments (12)

badsyntax avatar badsyntax commented on June 26, 2024

I'm not familiar with Ruby, but I've had a go with RVM and I have a couple of questions. It looks like RVM updates your path when switching between ruby versions, so surely your gems bin folder (for the specific ruby version) will always be in your path? Are you trying to accommodate a situation where you don't have sass installed for a particular version of ruby? I just want to understand the problem a bit better before merging this...

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

I've merged, thanks for this suggestion and code.

I've modified how the path setting is used. The custom path is now appended to the current path, instead of replacing it, which makes it easier to supply a path to a custom sass bin folder, while keeping all your other system paths (like path to ruby). Does this approach still work for your setup?

from sassbeautify.

scotthovestadt avatar scotthovestadt commented on June 26, 2024

I originally tried it by appending the path, but I found that this caused it to look in the wrong directory for the gems.

Here is the error it gives me:
screen shot 2013-05-28 at 11 09 47 am

It works without the environment path if I set path to the RVM ruby path. A solution might be setting the default path to $PATH in the settings file (find/replacing it later) and allowing the user to include or exclude it as needed.

RVM in general is clunky and can cause lots of issues.

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

Clunky indeed! I don't understand why it works without using the full environment PATH. I also don't understand why your environment path does not contain the paths to the current version of ruby you are using. RVM should update your environment paths when switching ruby versions. All in all, I don't have a good understand of your setup.

I guess your original approach is best in this scenario. I was trying to make it easier for the user, so that they did not have to add multiple paths (for ruby & sass), but it looks like this is not helpful in your situation. I would like to do more testing to replicate your issue so I can understand it a bit better before making the change, but it looks like I'll revert back to specifying the full path instead of appending to environment path.

A long shot, but have you tried appending multiple paths, like so:

{
"path": "/my/path/bin:/my/other/path/bin"
}

from sassbeautify.

rawcreative avatar rawcreative commented on June 26, 2024

I'm having the same problem, just a different error: [Errno 20] Not a directory, Does sass-convert exist in PATH?

I've tried just about every possible method/configuration/trick I could find and nothing works..

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

Please paste the contents of your sassbeautify user settings file.

from sassbeautify.

rawcreative avatar rawcreative commented on June 26, 2024

Here's both:

default -

{
"indent": 4,
"dasherize": false,
"old": false,
"path": "/Users/Tim/.rvm/gems/ruby-2.0.0-p0/bin"
}

user -

{
"path" : "/Users/Tim/.rvm/gems/ruby-2.0.0-p0/bin"
}

Have tried using one and not the other, multiple paths, changing sublime's ruby and python paths.. get the same message every time.

On Jun 9, 2013, at 10:01 AM, Richard Willis [email protected] wrote:

Please paste the contents of your sassbeautify user settings file.


Reply to this email directly or view it on GitHub.

from sassbeautify.

scotthovestadt avatar scotthovestadt commented on June 26, 2024

rawcreative, try using this code instead of what's on the repo:
scotthovestadt@26c63e0

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

@rawcreative You are using the path to the ruby bin folder, you need to use the path to the sass bin folder instead.

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

Is this still an issue? I'll keep this ticket open for another couple of days, if I don't hear anything back I'll close it.

from sassbeautify.

ocean90 avatar ocean90 commented on June 26, 2024

If you use /Users/Dominik/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/bin instead of /Users/Dominik/.rvm/gems/ruby-2.0.0-p247/bin/sass it works.

from sassbeautify.

badsyntax avatar badsyntax commented on June 26, 2024

I think we can finally put this one to bed: https://github.com/badsyntax/SassBeautify#compatibility-with-rvm

Upgrade to the latest version (which includes a PATH fix):

  • Open up the command pallete (cmd/ctrl + shift + p)
  • Select: "Package Control: Upgrade Package"
  • Select SassBeautify

from sassbeautify.

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.