codota / tabnine-sublime

Tabnine Autocomplete AI: JavaScript, Python, TypeScript, PHP, C/C++, HTML/CSS, Go, Java, Ruby, C#, Rust, SQL, Bash, Kotlin, Julia, Lua, OCaml, Perl, Haskell, React
https://www.tabnine.com/install/sublime
MIT License
195 stars 36 forks source link

Error on autocomplete window popup #22

Open PhilipTrauner opened 5 years ago

PhilipTrauner commented 5 years ago

I'm greeted with a bit of an error spam every time the autocomplete window pops up:

startup, version: 3184 osx x64 channel: dev
...
reloading plugin TabNine.TabNine
plugins loaded
TabNine: starting version 1.0.10
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 462, in run_callback
    expr()
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 586, in <lambda>
    run_callback('on_selection_modified', callback, lambda: callback.on_selection_modified(v))
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 134, in on_selection_modified
    self.on_any_event(view)
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 155, in on_any_event
    ) = self.get_before(view, AUTOCOMPLETE_CHAR_LIMIT)
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 125, in get_before
    loc = view.sel()[0].begin()
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 649, in __getitem__
    raise IndexError()
IndexError

Sometimes the autocomplete window also appears in the wrong location, but I haven't been able to reproduce this issue consistently.

With kind regards, Philip Trauner