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

fix(ci): fix tests using old nvim api #333

Merged

Conversation

pysan3
Copy link
Contributor

@pysan3 pysan3 commented Feb 14, 2024

vim.api.nvim_win_get_config used to return a dict of numbers to represent a vim float number for row and col fields. This behavior was fixed in neovim/neovim#27284 as a breaking change to the old API without any notice. Now user can refer to the value of config.row without indexing like config.row[vim.val_idx].

This is the reason why tests are failing in #332.

`vim.api.nvim_win_get_config` used to return a dict of numbers to
represent a vim float number for `row` and `col` fields.
This behavior was fixed in neovim/neovim#27284
as a **breaking change** to the old API without any notice.
Now user can refer to the value of `config.row` without indexing
like `config.row[vim.val_idx]`.
@pysan3
Copy link
Contributor Author

pysan3 commented Feb 14, 2024

Haha, devs are soo bad at writing docs lol.

image

This is the only mention in the docs referring to this breaking change.

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (35da9ca) 99.04% compared to head (9f7c5ff) 99.04%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #333   +/-   ##
=======================================
  Coverage   99.04%   99.04%           
=======================================
  Files          20       20           
  Lines        2725     2725           
=======================================
  Hits         2699     2699           
  Misses         26       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MunifTanjim MunifTanjim merged commit e561ac5 into MunifTanjim:main Feb 15, 2024
6 checks passed
@MunifTanjim
Copy link
Owner

Thanks for looking into it 🙌🏼

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

Successfully merging this pull request may close these issues.

2 participants