Coc.nvim: フローティングウィンドウエラー:「フローティングウィンドウの作成時にエラーが発生しました:requestnvim_open_win-引数の数が間違っています」

作成日 2019年03月17日  ·  4コメント  ·  ソース: neoclide/coc.nvim

CocInfoからの結果

## versions

vim version: NVIM v0.4.0-dev
node version: v8.9.0
coc.nvim version: 0.0.60
term: iTerm.app
platform: darwin

## Error messages
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
## Output channel: watchman
[Info  - 09:45:52] watchman watching project: /Users/ctay20/code/termy-the-terminal
[Info  - 09:45:52] subscribing "**/[tj]sconfig.json" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:45:52] subscribing "**/package.json" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:45:52] subscribing "**/*.ts" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:45:52] subscribing "**/*.js" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] unsubscribe "20a54741-48d4-11e9-a9f7-9f67e0b40790" in: /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] unsubscribe "20a54740-48d4-11e9-a9f7-9f67e0b40790" in: /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] unsubscribe "2099fca0-48d4-11e9-a9f7-9f67e0b40790" in: /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] subscribing "**/[tj]sconfig.json" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] subscribing "**/package.json" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] subscribing "**/*.ts" in /Users/ctay20/code/termy-the-terminal
[Info  - 09:47:45] subscribing "**/*.js" in /Users/ctay20/code/termy-the-terminal

## Output channel: tsserver
[Info  - 09:47:45] Killing TS Server
[Info  - 09:47:45] Forking TSServer
PATH: /Users/ctay20/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.cargo/bin:/opt/X11/bin:/Users/ctay20/.cargo/bin:/Users/ctay20/.cargo/bin 
[Info  - 09:47:45] TSServer normal exit
[Info  - 09:47:45] TSServer log file: 
[Info  - 09:47:45] Started TSServer
{
  "path": "/Users/ctay20/code/termy-the-terminal/node_modules/typescript/lib",
  "_api": {
    "versionString": "3.3.3",
    "version": "3.3.3"
  }
}

バグを説明する
新しいフローティングウィンドウ機能に関連しているように見えるデフォルトのCoc機能の使用中にエラーが発生しました

再現するには
動作を再現する手順:

  1. neovimのマスターブランチをダウンロードする
  2. 最新のcoc.nvimをインストールします
  3. フローティングウィンドウのサポートが有効になっていることを確認しますecho exists('##MenuPopupChanged') && exists('*nvim_open_win')は1を返す必要があります
  4. .tsファイルを開き、オートコンプリートを実行しようとするとエラー[vim-node-coc]: error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5が表示されます

スクリーンショット
image

最も参考になるコメント

@ ctaylo21これは、修正がまだ公式バージョンでリリースされていないためです。 nvim/init.vimを変更することで、最新のコードをインストールできます。

Plug 'neoclide/coc.nvim', { 'do': 'yarn install' }

全てのコメント4件

cocを更新します。修正されました。

@iamccoああ、そうです、 https://github.com/neoclide/coc.nvim/issues/539はそれを修正することを目的としていたようです。 ただし、まだエラーが表示されます。 coc.nvimのインストールを最新のものに更新し(git履歴で上記のコミットを参照することを含む)、 :CocUpdateを実行しました。 他に何をする必要がありますか?

@ ctaylo21これは、修正がまだ公式バージョンでリリースされていないためです。 nvim/init.vimを変更することで、最新のコードをインストールできます。

Plug 'neoclide/coc.nvim', { 'do': 'yarn install' }

最後に、 yarn installバージョンの実行が機能したことを検証する機会がありました。 ありがとう!

このページは役に立ちましたか?
0 / 5 - 0 評価