skkeleton icon indicating copy to clipboard operation
skkeleton copied to clipboard

辞書登録モードでコマンドラインウィンドウを開くとエラーになる

Open willelz opened this issue 3 years ago • 2 comments

正確にはコマンドラインウィンドウを開いた後に何かしらの操作をする(エンターなど)とエラーで落ちます。

function skkeleton#handle[1]..denops#request[1]..denops#server#request[6]..<SNR>28_request の処理中にエラーが検出されました:
行    1:
Error invoking 'invoke' on channel 4:
Error: Failed to call 'handleKey' with ["<space>",{"completeInfo":{"pum_visible":0,"mode":"","selected":-1,"items":[]},"mode":"i","
isNativePum":0}]: BatchError: Vim(cunmap):E31: そのようなマッピングはありません
    at DenopsImpl.batch (file:///home/fr/dotfiles/dotConfig/nvim/denops/@denops/impl.ts:43:13)
    at async batch (https://deno.land/x/[email protected]/batch/batch.ts:89:3)
    at async jisyoTouroku (file:///home/fr/.config/nvim/denops/skkeleton/function/jisyo.ts:49:5)
    at async henkanForward (file:///home/fr/.config/nvim/denops/skkeleton/function/henkan.ts:54:9)
    at async henkanFirst (file:///home/fr/.config/nvim/denops/skkeleton/function/henkan.ts:39:3)
    at async acceptResult (file:///home/fr/.config/nvim/denops/skkeleton/function/input.ts:75:5)
    at async kanaInput (file:///home/fr/.config/nvim/denops/skkeleton/function/input.ts:100:39)
    at async handleKey (file:///home/fr/.config/nvim/denops/skkeleton/keymap.ts:64:3)
    at async handle (file:///home/fr/.config/nvim/denops/skkeleton/main.ts:203:3)
    at async Session.dispatch (https://deno.land/x/[email protected]/session.ts:99:12)
    at Session.call (https://deno.land/x/[email protected]/session.ts:207:13)
    at async Service.dispatch (file:///home/fr/dotfiles/dotConfig/nvim/denops/@denops-private/service.ts:101:14)
    at async Session.invoke (file:///home/fr/dotfiles/dotConfig/nvim/denops/@denops-private/host/nvim.ts:48:16)
    at async Session.dispatch (https://deno.land/x/[email protected]/session.ts:99:12)
    at async https://deno.land/x/[email protected]/session.ts:108:18
    at async Session.handleRequest (https://deno.land/x/[email protected]/session.ts:104:29)

再現手順

  1. 適当な文字を入力し辞書登録モードに入る
  2. Ctrl-Fでコマンドラインウィンドウに入る
  3. エンターを押す

init.vim

imap <C-j> <Plug>(skkeleton-enable)

willelz avatar May 20 '22 14:05 willelz

根本的に直すのは難しいと思いますが、エラーの抑制くらいはできないか調査してみます。

kuuote avatar May 20 '22 14:05 kuuote

マッピングについては存在をチェックしたほうがよいでしょうね

Shougo avatar May 21 '22 01:05 Shougo

I will check it.

Shougo avatar Sep 26 '22 05:09 Shougo

対応しました

Shougo avatar Sep 26 '22 10:09 Shougo