By the way there’s a small and inconsequential bug in sublimelint. When there’s nothing selected a bunch of errors go on the console. Basically the line which causes the error is in on_selection_modified where it assumes there’s at least one selection.
A simple git diff for a fix is:
diff --git a/sublimelint_plugin.py b/sublimelint_plugin.py
index e7e3293..c56fd04 100755
--- a/sublimelint_plugin.py
+++ b/sublimelint_plugin.py
@@ -181,8 +181,9 @@ class pyflakes(sublime_plugin.EventListener):
def on_selection_modified(self, view):
vid = view.id()
- lineno = view.rowcol(view.sel()[0].end())[0]
- if vid in lineMessages and lineno in lineMessages[vid]:
- view.set_status('pyflakes', '; '.join(lineMessages[vid][lineno]))
- else:
- view.erase_status('pyflakes')
+ if len(view.sel()):
+ lineno = view.rowcol(view.sel()[0].end())[0]
+ if vid in lineMessages and lineno in lineMessages[vid]:
+ view.set_status('pyflakes', '; '.join(lineMessages[vid][lineno]))
+ else:
+ view.erase_status('pyflakes')
As can be seen, all I’ve done is checked that there is at least one selection (using “if len(view.sel())”) before executing the code on it. There may be other work that needs doing for this, (maybe adding an “else:” that does the “view.erase_status(‘pyflakes’)” bit, I didn’t want to get that far into it).
If you want a pull request let me know, but I’m not exactly all up on github and whatnot so I figured I’d just present the patch here in code and words.