tmanderson / VintageLines

[RETIRED] Relative line numbers for Sublime Text 2's Vintage package
47 stars 16 forks source link

IndexError during checkSettings #39

Open terite opened 10 years ago

terite commented 10 years ago

Sometimes when I view a file in Goto anything I get this in the console

Traceback (most recent call last):
  File "vintageLines in /Users/dstensland/Library/Application Support/Sublime Text 3/Installed Packages/VintageLines.sublime-package", line 45, in checkSettings
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 492, in __getitem__
    raise IndexError()
IndexError
terite commented 10 years ago

it happens when I change buffers quickly and repeatedly. That and the short stack trace makes me believe it may be due to this:

https://github.com/tmanderson/VintageLines/blob/f0925254c90e1ca9d24f14e79d78fadc3de1cb62/vintageLines.py#L95-L96