Comments (14)
Have you tried copying in your full PATH?
from sassbeautify.
Like this?
"path": "/Users/constantmeiring/.rbenv/shims/"
from sassbeautify.
I can't say as I don't have rbenv installed to check, but i doubt that's your full path. Just open a terminal window and type echo $PATH
and use the whole string. Perhaps rbenv modifies the PATH on shell login, perhaps there's other dependant ruby or rbenv dirs added to it. Worth checking what your full PATH is as it's important to include all the rbenv/ruby related directories.
from sassbeautify.
The full path is /Users/constantmeiring/.rbenv/shims /Users/constantmeiring/.rbenv/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin
, but it doesn't actually work. When using the full path (or just leaving the path setting to false) it says
There was an error beautifying your Sass:
[Errno 2] No such file or directory
But, running which sass-convert
outputs /Users/constantmeiring/.rbenv/shims/sass-convert
, so just putting /Users/constantmeiring/.rbenv/shims/
as my path should work fine. When running
sass-convert from the command line it seems to work fine.
➜ ~ /Users/constantmeiring/.rbenv/shims/sass-convert -v
Sass 3.2.14 (Media Mark)
from sassbeautify.
When I tested this with rvm I had to include all the rvm directories for it to work, it wasn't as simple as just providing the path to the "shims" bin directory.
I will have to install rbenv to advise further. I'll try get to that tomorrow!
from sassbeautify.
I can't help but be a bit grumpy about this as I've just tested this on OSX with rbenv and it works fine.
so just putting /Users/constantmeiring/.rbenv/shims/ as my path should work fine
No, you'll need your full $PATH, did you read the README?
The full path is /Users/constantmeiring/.rbenv/shims /Users/constantmeiring/.rbenv/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin
This does not look like a valid PATH. Where are the colons separating the directories?
This is a valid PATH:
/Users/richard/.rbenv/shims:/usr/local/opt/ruby/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Can I ask why you took this route (trying which sass-convert
etc) instead of just following my instructions in the README?
How can I make these instructions any clearer? "You need to use your full PATH." What don't you understand about that?
from sassbeautify.
I've updated the README slightly with (hopefully) clearer instructions: https://github.com/badsyntax/SassBeautify/blob/master/README.md#issues-with-ruby-sass-and-your-path
Let me know if I can improve the instructions at all.
from sassbeautify.
Well, while you were busy being grumpy, I figured out why following your readme file doesn't work. ;) The problem was related to ZSH. The path set by ZSH doesn't include colons, as per how Bash does it. So, you might want to add to your readme, that if you get your full path from ZSH you'll need to replace the spaces in between with colons.
from sassbeautify.
I hope you can understand why I was being grumpy that you weren't following my instructions. Either way, I apologise for my grumpyness, early mornings tend to do that to me. I'm happy you have found the cause of the issue, and thank you for letting me know about this.
I'm entirely unfamiliar with zsh. I will try play around with that shell at some point today. I'm curious though, would doing this result in a PATH with colons:? /bin/sh -c "echo $PATH"
from sassbeautify.
Ha no I completely understand. RTFM! Thanks for looking into the issue. Also, ZSH along with oh-my-zsh is amazing. You should give it a go.
from sassbeautify.
tbh I've never had a reason to try zsh before, bash has always been good enough for me! am having some problems installing zsh with homebrew, but should be able to check it out before the end of the day. thanks again for reporting this issue.
from sassbeautify.
Ok, I've had a quick go with zsh, and now I'm grumpy again, because if you'd followed my instructions, echo $PATH
would have given you the correct path. See here: http://zsh.sourceforge.net/Guide/zshguide02.html#l24
Even though I gave you clear instructions, you insisted on doing something different. I feel you've wasted my time, but I guess I have learned a bit about zsh, hopefully you've also learned something from this.
from sassbeautify.
Okay grumpy. I'm terribly sorry that I wasted your time and that you learned something new. However, I've only ever used ZSH, where doing echo $path
outputs a path I would expect. Obviously unix is case sensitive, so I should have known better. But really, "you insisted on doing something different."? Again, thank you for looking into the issue, but I feel like creating a new issue simply by not following your readme, just to make your perfectionistic self grumpy again, because I obviously go out of my way to miss small things in your readme.
from sassbeautify.
Hey man I'm really not looking to start an online argument, I just don't understand why you don't follow the README. Doing echo $path will not echo out the global environment PATH var. Why don't you understand this? Let's put this to rest. At the end of the day, we should both be happy that the only issue here is a simple misunderstanding.
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.