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

Doesn't work with ddc.vim anymore #61

Open
dotdash opened this issue Apr 2, 2024 · 0 comments
Open

Doesn't work with ddc.vim anymore #61

dotdash opened this issue Apr 2, 2024 · 0 comments

Comments

@dotdash
Copy link

dotdash commented Apr 2, 2024

The configuration syntax in the readme file seems to be outdated, and after changing it to:

call ddc#custom#patch_filetype(['sql', 'mysql', 'plsql'], #{ sources: ['dadbod-completion']})
call ddc#custom#patch_filetype(['sql', 'mysql', 'plsql'], #{
      \   sourceOptions: #{
      \     dadbod-completion: #{
      \       mark: 'DB',
      \       isVolatile: v:true,
      \     },
      \   },
      \ })

I get the following errors:

[ddc] 'source is too old: "dadbod-completion"'                                                                                                                                                                       
[ddc] 'source: dadbod-completion "gather()" failed'                                                                                                                                                                  
[ddc] 'source.gather is not a function'                                                                                                                                                                              
[ddc] 'TypeError: source.gather is not a function
    at callSourceGather (file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:1336:34)
    at file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:314:30
    at eventLoopTick (ext:core/01_core.js:169:7)
    at async Promise.all (index 0)
    at async Ddc.gatherResults (file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:242:16)
    at async Ddc.doCompletion (file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:580:34)
    at async _onEvent (file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/app.ts:310:5)
    at async file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/app.ts:204:11
    at async Lock.lock (https://deno.land/x/[email protected]/lock.ts:51:14)
    at async Object.onEvent (file:///home/xxx/.vim/plugged/ddc.vim/denops/ddc/app.ts:200:7)'
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

No branches or pull requests

1 participant