vim-denops / denops.vim

🐜 An ecosystem of Vim/Neovim which allows developers to write cross-platform plugins in Deno
https://vim-denops.github.io/denops-documentation/
MIT License
662 stars 33 forks source link

Error when starting Skkeleton #372

Closed uhooi closed 1 month ago

uhooi commented 1 month ago

Describe the bug

When Neovim starts:

[denops]     at file:///Users/uhooi/.local/share/nvim/lazy/skkeleton/denops/skkeleton/deps/std/path.ts:1:15

When Skkeleton starts:

Error invoking 'invoke' on channel 4 (denops):
TypeError: this[#denops].dispatcher[fn] is not a function
    at Plugin.call (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:176:45)
    at Service.#dispatch (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:88:25)
    at Service.dispatch (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:93:34)
    at invoke (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/host.ts:78:22)
    at Object.invoke (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/host/nvim.ts:31:16)
    at dispatch (https://deno.land/x/messagepack_rpc@v2.0.3/dispatcher.ts:36:36)
    at Session.#dispatch (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:244:28)
    at Session.#handleRequestMessage (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:271:53)
    at Session.#handleMessage (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:255:37)
    at Object.write (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:159:63)

Provide a minimal vimrc with less than 50 lines to reproduce

' TODO

How to reproduce the problem from Vim startup

None.

Expected behavior

Skkeleton starts without error.

Actual behavior

Error when starting Skkeleton.

Screenshots (if need)

None.

Your environment

Additional context

None

lambdalisue commented 1 month ago

@uhooi Could you try https://github.com/vim-denops/denops.vim/pull/374 and rewrite the error message on PR? Additionally, please put the result of :mes

uhooi commented 1 month ago

@lambdalisue New error.

It was on toggle, not on startup :pray:

[denops] Failed to load plugin 'skkeleton': TypeError: Could not find version of '@std/path' that matches specified version constraint '0.225.2'
[denops]     at file:///Users/uhooi/.local/share/nvim/lazy/skkeleton/denops/skkeleton/deps/std/path.ts:1:15
Too many errors. Disabling Noice
Error detected while processing function skkeleton#handle[1]..skkeleton#request[2]..denops#request[1]..denops#_internal#server#chan#request[6]..denops#_intern
al#rpc#nvim#request:
line    1:
Error invoking 'invoke' on channel 4 (denops):
Error: Failed to call handle("toggle", {}, {"prevInput":"","completeInfo":{"pum_visible":0,"mode":"","selected":-1,"items":[]},"mode":"i","completeType":"nati
ve"}) in skkeleton: this[#denops].dispatcher[fn] is not a function
    at Plugin.call (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:181:13)
    at Service.#dispatch (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:88:25)
    at Service.dispatch (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/service.ts:93:34)
    at invoke (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/host.ts:78:22)
    at Object.invoke (file:///Users/uhooi/.local/share/nvim/lazy/denops.vim/denops/@denops-private/host/nvim.ts:31:16)
    at dispatch (https://deno.land/x/messagepack_rpc@v2.0.3/dispatcher.ts:36:36)
    at Session.#dispatch (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:244:28)
    at Session.#handleRequestMessage (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:271:53)
    at Session.#handleMessage (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:255:37)
    at Object.write (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:159:63)
$ git log -1
commit 4c40f7d331fc186b75e066a2cebb0073595da08b (HEAD -> improve-call-error-message, origin/improve-call-error-message)
Author: Alisue <lambdalisue@gmail.com>
Date:   Mon Jun 24 14:18:14 2024 +0900

    :+1: Improve error message of `call`

    Close #373
lambdalisue commented 1 month ago

@uhooi Not sure but it seems the reason is same with https://github.com/vim-denops/denops.vim/issues/358. Could you try :call denops#cache#update(#{reload: v:true})?

uhooi commented 1 month ago

@lambdalisue I ran the command and it fixed it. Thank you.