prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 160 forks source link

Exception Script.__init__() got an unexpected keyword argument 'column' #152

Open webgtx opened 5 months ago

webgtx commented 5 months ago

This happens just after I press tab in insert mode

Unhandled exception in event loop:
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1920, in new_coroutine
    await coroutine(*a, **kw)
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1744, in async_completer
    async for completion in async_generator:
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/completion/base.py", line 199, in get_completions_async
    for item in self.get_completions(document, complete_event):
  File "/home/alex/.local/lib/python3.11/site-packages/pyvim/completion.py", line 65, in get_completions
    script = self._get_jedi_script_from_document(document)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alex/.local/lib/python3.11/site-packages/pyvim/completion.py", line 101, in _get_jedi_script_from_document
    return jedi.Script(
           ^^^^^^^^^^^^
noticed
Exception Script.__init__() got an unexpected keyword argument 'column'
Press ENTER to continue...

Am I supposed to install something? I haven't seen anything about required dependencies in readme file :shipit:

hhhhh322 commented 1 month ago

your jedi version is too high,if you change it to v0.17.2, this problem will be solved

webgtx commented 1 month ago

@hhhhh322 thanks, that solved the problem. Also I had to downgrade python to 3.9 because jedi doesn't support 3.11+

Can we mention somewhere in the readme that pyvim doesn't support jedi 0.19.?

hhhhh322 commented 1 month ago

@webgtx OK, that's a good advice,you can request a pull.