Comments (10)
I have removed equal
module. Please update to the latest.
from ddc-source-lsp.
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/[email protected]/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.
from ddc-source-lsp.
from ddc-source-lsp.
The minimal vimrc does not means your ddc configuration part.
It must be executed by nvim -u minimal.vimrc
.
We have not ESP skills.
from ddc-source-lsp.
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/[email protected]/mod.ts): error trying to connect: invalid certificate: UnknownIssuer
[denops] at https://deno.land/x/[email protected]/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/[email protected]/session.ts:99:12)
[denops] at async https://deno.land/x/[email protected]/session.ts:108:18
[denops] at async Session.handleRequest (https://deno.land/x/[email protected]/session.ts:104:29)
[denops] at Session.call (https://deno.land/x/[email protected]/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/[email protected]/session.ts:99:12)
[denops] at async Session.handleNotification (https://deno.land/x/[email protected]/session.ts:130:7)
It was produced with your minimal vimrc
(I updated nvim
and deno
to latest).
from ddc-source-lsp.
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/[email protected]/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.
from ddc-source-lsp.
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.
from ddc-source-lsp.
It works for me.
import {
add,
} from 'https://x.nest.land/[email protected]/mod.ts'
console.log(add(1, 2));
from ddc-source-lsp.
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
from ddc-source-lsp.
And why I use equal
module instead. Please read this.
from ddc-source-lsp.
Related Issues (19)
- Error after line break HOT 1
- Enhancement: Added icons for candidates HOT 1
- lsp completions not appearing HOT 10
- The source becomes slow in non-lsp buffer HOT 8
- [Question] CSS LSP input. HOT 11
- [Question] What is the `$ 0` entered when completing CSS? HOT 8
- Candidates not shown (from gopls) HOT 3
- Not working on Typescript file. HOT 6
- Showing errors with using efm-langserver HOT 2
- Question about usage HOT 3
- Using built-in terminal breaks lsp server HOT 2
- Last typed word remain as completion matcher even after deleting it HOT 2
- nvim-lsp "gather()" failed HOT 3
- inserted text disappear when snippetSupport is enabled HOT 2
- Completion does not work well in recent commits when capabilities.textDocument.completion.completionItem.snippetSupport = true (and no snippet plugins are used?) HOT 6
- Rename to `ddc-source-lsp` HOT 1
- Display signature info in menu HOT 2
- `yegappan/lsp` support HOT 4
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 ddc-source-lsp.