Giter Club home page Giter Club logo

Comments (8)

badsyntax avatar badsyntax commented on July 4, 2024

Hi there

Thanks for the kind words and for the suggestion. I do plan on making it work in ST3. (I can't see it being a lot of work.) I will work on this soon-ish when I've got some time.

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

Ok I've created a python 3 branch which you can use. Clone the repo into your packages directory, then switch to the 'python3' branch. I've only tested these changes on GNU/Linux.

These changes exist in a separate branch because I can't make the package compatible for both python 2 and 3 due to how python handles strings differently. When ST3 gets released I've make further changes to make python 3 the default.

from sassbeautify.

jonasspott avatar jonasspott commented on July 4, 2024

Really cool! I'll try it later today (: thanks alot!

from sassbeautify.

jitendravyas avatar jitendravyas commented on July 4, 2024

@jonasspott is it working in ST3 now?

from sassbeautify.

jonasspott avatar jonasspott commented on July 4, 2024

Sorry mate - actually haven't been using it yet :/

Den 23/06/2013 kl. 00.42 skrev Richard Willis [email protected]:

Ok I've created a python 3 branch which you can use. Clone the repo into your packages directory, then switch to the 'python3' branch. I've only tested these changes on GNU/Linux.

These changes exist in a separate branch because I can't make the package compatible for both python 2 and 3 due to how python handles strings differently. When ST3 gets released I've make further changes to make python 3 the default.


Reply to this email directly or view it on GitHub.

from sassbeautify.

jitendravyas avatar jitendravyas commented on July 4, 2024

I just tried it works fine

from sassbeautify.

jdivock avatar jdivock commented on July 4, 2024

Tried the python3 branch and got this when trying to beautify

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "/Users/jdivock/Library/Application Support/Sublime Text 3/Packages/SassBeautify/SassBeautify.py", line   23, in run
    self.beautify(edit)
  File "/Users/jdivock/Library/Application Support/Sublime Text 3/Packages/SassBeautify/SassBeautify.py", line 112, in beautify
    'There was an error beautifying your Sass:\n\n' + err
TypeError: Can't convert 'bytes' object to str implicitly

Here's the original sass file

$iconSpritePath: "../images/glyphicons-halflings.png";
$iconWhiteSpritePath: "../images/glyphicons-halflings-white.png";

@import "bootstrap-sass/lib/bootstrap";
@import "font-awesome/scss/font-awesome";

/* CSS declarations go here */
.hero-unit {
position: absolute;
top: 0;
width: 75%;
top: 0;
padding: 5px 60px;
}
footer{
position:absolute;
bottom:10px;
left: 30px;
margin: 10px;
}
.tweets{
position: absolute;
top: 174px;
bottom: 60px;
overflow: auto;
}
.btn-git {
line-height: 14px;
vertical-align: top;
}

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

Good news everyone, this plugin now works with Sublime Text 2 + 3! Install via package control in ST3 as you would with ST2.

I'm going to close this ticket, but please do let me know if you have any issues by creating a new ticket.

@jdivock That error looks related to the 'sass-convert' not existing in your path. I've fixed the issue with it die when trying to inform you of that error.

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.