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

bug: Got unexpected error while installing LazyVim on WSL #3072

Closed
3 tasks done
BennisonDevadoss opened this issue Apr 28, 2024 · 4 comments
Closed
3 tasks done

bug: Got unexpected error while installing LazyVim on WSL #3072

BennisonDevadoss opened this issue Apr 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@BennisonDevadoss
Copy link

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.5

Operating system/version

WSL ubuntu 22

Describe the bug

I am new to LazyVim and Lua, While setting up the Lazzy Vim on my WSL I got the exception. It seems this issue is related to Lua, but I am not sure.

Here I have attached the exception snapshot for reference.
image
image

Could anyone help me to resolve this problem?

Steps To Reproduce

Need to follow the installation step.

  1. mv ~/.config/nvim{,.bak}
  2. mv ~/.local/share/nvim{,.bak}
  3. mv ~/.local/state/nvim{,.bak}
  4. mv ~/.cache/nvim{,.bak}
  5. git clone https://github.com/LazyVim/starter ~/.config/nvim
  6. rm -rf ~/.config/nvim/.git
  7. nvim

Expected Behavior

Should run without error, as expected.

Repro

No response

@BennisonDevadoss BennisonDevadoss added the bug Something isn't working label Apr 28, 2024
@dpetka2001
Copy link
Contributor

dpetka2001 commented Apr 28, 2024

This seems to be similar to folke/lazy.nvim#1025. It's not a LazyVim bug. Try to set in your git config autocrlf = false.

@BennisonDevadoss
Copy link
Author

@dpetka2001. Even I tried LazyVim installation after change some git configs to git config --global core.autocrlf true. I got the same problem.

@dpetka2001
Copy link
Contributor

dpetka2001 commented Apr 28, 2024

autocrlf should be set to false not true. This is not a LazyVim bug. This is a problem with Neovim itself. Just don't set this git global to true. Or set it to false temporarily to download and install LazyVim and then set it back to true again. But whenever you want to install or update plugins it should be set to false. The issue that I linked has detailed information about this problem.

PS: Set autocrlf to false, delete ~/.local/share/nvim and restart Neovim to install everything from scratch.

@BennisonDevadoss
Copy link
Author

@dpetka2001 , Thanks for your help, now I have installed it successfully.

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants