nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
19.85k stars 23.99k forks source link

[solved] stylua: failed to install #848

Closed icoderarely closed 7 months ago

icoderarely commented 7 months ago

I just now installed kickstart nvim, and was trying to add a plugin in the ~/.config/nvim/lua/kickstart/plugins/transparent.lua with simple two lines

return {
  { "xiyaowong/transparent.nvim" },
}

when i found there was this error in the bottom image

  1. why doesnt that plugin install?
  2. why am i getting stylua error?
  3. How do we fix these
mattqgoldberg commented 7 months ago

I also had this issue, and I fixed it by installing zip. On Ubuntu:

$ sudo apt install zip

Or similar for whatever package manager you use.

icoderarely commented 7 months ago

Is this to fix my stylua error? Cause it didnt work for me. I still get stylua: failed to install

noblehelm commented 7 months ago

Try installing unzip as well, that did it for me

icoderarely commented 7 months ago

great installing unzip works for me

BeneKenobi commented 7 months ago

I got the same error. Neither installing zip nor unzip did fix it. I already installed stylua manually on my system. Still the same error on startup.

BeneKenobi commented 7 months ago

Traced it back to mason. It tries to ensure that stylua is installed (and seems to fail on my system) here: https://github.com/nvim-lua/kickstart.nvim/blob/23773900d9a2e1079a1a04d31adce5c5e901db6f/init.lua#L582.

BeneKenobi commented 7 months ago

Okay. Found the problem. :MasonLog said [...] Lockfile exists, installation is already running in another process (pid: 550). Run with :MasonInstall --force to bypass.. Installed manually with the --force flag as suggested. Fixed the error. Must have been a hiccup on inital startup.

feoh commented 7 months ago

Hi! If it's solved please close the issue :) Thanks!