Giter Club home page Giter Club logo

Comments (44)

zackphilipps avatar zackphilipps commented on July 24, 2024 11

Found a better fix I think. Under Preferences > Package Settings > SassBeautify > Settings – User add this line:

"path": "/usr/local/bin"

Hopefully this will prevent having to run gem install -n /usr/local/bin sass over and over.

from sassbeautify.

Liquir-ice avatar Liquir-ice commented on July 24, 2024 7

This solution fixed my problem

$ sudo gem install sass
$ which sass-convert
/usr/local/bin/sass-convert

# Change the sublime sassbeautify user preference
{
  "indent": 4,
  "dasherize": false,
  "old": false,
  "path": "/usr/local/bin/",
  "gemPath": false,
  "beautifyOnSave": true,
  "inlineComments": false,
  "useSingleQuotes": false
}

from sassbeautify.

RaphaelDDL avatar RaphaelDDL commented on July 24, 2024 4

From what I could see on this topic, every new OSX upgrade needs to reinstall sass. I updated to Mojave and had same issue, so reinstalling the gem as @field2 showed is the way to go on every update. πŸ‘

from sassbeautify.

field2 avatar field2 commented on July 24, 2024 3

This problem's back under 10.13.1 High Sierra. Need to do
sudo gem install sass

from sassbeautify.

danielhaim1 avatar danielhaim1 commented on July 24, 2024 2

Alright, just heads up this worked for me:

Open up terminal
Run: echo $PATH
Copy the entire PATH into the 'path' setting
Run: echo $GEM_PATH
Copy the entire GEM_PATH into the 'gemPath' setting

found here: https://github.com/badsyntax/SassBeautify#issues-with-ruby-sass-and-your-path

from sassbeautify.

Le-future avatar Le-future commented on July 24, 2024 1

Thanks for the help, my problem is at this point :

Copy the entire GEM_PATH into the 'gemPath' setting

When I type this sentence, the terminal send me back a bank space without path

from sassbeautify.

kaichanvong avatar kaichanvong commented on July 24, 2024

sass-convert test.scss:

foo
  bar
    border: 1px solid red

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

Hi there. Can you let me know what OS version you're on? Also what version of Sublime Text are you using?

from sassbeautify.

kaichanvong avatar kaichanvong commented on July 24, 2024

OSX 10.8.4 (Mountain Lion)
Sublime Text 2 Version: 2.0.2, Build 2221

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

Ok, you're going to have to help me out here, as I'm out of ideas. I have replicated your environment, using ST2 and OSX 10.8.4, with Sass V3.2.10 and can't replicate your issues.

  • Can you post the full contents of your example .scss file?
  • How did you install the plugin?
  • Can you try uninstall and re-install the plugin?
  • Have you set custom SassBeautify settings? If so can you paste them here.
  • Before running the plugin from ST2, can you open up the console (View >> Show console), then run the plugin, then can you paste any debug info you see.

Thanks.

from sassbeautify.

kaichanvong avatar kaichanvong commented on July 24, 2024

At a later date! Soz for the issue -- please close

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

It does sounds like it could be an environment issue, but then it doesn't make sense that you're able to run sass-convert from the cli without any custom paths. This plugin is essentially doing the same thing, it's just executing a sub-process to run the sass-convert program.

I'll close this ticket, but if you figure out what's going on with your setup, it would be cool if you could reply to this ticket to let me know.

Cheers.

from sassbeautify.

kaichanvong avatar kaichanvong commented on July 24, 2024

thanks for sharing and maintaining this plugin

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

Thanks man πŸ‘

from sassbeautify.

tbbooher avatar tbbooher commented on July 24, 2024

I'm having the same problem. Any solution?

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

@tbbooher I've found that this is usually a PATH issue related to using RVM. Are you using RVM?

from sassbeautify.

tbbooher avatar tbbooher commented on July 24, 2024

yes, and I got it fixed through explicitly setting the path. Thanks.

from sassbeautify.

niklas-heer avatar niklas-heer commented on July 24, 2024

I'm having the same issue. How exactly did you fix the path setting?

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

@niklas-hee The readme explains how to change the plugin settings, also see here: https://github.com/badsyntax/SassBeautify#compatibility-with-rvm

from sassbeautify.

dallasbpeters avatar dallasbpeters commented on July 24, 2024

so should it be

"path": true,

or

"path": path/to/all-mystuff,

from sassbeautify.

