Comments (12)
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.
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.
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:
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.
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.
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.
Please paste the contents of your sassbeautify user settings file.
from sassbeautify.
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.
rawcreative, try using this code instead of what's on the repo:
scotthovestadt@26c63e0
from sassbeautify.
@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.
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.
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.
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)
- General config file in repo for sharing between developers
- Not working after latest ST3 Update HOT 2
- Option to re-order css properties on beautify HOT 3
- Leading zero HOT 1
- [Errno 2] No such file or directory: 'sass-convert' HOT 7
- Indentation HOT 4
- Extra line between comment and closing bracket HOT 1
- Add missing semicolons automatically rather than sass-convert throwing error
- Double quotes in single quotes are changed on compile
- Simply not working
- it does't work and throw a error 'UnicodeDecodeError'
- UTF-8 not supported
- SassBeautify throwing the following error - No such file or directory 'sass-convert' HOT 9
- Attempting to use BEM methodology Sass breaks formatting
- Ability to set FinalNewline to true HOT 1
- [Errno 2] No such file or directory: 'sass-convert' HOT 2
- Double quotes are changed on compile
- Allow manual use on non .scss/.sass/.css files. HOT 1
- Error
- going insane
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 sassbeautify.