coc-python icon indicating copy to clipboard operation
coc-python copied to clipboard

RuntimeError related to Jedi version being too old

Open EdmundsEcho opened this issue 4 years ago • 7 comments

Result from CocInfo

versions

vim version: NVIM v0.4.3 node version: v14.3.0 coc.nvim version: 0.0.78-263ec93b2c coc.nvim directory: /Users/edmund/.config/nvim/bundle/coc.nvim term: iTerm.app platform: darwin

Output channel: prettier

Output channel: Python

Starting Jedi Python language engine. ##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Describe the bug

Calling the jump to definition function triggers a Runtime Error

[coc.nvim] Jedi error: Traceback (most recent call last):
[coc.nvim] Jedi error:     raise RuntimeError("Jedi version %s too old, requires >= 0.17.0" % (jedi.__v
ersion__))
[coc.nvim]: Error on notification "jumpDefinition": getDefinition timeout after 5s
Press ENTER or type command to continue

To troubleshoot, I updated the extension, plugin and plugin-manager. ... to no avail.

I then tried to uninstall the coc-python extension and received the following error

[coc.nvim] Uninstall failed: item.dispose is not a function

I tried to use the vim mini configuration, but it did not seem load the coc extension despite pointing it to the directory printed in the CocInfo output.

From what I have deduced, I'm not sure the Jedi script is being updated with the coc-python extension. Is that possible? Is there a way to manually update Jedi? (despite the docs that say not to update directly). Is there something wrong with Jedi?

Update

Everything works as expected when I replace Jedi with the MS language server with the setting "python.jediEnabled": false, in my config.

- E

EdmundsEcho avatar Jun 23 '20 14:06 EdmundsEcho

same problem, I‘ve updated jedi,but still “Jedi version %s too old“

stimw avatar Jun 25 '20 15:06 stimw

same problem here

1ak31sha avatar Aug 12 '20 17:08 1ak31sha

same on WSL 1 and ubuntu 8.2

g-i-o-r-g-i-o avatar Aug 31 '20 10:08 g-i-o-r-g-i-o

Same issue on Pop!_OS 20.04.

j-bucholtz avatar Sep 07 '20 20:09 j-bucholtz

Solved by updating python. No other solution worked

Il lun 7 set 2020, 22:52 Jordan Bucholtz [email protected] ha scritto:

Same issue on Pop!_OS 20.04.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neoclide/coc-python/issues/236#issuecomment-688507686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG2GHFVNZ7G4FJOZECZZ73SEVB2LANCNFSM4OGIFAFA .

g-i-o-r-g-i-o avatar Sep 07 '20 21:09 g-i-o-r-g-i-o

Same issue on ubuntu 20.04... Is this a problem with Jedi or coc?

SinclairHudson avatar Sep 17 '20 13:09 SinclairHudson

If you are using virtual environment run "pip freeze" command and check jedi version in your project. It might differ from version you have installed globally.

Himon-SYNCRAFT avatar Oct 18 '20 17:10 Himon-SYNCRAFT