Closed phgz closed 2 years ago
It works for me.
Your neovim and deno are not latest. Please update it.
nvim-lspconfig
must be the latest.
The error is [denops] at async Session.handleNotification (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:130:7)
Why don't you execute :mes
to print full messages?
And you have not uploaded real minimal vimrc. Note: The statusline is customed in your screenshot.
My vimrc is:
if &compatible
set nocompatible
endif
set runtimepath^=~/work/ddc.vim
set runtimepath^=~/work/denops.vim
set runtimepath^=~/work/ddc-matcher_head
set runtimepath^=~/work/ddc-sorter_rank
set runtimepath^=~/work/ddc-around
if has('nvim')
set runtimepath+=~/src/nvim-lspconfig
set runtimepath^=~/work/ddc-nvim-lsp
lua << EOF
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = false,
underline = true,
signs = true,
update_in_insert = true
})
require'lspconfig'.pyright.setup{}
EOF
endif
set completeopt=menuone,noinsert
filetype plugin indent on
syntax enable
call ddc#custom#patch_global('sources', ['nvim-lsp'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': { 'matchers': ['matcher_head'] },
\ 'nvim-lsp': {
\ 'mark': 'lsp',
\ 'forceCompletionPattern': '\.\w*|:\w*|->\w*' },
\ })
call ddc#custom#patch_global('sourceParams', {
\ 'nvim-lsp': { 'kindLabels': { 'Class': 'c' } },
\ })
call ddc#enable()
Closing.
The minimal vimrc does not means your ddc configuration part.
It must be executed by nvim -u minimal.vimrc
.
We have not ESP skills.
Hi!
I was not aware of the :mes
command, very helpful, thank you!
As for the complete error, there it is:
[denops] Error: Failed to call 'onEvent' with ["InsertEnter"]: TypeError: error sending request for url (https://x.nest.land/arithmetic4@0.1.1/mod.ts): error trying to connect: invalid certificate: UnknownIssuer
[denops] at https://deno.land/x/fonction@v1.8.0-beta.7/deps.ts:8:8
[denops] at async Ddc.autoload (file:///home/philip/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:195:11)
[denops] at async Ddc.checkInvalid (file:///home/philip/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:226:5)
[denops] at async Ddc.onEvent (file:///home/philip/.vim/plugged/ddc.vim/denops/ddc/ddc.ts:280:5)
[denops] at async Session.onEvent (file:///home/philip/.vim/plugged/ddc.vim/denops/ddc/app.ts:111:7)
[denops] at async Session.dispatch (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:99:12)
[denops] at async https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:108:18
[denops] at async Session.handleRequest (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:104:29)
[denops] at Session.call (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:207:13)
[denops] at async Service.dispatch (file:///home/philip/.vim/plugged/denops.vim/denops/@denops-private/service.ts:101:14)
[denops] at async Session.invoke (file:///home/philip/.vim/plugged/denops.vim/denops/@denops-private/host/nvim.ts:48:16)
[denops] at async Session.dispatch (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:99:12)
[denops] at async Session.handleNotification (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:130:7)
It was produced with your minimal vimrc
(I updated nvim
and deno
to latest).
I checked about the error, and it says it might be because of a proxy server issue, but I can use DDC correctly with other sources like treesitter
or around
.
Also, if I execute deno run https://deno.land/std/examples/welcome.ts
, I get:
Download https://deno.land/std/examples/welcome.ts
Warning Implicitly using latest version (0.114.0) for https://deno.land/std/examples/welcome.ts
Download https://deno.land/std@0.114.0/examples/welcome.ts
Check https://deno.land/std/examples/welcome.ts
Welcome to Deno!
Output of deno --version
:
deno --version
deno 1.16.1 (release, x86_64-unknown-linux-gnu)
v8 9.7.106.2
typescript 4.4.2
I'm not an expert at Deno, maybe you can point me in the right direction.
It seems the server certificate problem. So it is not ddc or ddc-nvim-lsp problem. I cannot fix the problem. I have not ESP skills.
It works for me.
import {
add,
} from 'https://x.nest.land/arithmetic4@0.1.1/mod.ts'
console.log(add(1, 2));
I checked about the error, and it says it might be because of a proxy server issue, but I can use DDC correctly with other sources like treesitter or around.
Yes, because ddc-nvim-lsp source only uses equal
module.
Please see the dependency list.
equal
-> fonction
-> equal
And why I use equal
module instead. Please read this.
I have removed equal
module. Please update to the latest.
Problems summary
Getting error when trying to get completions from
nvim-lsp
(getting the same fromomni
completion source).[denops] at async Session.handleNotification (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:130:7)
Expected
Get completions.
Environment Information
ddc.vim version (SHA1):
83047c7
denops.vim version (SHA1):
228d4461
deno version(
deno -V
output): deno 1.15.3OS: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-71-generic x86_64)
neovim/Vim
:version
output:Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
denops: health#denops#check
1.14.0
1.15.3
0.5.0
0.6.0
running
lspconfig: require("lspconfig.health").check()
nvim: health#nvim#check
Configuration
Performance
Remote Plugins
terminal
tmux
nvim-treesitter: require("nvim-treesitter.health").check()
Installation
tree-sitter
found 0.20.0 (parser generator, only needed for :TSInstallFromGrammar)node
found v17.0.1 (only needed for :TSInstallFromGrammar)git
executable found.cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0Parser/Features H L F I J
provider: health#provider#check
Clipboard (optional)
Python 2 provider (optional)
import neovim
. Using the first available executable for diagnostics.Python 3 provider (optional)
Python virtualenv
Ruby provider (optional)
ruby
andgem
must be in $PATH.ruby
andgem
commands work.Node.js provider (optional)
Perl provider (optional)
sniprun: health#sniprun#check
Installation
tree-sitter
found 0.20.0 , sniprun will try to make good use of thattargets: health#targets#check
telescope: require("telescope.health").check()
Checking for required plugins
Checking external dependencies
===== Installed extensions =====
vim.lsp: require("vim.lsp.health").check()
vim.treesitter: require("vim.treesitter.health").check()
Provide a minimal init.vim/vimrc with less than 50 lines (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
def
)Screenshot (if possible)
The error is
[denops] at async Session.handleNotification (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:130:7)