vuki656/package-info.nvim

[BUG] Error when installing packages

Iamafnan opened this issue · 2 comments

Issues

  • I have checked existing issues and there are no issues with the same problem.

Plugin Version

  • I am using the latest version of the plugin

Neovim Version

  • I am using the 0.5 neovim version

Neovim Version

NVIM 0.7.0-dev

Branch

master

Actual behavior

It gives this error after then new nui.nvim update
IMG_20211230_081406

Expected behavior

It will open the nui component

Steps to reproduce

  • Update nui.nvim
  • Try installing any package

Package info config

require('package-info').setup{ package_manager = "yarn" }

Other information

It occurs after the nui.nvim update maybe nui's API is now changed

Help

Yes

Implementation help

I would help in the nui's issue and the yarn v1 support after this nui's issue

It seems to be an upstream issue so I opened an issue in NUI repo to track it.

As for yarn 1 support, I plan to implement it myself in a few days since I'm not home at the moment. Feel free to send a PR if you'd like to have it sooner.

What needs to be done in a nutshell is

  1. Detect yarn 1 or 2> here and add another package manager type here yarn1 and yarn2, not sure on the naming yet, we just need to distinguish between yarn 1 and yarn 2>
  2. Add another check here to use a corresponding command.

Fixed in NUI