Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating window error: "error on create floating window:request nvim_open_win - Wrong number of arguments" #544

Closed
ctaylo21 opened this issue Mar 17, 2019 · 4 comments

Comments

@ctaylo21
Copy link

ctaylo21 commented Mar 17, 2019

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

@ctaylo21 ctaylo21 changed the title Floating window error Floating window error: "error on create floating window:request nvim_open_win - Wrong number of arguments" Mar 17, 2019
@iamcco
Copy link
Contributor

iamcco commented Mar 17, 2019

update coc, it's fixed.

@ctaylo21
Copy link
Author

@iamcco Ah yes, I see that #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?

@insidewhy
Copy link

@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' }

@ctaylo21
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants