Comments (8)
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.
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.
Really cool! I'll try it later today (: thanks alot!
from sassbeautify.
@jonasspott is it working in ST3 now?
from sassbeautify.
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.
I just tried it works fine
from sassbeautify.
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.
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)
- 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.