Comments (13)
Deoplete only delays completions, it never blocks input. If you have jedi-vim
installed, you will need: let g:jedi#completions_enabled = 0
from deoplete-jedi.
@tweekmonster Yes, I have jedi-vim installed and yes I already have let g:jedi#completions_enabled = 0
from deoplete-jedi.
@tweekmonster Okay, I can't reproduce this behavior. I'll reopen the issue if this would happen again.
from deoplete-jedi.
@purpleP You can try clearing the cache in ~/.cache/deoplete/jedi
to see if the issue happens again.
from deoplete-jedi.
@tweekmonster Yeah, as I've said it only happens when there's no cache (more precisely I think when I open project for the first time). So I've already found ~/.cache/deoplete
and ~/.cache/jedi
and have been removing them on each try. It really looks like there is some hidden cache somewhere. Like maybe jedi process runs somewhere independently and stores it in memory or something.
from deoplete-jedi.
Sounds like jedi-vim's g:jedi#smart_auto_mappings
https://github.com/davidhalter/jedi-vim/blob/ef05bc402a5698ec3a33f8cfde645a38ccc1211c/ftplugin/python/jedi.vim#L40-L42.
It is not affected by the g:jedi#completions_enabled = 0
switch AFAIK?! - but maybe should be?!
from deoplete-jedi.
Sounds like jedi-vim's https://github.com/davidhalter/jedi-vim/blob/ef05bc402a5698ec3a33f8cfde645a38ccc1211c/ftplugin/python/jedi.vim#L40-L42.
It is not affected by the g:jedi#completions_enabled = 0 switch AFAIK?! - but maybe should be?!
I was just looking into this before you posted, but I got confused because I'm using the default settings. It turns out my insert <space>
map is used by the auto-pairs
plugin so I wasn't affected.
It looks like this is the culprit.
Replying to @purpleP in case let g:jedi#smart_auto_mappings = 0
doesn't work:
Like maybe jedi process runs somewhere independently and stores it in memory or something.
The only cache that exists for deoplete-jedi is in ~/.cache/deoplete/jedi
and it's a cache that's incompatible with Jedi's. deoplete-jedi disables Jedi's cache entirely and the completion server isn't forked, so it won't survive if the parent process dies. I don't think the Jedi module factors into this. You're restarting nvim after clearing the disk cache, right?
It's technically impossible for deoplete-jedi to block keyboard input in the nvim process. The only way for it to block would be to call out to a Vim function from Python and deoplete-jedi doesn't do that.
from deoplete-jedi.
@blueyed @tweekmonster Okay, because of my previous fiddling with jedi-vim I know what was the problem. I've defined jedi setttings like g:jedi#completions_enabled
in my after/python.vim
and I don't know why, but neovim (and vim probably too) loads jedi first and my settings later. I moved settings to vimrc and everything works smoothly now. Why is vim doing this?
from deoplete-jedi.
@purpleP
I think after/python.vim
should be after/ftplugin/python.vim
, or after/plugin/my-python.vim
to have a global plugin. Try adding echoerr "foo"
in there (after/python.vim
), it is probably never sourced?!
from deoplete-jedi.
@blueyed Yes, sorry, I meant after/ftplugin/python.vim
. It is sourced.
from deoplete-jedi.
@purpleP
It it probably to late there, since jedi-vim the setup already?!
from deoplete-jedi.
@blueyed well, obviously, but why Jedi sourced before my settings?
from deoplete-jedi.
ftplugin
is handled when the filetype is handled (on-demand).
And even with after/plugin/
you are doing your stuff explicitly _after_wards.. ;)
from deoplete-jedi.
Related Issues (20)
- Python completion sometimes produce noise HOT 2
- deoplete-jedi fails to load on vim + pynvim 0.4.0 HOT 6
- Deoplete-jedi causes vim to crash when editing a specific file HOT 4
- Option to disable/remove advanced/private members like __init__() HOT 1
- Add call signatures HOT 1
- broken with pandas completion HOT 10
- long stacktraces when completing docstring HOT 16
- no module named 'deoplete.base' HOT 3
- Deoplete throws error between two strings HOT 6
- Should `which pyenv` return a shell function in Fish? HOT 3
- Latest version of jedi crash on Windows HOT 8
- Changing the kind/type of completion-matches HOT 8
- Dont add parameter-information to functions HOT 6
- PosixPath object has not attribute 'endswidth' HOT 1
- Error from jedi: __init__() got an unexpected keyword argument 'code' HOT 4
- How I can turn off preview windows HOT 1
- deoplete-jedi crashes when trying to complete pandas DataFrame attributes HOT 3
- How to set autocomplete key to TAB? HOT 5
- Preview window doesn't show method signature HOT 5
- python versions for virtualenv HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deoplete-jedi.