teremterem / swipe-thought-bot

MIT License
0 stars 0 forks source link

Fix Jupyter (Kite?) completer #16

Closed teremterem closed 3 years ago

teremterem commented 3 years ago

JupyterLab 3.0.0 with Kite plugin

Autocomplete fails with exception:

[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 265, in dispatch_shell
    yield gen.maybe_future(handler(stream, idents, msg))
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/tornado/gen.py", line 762, in run
    value = future.result()
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/tornado/gen.py", line 234, in wrapper
    yielded = ctx_run(next, result)
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 580, in complete_request
    matches = yield gen.maybe_future(self.do_complete(code, cursor_pos))
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 356, in do_complete
    return self._experimental_do_complete(code, cursor_pos)
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 381, in _experimental_do_complete
    completions = list(_rectify_completions(code, raw_completions))
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/IPython/core/completer.py", line 484, in rectify_completions
    completions = list(completions)
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/IPython/core/completer.py", line 1818, in completions
    for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000):
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions
    matched_text, matches, matches_origin, jedi_matches = self._complete(
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete
    completions = self._jedi_matches(
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches
    interpreter = jedi.Interpreter(
  File "/Users/terem/.local/share/virtualenvs/swipe-thought-bot-dKSXIKA3/lib/python3.8/site-packages/jedi/api/__init__.py", line 725, in __init__
    super().__init__(code, environment=environment,
TypeError: __init__() got an unexpected keyword argument 'column'
teremterem commented 3 years ago

Jupyter completions fixed: https://github.com/kiteco/issue-tracker/issues/521#issuecomment-751354621 However, Kite extension still has no effect.

teremterem commented 3 years ago

Fixed in #83