-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Segfaults with completion of tensorflow #718
Comments
Sounds like a Jedi issue maybe. import jedi
script = """
…
"""
script = jedi.Script(script, lineno, colnr)
print(script.completions()) @davidhalter |
Thank you very much for your help. I have tried as you suggested:
and it does not crash, it gives the completions:
I have also tried with minimal vimrc and it still segfaults. vimrc
Jedi-vim debug informationUsing Python version: 3
Settings
:version
:messages
:scriptnames
|
Are you using python-tensorflow on Arch, or how did you install it? |
I am using "python-tensorflow-cuda" v. 1.1.0-4 from the community repository. Neovim works, it does not crash, it shows the list of completions as it is supposed to. Jedi-vim debug information (for neovim)Using Python version: 3
Settings
:version
:messages
:scriptnames
|
This is probably not fixable until davidhalter/jedi#385 has been at least partially completed. I'm almost there and I think from then on that will not be an issue anymore. |
The segfaults should be gone, because of the subprocess that this runs in now. Let me know if it still happens. |
Issue
When trying to autocomplete tensorflow, vim often crashes with a segfault. I have found an example that reproduces this consistently.
I am using jedi-vim from git (same result with latest stable release 0.8.0) on Arch linux.
Steps to reproduce
Save the following to a file
Press ctrl+space with the cursor after the "pre("
Vim should crash with a segfault.
Output of “:verbose JediDebugInfo”
Jedi-vim debug information
Using Python version: 3
3.6.1 (default, Mar 27 2017, 00:27:06), [GCC 6.3.1 20170306]
/usr/lib/python3.6/site.py
Jedi path:
/home/peter/.vim/bundle/jedi-vim/jedi/jedi/__init__.py
/home/peter/.vim/bundle/jedi-vim
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/home/peter/.local/lib/python3.6/site-packages
/home/peter/kodesjov/parmesan
/home/peter/.local/lib/python3.6/site-packages/pyrfr-0.4.0-py3.6-linux-x86_64.egg
/usr/lib/python3.6/site-packages
_vim_path_
Settings
:version
:messages
:scriptnames
The text was updated successfully, but these errors were encountered: