jedi icon indicating copy to clipboard operation
jedi copied to clipboard

how jedi get auto completions from a module

Open zhwesky2010 opened this issue 2 years ago • 1 comments

I want to know how jedi get auto completions from a python module.

when I run first:

infoflow 2022-04-08 12-38-40

Should it run import paddle first? but there is not any module of paddle in sys.modules.keys(), so paddle may be import again each time and trigger an error.

but when I run seconed time:

infoflow 2022-04-08 12-39-26

An error has occurred, I think that it's because of the auto completions mechanism bug of jedi. Does anyone have an opinion on that?

related to https://github.com/davidhalter/jedi/issues/1849

zhwesky2010 avatar Apr 08 '22 04:04 zhwesky2010

I feel like Jedi doesn't do very weird stuff. AFAIK it uses __import__. My feeling is that this is a paddle issue.

davidhalter avatar Apr 08 '22 13:04 davidhalter

I do not think Jedi is doing very weird things here. I have also no idea how to debug this. Please let me know if I can help with debugging something, but for now I'll close.

davidhalter avatar Nov 11 '22 17:11 davidhalter