Closed atfoc closed 6 years ago
I think I found the problem. It wasn't a problem with jediHttp but something with jedi and pyqt module. All I did was capture exception in function _FormatCompletions and this way it works, or at least I think so I don't know why exceptions where happening but this made autocomplite work
I changed _FormatCompletions to this
def _FormatCompletions( completions ):
#return {
# 'completions': [ {
# 'module_path': completion.module_path,
# 'name': completion.name,
# 'type': completion.type,
# 'line': completion.line,
# 'column': completion.column,
# 'docstring': completion.docstring(),
# 'description': completion.description,
# } for completion in completions ]
#}
res = {}
arr = []
for completion in completions:
try:
arr.append({
'module_path': completion.module_path,
'name': completion.name,
'type': completion.type,
'line': completion.line,
'column': completion.column,
'docstring': completion.docstring(),
'description': completion.description,
})
except Exception:
continue
res["completions"] = arr
return res
I hope this is ok :)
This is fixed in the latest version of Jedi, which is going to be released soon. Note that we are probably going to drop JediHTTP and use directly Jedi in ycmd with that release.
Here is my python code:
now when I try to trigger autocomplite nothing happens. So I decided to check jediHttp logs and this is what I found:
So I was wondering is this something easy to fix Thanks in an advance