Open kntao opened 10 years ago
Same for Mac OS X 10.9.1, Sublime Text 2.
Windows 7, Sublime 2.0.2, same thing
Same for Mac OS X 10.9.1, ST3
Got same the same issue on Win 7, Sublime Text 2, v 2.0.2, Build: 2221
In case anyone is interested, I created a fork that works with Sublime 2: https://github.com/bani/SublimeFormatSQL If you are using the package manager you can add this repository.
Me too, Mac OSX 10.9.1 / ST2.0.2 but bani's repository is worked! thanks bani.
How do you install Bani's version using the package manager?
@bani Your fork works perfect in ST2! When will ST3 be supported?
@adworacz This is explained on the Package Control website: https://sublime.wbond.net/docs/usage
@osscca Apparently supporting both versions is tricky. I don't use ST3, so it's not in my plans. The last work done for ST3 support seems to be https://github.com/freewizard/SublimeFormatSQL/pull/12 by @kgantsov
Thanks @bani. I've done some additional testing and apparently this version works correct in ST3 on Windows, but not on OS X.
Got same the same issue on OS X Maviercks, Sublime Text 2, v 2.0.2, Build: 2221
mac os 10.9.3 sublime 3
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "
Read the README for this project. It specifically says to have the python sqlparse library installed. This will fix your issue.
Don't even worry and switch to SQLBeautifier. Works for ST2/3 and doesn't force you to install python. Cheers ;)
@dialex The docs disagree with you.
This is a SQL formatter plugin using python-sqlparse for both Sublime 2 and 3.
I have had much better luck with SQLBeautifier though. sqlparse is just a pip install python
away though.
@bani thank you very much!
@bani seems to crash on ST2 .. if i press Command+S twice on a selection.
Thanks @bani plugging work very well.
on windows platform, why ”Format SQL Statement“ button is disabled?