Comments (12)
I can't reproduce it.
Could you reproduce this with
set NVIM_PYTHON_LOG_FILE=nvim.log
set NVIM_NCM_LOG_LEVEL=DEBUG
nvim test.js
and show the contents of the nvim.log_py3_cm_core
and nvim.log_py3_cm_sources.cm_tern
?
from nvim-completion-manager.
There's a possible cause of this issue, the <Plug>(cm_force_refresh)
is triggered before the source channel started.
On my machine, all channels start within 3 seconds. It's hard to reproduce it in this case.
So I guess there may be other causes, which is why the log files are needed.
from nvim-completion-manager.
Issue is only related to gvim.
I tried it with minimal vimrc and couldn't reproduce the issue. Then I tried removing chunks of my vimrc and found out that
set guicursor=a:blinkon0 " disable blinking
is to blame. When I have it set I need to press <Plug>(cm_force_refresh)
two times. Without it, it works as intended, even though it has small delay.
This is my minimal vimrc
call plug#begin()
Plug 'roxma/nvim-completion-manager'
if !has('nvim')
Plug 'roxma/vim-hug-neovim-rpc'
endif
Plug 'roxma/nvim-cm-tern', {'do': 'npm install'}
let g:cm_auto_popup = 0
imap <tab> <Plug>(cm_force_refresh)
set guicursor=a:blinkon0 " disable blinking
call plug#end()
Steps to reproduce:
- open blank buffer
- type fooooobaaaar
- type foooo
- type
<tab>
I have to press tab 2 times to get completions.
nvim.log_py3_cm_core:
http://pastebin.com/Mb8fzSdz
nvim.log_py3_cm_sources.cm_tern:
http://pastebin.com/kBetxuTc
from nvim-completion-manager.
Thanks! I'll look into that.
from nvim-completion-manager.
It seems there's something wrong with vim's timer according to the log files, I switch to python implementation for the timer.
Update both plugin, NCM and ncm-tern, and check whether the issue is still happening.
If it's still happening, I'll still need the log files.
from nvim-completion-manager.
It's happening in a buffer without ft set also. Issue is not exclusively related to tern source. I updated plugins and it's still happening.
Log file:
nvim.log_py3_cm_core
http://pastebin.com/J57apttu
from nvim-completion-manager.
I get this reproduced.
The popup menu is displayed after seconds, or 10+ seconds. But according to the log file, the complete process is finished in 1 seond. I believe this is a vim issue.
I also noticed that if I touch <ctrl>
after I press <Plug>(cm_force_refresh)
, the menu will be displayed.
from nvim-completion-manager.
Oh I got a workaround, just put this into your vimrc:
func g:Foo(...)
" do nothing
endfunc
call timer_start(100,function('g:Foo'),{'repeat':-1})
I guess this somehow activates vim's timer, and then the screen gets updated.
from nvim-completion-manager.
This may also be related to the ncm-tern slow issue you reported on roxma/nvim-cm-tern#2
from nvim-completion-manager.
Thank you! The workaround solves my issue.
As for tern issue, completions are still slow. I get buffer completions instantly and then after a second or two tern completions. I get the same delay with both automatic and manual completion.
from nvim-completion-manager.
I encountered similar issue in ALE and Neomake and I would like to report issue directly to Vim. But I struggle with producing minimal reproducible case. Is this issue connected with job_start function?
from nvim-completion-manager.
This issue is related to timer and vim's rpc somehow.
If there's no timer started, the display of popup menu get significantly delayed.
from nvim-completion-manager.
Related Issues (20)
- Quick question: Using tab to expand whatever is selected in popup menu
- Add support for .tex // Doesn't work for snippets in .tex files HOT 3
- does not autocomplete with some tags
- [Question] Is there somewhere a list of sources defined? HOT 8
- COBOL support HOT 1
- UltiSnips in VISUAL
- Don't show autocompletion popup after navigation keystrokes HOT 20
- how to directly autocompletion when I typed <cr> HOT 1
- Support โsmartโ filtering of autocomplete suggestons HOT 1
- Overwriting priority for a built-in completer HOT 2
- get โnvim-completion-manager core channel terminated.โ everytime i edit a file in terminal env. HOT 7
- c key switches straight into insert mode HOT 3
- very high CPU rate HOT 3
- Disable a source when another is active HOT 2
- Completion not working anymore when using cquery
- Parameter expansion with ultisnips disables semantic clang completion
- How to customize python path for jedi complemention? HOT 1
- Completion shows part of the snippet HOT 1
- Word pattern for "Word from current buffer"
- Error in logger on startup HOT 8
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 nvim-completion-manager.