You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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 #12 by @kgantsov
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 "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "", line 586, in _check_name_wrapper
File "", line 1023, in load_module
File "", line 1004, in load_module
File "", line 562, in module_for_loader_wrapper
File "", line 869, in _load_module
File "", line 313, in _call_with_frames_removed
File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/SublimeFormatSQL/FormatSQL.py", line 6, in
from .sqlparse import format
File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/SublimeFormatSQL/sqlparse/init.py", line 13, in
from sqlparse import engine
ImportError: No module named 'sqlparse'
plugins loaded
Activity
grantmcconnaughey commentedon Jan 8, 2014
Same for Mac OS X 10.9.1, Sublime Text 2.
bsiamionau commentedon Jan 11, 2014
Windows 7, Sublime 2.0.2, same thing
jonwhittlestone commentedon Jan 28, 2014
Same for Mac OS X 10.9.1, ST3
DBD80 commentedon Feb 12, 2014
Got same the same issue on Win 7, Sublime Text 2, v 2.0.2, Build: 2221
bani commentedon Feb 12, 2014
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.
iies commentedon Feb 19, 2014
Me too, Mac OSX 10.9.1 / ST2.0.2
but bani's repository is worked! thanks bani.
adworacz commentedon Mar 27, 2014
How do you install Bani's version using the package manager?
osscca commentedon Apr 27, 2014
@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
bani commentedon Apr 27, 2014
@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 #12 by @kgantsov
osscca commentedon Apr 29, 2014
Thanks @bani. I've done some additional testing and apparently this version works correct in ST3 on Windows, but not on OS X.
rstackhouse commentedon May 7, 2014
Got same the same issue on OS X Maviercks, Sublime Text 2, v 2.0.2, Build: 2221
travelliu commentedon Jun 4, 2014
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 "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "", line 586, in _check_name_wrapper
File "", line 1023, in load_module
File "", line 1004, in load_module
File "", line 562, in module_for_loader_wrapper
File "", line 869, in _load_module
File "", line 313, in _call_with_frames_removed
File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/SublimeFormatSQL/FormatSQL.py", line 6, in
from .sqlparse import format
File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/SublimeFormatSQL/sqlparse/init.py", line 13, in
from sqlparse import engine
ImportError: No module named 'sqlparse'
plugins loaded
adworacz commentedon Jun 4, 2014
Read the README for this project. It specifically says to have the python sqlparse library installed. This will fix your issue.
dialex commentedon Jul 19, 2014
Don't even worry and switch to SQLBeautifier. Works for ST2/3 and doesn't force you to install python. Cheers ;)
rstackhouse commentedon Jul 24, 2014
@dialex The docs disagree with you.
I have had much better luck with SQLBeautifier though. sqlparse is just a
pip install python
away though.taeseong commentedon Oct 6, 2014
@bani thank you very much!
manyata commentedon Jan 16, 2015
@bani seems to crash on ST2 .. if i press Command+S twice on a selection.
icalderond commentedon Feb 22, 2016
Thanks @bani plugging work very well.