Comments (44)
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.
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.
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.
This problem's back under 10.13.1 High Sierra. Need to do
sudo gem install sass
from sassbeautify.
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.
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.
sass-convert test.scss
:
foo
bar
border: 1px solid red
from sassbeautify.
Hi there. Can you let me know what OS version you're on? Also what version of Sublime Text are you using?
from sassbeautify.
OSX 10.8.4 (Mountain Lion)
Sublime Text 2 Version: 2.0.2, Build 2221
from sassbeautify.
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.
At a later date! Soz for the issue -- please close
from sassbeautify.
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.
thanks for sharing and maintaining this plugin
from sassbeautify.
Thanks man π
from sassbeautify.
I'm having the same problem. Any solution?
from sassbeautify.
@tbbooher I've found that this is usually a PATH issue related to using RVM. Are you using RVM?
from sassbeautify.
yes, and I got it fixed through explicitly setting the path. Thanks.
from sassbeautify.
I'm having the same issue. How exactly did you fix the path setting?
from sassbeautify.
@niklas-hee The readme explains how to change the plugin settings, also see here: https://github.com/badsyntax/SassBeautify#compatibility-with-rvm
from sassbeautify.
so should it be
"path": true,
or
"path": path/to/all-mystuff,
from sassbeautify.
@dallasbpeters βΒ from Readme
:
// Custom environment PATH.
"path": false,
So either false
or a Path
from sassbeautify.
@kaichanvong cool. Got that as I was missing the ""
But have new errors that I've submitted an issue for #60
from sassbeautify.
Seems to be an issue again, after updateing OSX to El Capitan...
from sassbeautify.
π Issue on El Capitan.
from sassbeautify.
π Issue on El Capitan.
from sassbeautify.
and how to fix that?
from sassbeautify.
@endoplasmic had the answer that worked for me.
from sassbeautify.
At least until I update or reinstall Ruby.
from sassbeautify.
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.
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.
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.mdIf 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.
Not necessarily. Have you tried reinstalling the sass gem normally? Like gem install sass
or sudo gem install sass
.
from sassbeautify.
Yes, I have sass installed, but not homebrew; brew doctor says brew: command not found
from sassbeautify.
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.
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.
Adding the path to settings worked for me.
Thanks @zackphilipps π―
from sassbeautify.
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.
{
"path": "/usr/local/bin"
}
worked for me!
from sassbeautify.
Thank you! Path fixed worked for me on El Capitan. Was going crazy trying to re-install sass gems.
from sassbeautify.
Another happy sassBeautify user here, big thanks to @zackphilipps for the hint!
from sassbeautify.
gah. @zackphilipps latest solution keeps crashing my sublime :[
from sassbeautify.
I'm getting exactly the same problem since I upgraded my Macbook to El Capitaaan.
Did you find a solution?
from sassbeautify.
Yes, the solution above worked for me.
from sassbeautify.
Absolutely awesome @Liquir-ice , worked for me as well! Thanks very much π
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.