Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] on_hover() event triggers on_query_completions() #211

Closed
deathaxe opened this issue Jun 10, 2017 · 1 comment
Closed

[BUG] on_hover() event triggers on_query_completions() #211

deathaxe opened this issue Jun 10, 2017 · 1 comment
Labels

Comments

@deathaxe
Copy link
Contributor

I recently found Jedi to print strange tracebacks to console.

It turned out the ask_deamon() function which is called by on_hover() for the new docstring tooltips somehow triggers the on_query_completions() event. The view being passed to the event handler has no valid window attribute which causes the traceback below.

I honestly can't find a reason for this strange behavior.

Traceback (most recent call last):
  File "C:\Apps\Sublime\sublime_plugin.py", line 591, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "C:\Apps\Sublime\Data\Packages\Jedi - Python autocompletion\sublime_jedi\completion.py", line 169, in on_query_completions
    ask_daemon(view, self._show_completions, 'autocomplete', locations[0])
  File "C:\Apps\Sublime\Data\Packages\Jedi - Python autocompletion\sublime_jedi\utils.py", line 209, in ask_daemon
    window_id = view.window().id()
AttributeError: 'NoneType' object has no attribute 'id'
@srusskih srusskih added the bug label Jun 10, 2017
@deathaxe
Copy link
Contributor Author

It seems to be a core bug.

Related with sublimehq/sublime_text#3424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants