Closed zhaojames0707 closed 6 years ago
I forgot to mention that the version of pymongo
is 3.6.0.
I suspect this is hitting a limitation of Jedi. Is it possible to reproduce with raw Jedi? JediHTTP is really just wrapping the Jedi API.
Took me some time but I was able to reduce the problem to the following code:
import jedi
jedi.Script("dict().values().").completions()
I reported the issue to the Jedi repository: https://github.com/davidhalter/jedi/issues/1014.
Fixed by PR https://github.com/Valloric/ycmd/pull/1028.
description
I use Vim with YCM, and they worked very well most of the time, but it seems that something is wrong completing
pymongo
objects.Relevant piece of code:
After I inputed the dot after
pymongo.MongoClient()
, nothing shows up. I looked at the log file of YCM, and it shows:I manually started JediHTTP server:
And call it with curl command:
RecursionError shows in the server console output:
My environment: JediHTTP: latest commit of master branch, commit id is: d283a73f26cdf36069ef99353a072184f794e4d7 OS: macOS 10.13.2 Python: 3.5.1
I can also reproduce the issue on:
OS: Debian 8 python: 3.6.4
Hope the info above may help, thx!