Coc.nvim: Floating window error: "error on create floating window:request nvim_open_win - Wrong number of arguments"

Created on 17 Mar 2019  ·  4Comments  ·  Source: neoclide/coc.nvim

Result from 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"
  }
}

Describe the bug
Error using default Coc functionality that appears to be related to new floating window feature

To Reproduce
Steps to reproduce the behavior:

  1. Download master branch of neovim
  2. Install latest coc.nvim
  3. Ensure floating window support is enabled echo exists('##MenuPopupChanged') && exists('*nvim_open_win') should return 1
  4. Open .ts file and see error [vim-node-coc]: error on create floating window:request nvim_open_win - Wrong number of arguments: expecting 3 but got 5 when autocomplete tries to occur

Screenshots
image

Most helpful comment

@ctaylo21 That's because the fix hasn't been released in an official version yet, you can install the latest code by changing your nvim/init.vim:

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

All 4 comments

update coc, it's fixed.

@iamcco Ah yes, I see that https://github.com/neoclide/coc.nvim/issues/539 was intended to fix it. I still see the error, however. I have updated my coc.nvim installation to the latest (including see the above commit in the git history), and I've ran :CocUpdate. What else do I need to do?

@ctaylo21 That's because the fix hasn't been released in an official version yet, you can install the latest code by changing your nvim/init.vim:

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

Finally had a chance to validate that doing the yarn install version worked. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chemzqm picture chemzqm  ·  3Comments

cvlmtg picture cvlmtg  ·  3Comments

lanox picture lanox  ·  3Comments

zhou13 picture zhou13  ·  3Comments

andys8 picture andys8  ·  3Comments