Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified jedi version to autocomplete Gtk #832

Closed
wants to merge 1 commit into from

Conversation

albfan
Copy link

@albfan albfan commented Jun 14, 2018

This is just a quick implementation to allow vim to autocomplete GObject introspection

But adding import gi to pythonx code for this plugin, leads to:

"meld/filediff.py" 2020L, 84352C
Please install Jedi if you want to use jedi-vim.
The error was: /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromFormat
Please install Jedi if you want to use jedi-vim.
The error was: /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromFormat

Maybe I can fix this with pythonthreedll I'm really not sure

If it helps, here is JediDebugInfo

:JediDebugInfo
#### Jedi-vim debug information
Using Python version: 3
 - global sys.version: `3.6.5 (default, May 11 2018, 04:00:52), [GCC 8.1.0]`
 - global site module: `/usr/lib/python3.6/site.py`
ERROR: could not import the "jedi" Python module.
       The error was: /usr/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromFormat
 - jedi-vim git version: 0.9.0-22-geaecae4
 - jedi git submodule status:  370dcdbf9a618f77cfde7098bcbe88193269302b pythonx/jedi (v0.12.0-1-g370dcdbf)
 6f385bdba182059e0c46917a414981a6d0894527 pythonx/parso (v0.2.1)

##### Settings
``
g:jedi#force_py_version = 3 (default: 'auto')

  omnifunc=jedi#completions
        Se definió por última vez en ~/.vim/bundle/jedi-vim/autoload/jedi.vim
  completeopt=menuone,longest,preview
        Se definió por última vez en ~/.vim/bundle/jedi-vim/plugin/jedi.vim
``

@davidhalter
Copy link
Owner

This is definitely not happening. If you want jedi-vim to work properly with jedi, get the commits merged in Jedi.

@albfan
Copy link
Author

albfan commented Jun 15, 2018

About 0.12 you mean, or what?

@davidhalter
Copy link
Owner

Look, you're trying to change ownership of Jedi to you. The only way this makes sense is if you are going to maintain Jedi for the next few years. But I doubt that and therefore you should probably just try to work on a pull request in Jedi itself.

@albfan
Copy link
Author

albfan commented Jun 15, 2018

Oh no, just sending a PR which needs to tweak jedi, so I change that in a fork and link to it.

How am I supposed to show you the problem vim has with a jedi-vim plugin that uses a jedi implementation which dinamically loads GObject introspection?

@davidhalter
Copy link
Owner

Look, you can do everything with stuff like jedi.Script('import x; x.').completions(). That is also way easier for me to reproduce. Your problem is not with jedi-vim. It has nothing to do with that.

@albfan
Copy link
Author

albfan commented Jun 17, 2018

Ok I will ask on vim for that error.

The final purpose of this PR is to get progress on davidhalter/jedi#531 so jedi-vim autocompletes on gi.repository without do anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants