Shougo / ddu.vim

Dark deno-powered UI framework for Vim/Neovim
MIT License
296 stars 23 forks source link

Fails the first time it is run. #11

Closed nabezokodaikon closed 2 years ago

nabezokodaikon commented 2 years ago

Problems summary

Fails the first time it is run. However, after the second time, it succeeds.

Expected

Succeeds the first time it is run.

Environment Information

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

if &compatible
    set nocompatible
endif
let $CACHE = expand('~/.cache')
if !isdirectory(expand($CACHE))
    call mkdir(expand($CACHE), 'p')
endif
let s:dein_dir = expand('$CACHE/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
if &runtimepath !~# '/dein.vim'
    if !isdirectory(s:dein_repo_dir)
        execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
    endif
    execute 'set runtimepath^=' . s:dein_repo_dir
endif

call dein#begin(s:dein_dir, expand('<sfile>'))

call dein#load_toml('~/.config/nvim/dein/deinlazy.toml', {'lazy': 1})

call dein#end()

filetype plugin indent on
syntax enable

deinlazy.toml

# Using Deno on plugin
[[plugins]]
repo = 'vim-denops/denops.vim'
[[plugins]]
repo = 'Shougo/ddu.vim'
depends = 'denops.vim'
hook_source = '''
call ddu#custom#patch_global({
    \ 'ui': 'ff',
    \ })
'''
[[plugins]]
repo = 'Shougo/ddu-ui-ff'
on_source = 'ddu.vim'
[[plugins]]
repo = 'Shougo/ddu-source-file_rec'
on_source = 'ddu.vim'

How to reproduce the problem from neovim/Vim startup (Required!)

  1. Start Neovim.
  2. Run call dein#update() command.
  3. Restart Neovim.
  4. Run call ddu#start({'sources': [{'name': 'file_rec'}]}) command.

Screenshot (if possible)

スクリーンショット 2022-02-20 0 34 00

This error will occur even if you do not lazy load denops.vim. スクリーンショット 2022-02-20 1 03 12

Shougo commented 2 years ago

Really? It seems deonops wait API bug.

Shougo commented 2 years ago

https://github.com/vim-denops/denops.vim/pull/176 fixes the problem.

Shougo commented 2 years ago

Fixed.

nabezokodaikon commented 2 years ago

Confirmed. Thank you.