Git Product home page Git Product logo

Comments (10)

Shougo avatar Shougo commented on June 1, 2024 1

I have removed equal module. Please update to the latest.

from ddc-source-lsp.

Shougo avatar Shougo commented on June 1, 2024

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.

Shougo avatar Shougo commented on June 1, 2024

スクリーンショット_2021-11-13_08-31-26

from ddc-source-lsp.

Shougo avatar Shougo commented on June 1, 2024

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.

phgz avatar phgz commented on June 1, 2024

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.

phgz avatar phgz commented on June 1, 2024

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.

Shougo avatar Shougo commented on June 1, 2024

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.

Shougo avatar Shougo commented on June 1, 2024

It works for me.

import {
  add,
} from 'https://x.nest.land/[email protected]/mod.ts'

console.log(add(1, 2));

from ddc-source-lsp.

Shougo avatar Shougo commented on June 1, 2024

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.

Shougo avatar Shougo commented on June 1, 2024

And why I use equal module instead. Please read this.

#13

from ddc-source-lsp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.