How to make JEDI recognize a Python C extension

203 Views Asked by At

I am currently developing a Python module in C, and I cannot figure out how to make JEDI "see" my module.

I have set all docstrings in the C code and set every field in my setup.py, but when I edit the example.py file I use for testing and try to display documentation in vim using Shift+K, I get an error saying:

Exception, this shouldn't happen.

Traceback (most recent call last):

File "/home/beben/.vim/bundle/jedi-vim/jedi_vim.py", line 268, in show_documentation

definitions = script.goto_definitions()

File "/home/beben/.vim/bundle/jedi-vim/jedi/jedi/api/init.py", line 365, in goto_definitions

names = [s.name for s in definitions] AttributeError: 'NoneType' object has no attribute 'name'

No documentation found for that.

After reading jedi's documentation, I understand that it uses Pydoc to gather information on the module. When I run Pydoc mymodule, the documentation is correctly displayed.

Is there something more that I need to add to my code to be recognized by JEDI?

0

There are 0 best solutions below