Giter Club home page Giter Club logo

Comments (14)

badsyntax avatar badsyntax commented on July 4, 2024

Have you tried copying in your full PATH?

from sassbeautify.

constantm avatar constantm commented on July 4, 2024

Like this?

"path": "/Users/constantmeiring/.rbenv/shims/"

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

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.

constantm avatar constantm commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

constantm avatar constantm commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

constantm avatar constantm commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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.

constantm avatar constantm commented on July 4, 2024

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.

badsyntax avatar badsyntax commented on July 4, 2024

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)

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.