kaichanvong avatar kaichanvong commented on July 24, 2024

@dallasbpeters – from Readme:
// Custom environment PATH.
"path": false,

So either false or a Path

from sassbeautify.

dallasbpeters avatar dallasbpeters commented on July 24, 2024

@kaichanvong cool. Got that as I was missing the ""

But have new errors that I've submitted an issue for #60

from sassbeautify.

field2 avatar field2 commented on July 24, 2024

Seems to be an issue again, after updateing OSX to El Capitan...

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

πŸ‘ Issue on El Capitan.

from sassbeautify.

jeeeez avatar jeeeez commented on July 24, 2024

πŸ‘ Issue on El Capitan.

from sassbeautify.

jeeeez avatar jeeeez commented on July 24, 2024

and how to fix that?

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

sass/sass#1768

@endoplasmic had the answer that worked for me.

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

At least until I update or reinstall Ruby.

from sassbeautify.

field2 avatar field2 commented on July 24, 2024

OK, I'm dumb, but what did you replace where it says GEM_NAME_HERE ?
sudo gem install -n /usr/local/bin GEM_NAME_HERE
I tried sudo gem install -n /usr/local/bin sass and although it installed the latest sass (I think), the error's still there.

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

That should be correct. Are you using Homebrew? If so, run brew doctor to see if there's a permissions issue with your /usr/local directory. Or you could just cd to /usr and run ls -l to see the owner of the directory. It should be you:admin where you is your OSX username. All is explained here.

If that's not the issue, then I don't know what is. :/

from sassbeautify.

field2 avatar field2 commented on July 24, 2024

Not using homebrew; should I be?

On Tue, Oct 13, 2015 at 11:30 AM, Zack Philipps [email protected]
wrote:

That should be correct. Are you using Homebrew? If so, run brew doctor to
see if there's a permissions issue with your /usr/local directory. Or you
could just cd to /usr and run ls -l to see the owner of the directory. It
should be you:admin where you is your OSX username. All is explained here.
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md

If that's not the issue, then I don't know what is. :/

β€”
Reply to this email directly or view it on GitHub
#11 (comment)
.

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

Not necessarily. Have you tried reinstalling the sass gem normally? Like gem install sass or sudo gem install sass.

from sassbeautify.

field2 avatar field2 commented on July 24, 2024

Yes, I have sass installed, but not homebrew; brew doctor says brew: command not found

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

The only thing I can think of is maybe SassBeautify can't find the sass gem because the permissions/ownership need adjusted on your /usr/local directory. When El Capitan is installed it changes that, and they simply need to go back to the way they were. Check this again and follow the steps, see if it helps.

from sassbeautify.

dajocarter avatar dajocarter commented on July 24, 2024

I have permissions set correctly from doing the chown as Homebrew suggested, and I also ran gem install -n /usr/local/bin sass. This worked for me on the mac mini but not on my macbook.

from sassbeautify.

dajocarter avatar dajocarter commented on July 24, 2024

Adding the path to settings worked for me.
Thanks @zackphilipps πŸ’―

from sassbeautify.

zackphilipps avatar zackphilipps commented on July 24, 2024

Sick! Thanks @badsyntax for pointing me to the readme. I tried that before and it didn't work, so I must've just screwed it up somehow.

from sassbeautify.

field2 avatar field2 commented on July 24, 2024

{
"path": "/usr/local/bin"
}
worked for me!

from sassbeautify.

digitalcraftco avatar digitalcraftco commented on July 24, 2024

Thank you! Path fixed worked for me on El Capitan. Was going crazy trying to re-install sass gems.

from sassbeautify.

mlabbe123 avatar mlabbe123 commented on July 24, 2024

Another happy sassBeautify user here, big thanks to @zackphilipps for the hint!

from sassbeautify.

danielhaim1 avatar danielhaim1 commented on July 24, 2024

gah. @zackphilipps latest solution keeps crashing my sublime :[

from sassbeautify.

Le-future avatar Le-future commented on July 24, 2024

I'm getting exactly the same problem since I upgraded my Macbook to El Capitaaan.

Did you find a solution?

from sassbeautify.

danielhaim1 avatar danielhaim1 commented on July 24, 2024

Yes, the solution above worked for me.

from sassbeautify.

Le-future avatar Le-future commented on July 24, 2024

Absolutely awesome @Liquir-ice , worked for me as well! Thanks very much πŸ˜ƒ

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.