kuuote / lspoints

Asynchronous LSP Gateway Plugin for denops.vim
zlib License
19 stars 6 forks source link

Cannot attach lspoints-copilot #20

Closed tani closed 1 week ago

tani commented 1 week ago

Configuration

"Steps:
"$ export NVIM_APPNAME=nvim_lspoints
"$ mkdir ~/.config/$NVIM_APPNAME
"$ git clone https://github.com/vim-denops/denops.vim/
"$ git clone https://github.com/kuuote/lspoints
"$ git clone https://github.com/4513ECHO/lspoints-copilot
"$ nvim
"
"Run :echo lspoints#get_clients()
let &rtp..=expandcmd(',<sfile>:p:h/denops.vim')
let &rtp..=expandcmd(',<sfile>:p:h/lspoints')
let &rtp..=expandcmd(',<sfile>:p:h/lspoints-copilot')
call lspoints#load_extensions(['copilot'])

Expected behavior

Neovim shows ['copilot'].

Actual behavior

Neovim showed [].

ping @4513ECHO @kuuote . Thanks

Shougo commented 1 week ago

Attach is not included in your instruction.

Shougo commented 1 week ago
set rtp+=~/work/denops.vim
set rtp+=~/src/lspoints
set rtp+=~/src/lspoints-copilot

It just works. :Copilot command is defined. What is the problem?

Shougo commented 1 week ago

Hm... load_extension() is needed. (The command is defined though)

If I remove it:

2024-10-25_17-53

Shougo commented 1 week ago

I cannot reproduce your behavior. copilot extension is loaded and attached.

4513ECHO commented 1 week ago

What the version of Deno is old causes this issue.

tani commented 1 week ago

This issue is solved by Deno 2.0.0. Thanks!