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

Error on create float window #539

Closed
kozer opened this issue Mar 17, 2019 · 5 comments
Closed

Error on create float window #539

kozer opened this issue Mar 17, 2019 · 5 comments

Comments

@kozer
Copy link

kozer commented Mar 17, 2019

I build neovim from source (distro: arch, using aur package neovim-git),
and when in logs I get the following error:

2019-03-17T13:02:40.846 ERROR (pid:15685) [model-float] - Error on create float window: Error: request nvim_open_win - Wrong number of arguments: expecting 3 but got 5
    at transport.request (/home/kozer/.config/nvim/plugged/coc.nvim/node_modules/@chemzqm/neovim/lib/api/Base.js:33:28)
    at Transport.parseMessage (/home/kozer/.config/nvim/plugged/coc.nvim/node_modules/@chemzqm/neovim/lib/utils/transport.js:137:17)
    at DecodeStream.Transport.decodeStream.on (/home/kozer/.config/nvim/plugged/coc.nvim/node_modules/@chemzqm/neovim/lib/utils/transport.js:43:18)
    at emitOne (events.js:116:13)
    at DecodeStream.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at DecodeStream.Readable.push (_stream_readable.js:208:10)
    at DecodeStream.Transform.push (_stream_transform.js:147:32)
    at DecodeBuffer.DecodeStream.decoder.push (/home/kozer/.config/nvim/plugged/coc.nvim/node_modules/msgpack-lite/lib/decode-stream.js:24:12)

node version: 8.14.1

@chemzqm
Copy link
Member

chemzqm commented Mar 17, 2019

Your neovim have incompatible API with current neovim master.
nvim_open_win() should require 5 params.

@kozer
Copy link
Author

kozer commented Mar 17, 2019

Shouldn't I build from master?
Running git describe --long I get the following:

warning: tag 'v0.3.4' is really 'stable' here
v0.3.4-413-g9ef8d0d6b

Do I miss something here?

@kozer kozer closed this as completed Mar 17, 2019
@kozer kozer reopened this Mar 17, 2019
@kozer
Copy link
Author

kozer commented Mar 17, 2019

neovim/neovim@9ef8d0d
This one seems to change some things, by passing width and height as an option

@chemzqm
Copy link
Member

chemzqm commented Mar 17, 2019

Get it, the api changed.

@kozer
Copy link
Author

kozer commented Mar 17, 2019

This should fix it
#543

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

No branches or pull requests

2 participants