kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

I don't know what this error is

Open Zekdes opened this issue 9 months ago • 15 comments

Every time I open a file this happens

Captura de tela 2024-05-04 110613

I still can use Neovim normally, I just wandering if I did something wrong The version of my Neovim is 0.9.5

  • OS: Windows 11
  • Terminal: cmd / Powershell

Zekdes avatar May 04 '24 14:05 Zekdes

How did you install Neovim?

Which compiler do you have installed? (MS Visual Studio or gcc or ?)

I would suggest:

  • uninstall nvim
  • delete: %userprofile%\AppData\Local\nvim
  • delete: %userprofile%\AppData\Local\nvim-data
  • reinstall following the instructions "Windows with gcc/make using chocolatey" in: https://github.com/nvim-lua/kickstart.nvim?tab=readme-ov-file#windows-installation

dam9000 avatar May 04 '24 16:05 dam9000

No platform shaming please.

feoh avatar May 05 '24 20:05 feoh

How did you install Neovim?

Which compiler do you have installed? (MS Visual Studio or gcc or ?)

I would suggest:

  • uninstall nvim
  • delete: %userprofile%\AppData\Local\nvim
  • delete: %userprofile%\AppData\Local\nvim-data
  • reinstall following the instructions "Windows with gcc/make using chocolatey" in: https://github.com/nvim-lua/kickstart.nvim?tab=readme-ov-file#windows-installation

I install nvim on the official web site and the compliler that I install is GCC

Zekdes avatar May 06 '24 14:05 Zekdes

How did you install Neovim?

Which compiler do you have installed? (MS Visual Studio or gcc or ?)

I would suggest:

  • uninstall nvim
  • delete: %userprofile%\AppData\Local\nvim
  • delete: %userprofile%\AppData\Local\nvim-data
  • reinstall following the instructions "Windows with gcc/make using chocolatey" in: https://github.com/nvim-lua/kickstart.nvim?tab=readme-ov-file#windows-installation

I did what you recommend to do and the error still persist howerver, the first time I open a file this show up

Captura de tela 2024-05-06 123928

I don't know if this helps but here it is

Zekdes avatar May 06 '24 15:05 Zekdes

Do you have a C compiler installed?

feoh avatar May 06 '24 15:05 feoh

Do you have a C compiler installed?

Yes, I install gcc

Captura de tela 2024-05-06 131712

Zekdes avatar May 06 '24 16:05 Zekdes

What happens if you either:

  • install Python (choco install python)
  • OR remove python from the list of treesitter syntaxes?

feoh avatar May 09 '24 13:05 feoh

No comment from @Zekdes in a while. Will close due to inactivity in a few days.

feoh avatar May 13 '24 16:05 feoh

Do you have a C compiler installed?

Yes, I install gcc

Captura de tela 2024-05-06 131712

Still supported versions of GCC are currently 11.4, 12.3, 13.2, 14.1 and 15.0 is in development. I don't know anything about your issue, but maybe update your GCC and then do what @dam9000 suggested again.

christophermadsen avatar May 13 '24 18:05 christophermadsen

@christophermadsen hmm perhaps you are right, the choco installed mingw/gcc version is 13.2.0, so the version that @Zekdes has looks old, perhaps that's the reason for some incompatibility. Here is what choco says on my win11 for mingw/gcc:

C:\Users\vbox>choco info mingw
Chocolatey v2.2.2
mingw 13.2.0
 Title: MinGW-w64 | Published: 10/8/2023
 Package testing status: Passing on Oct 07 2023 19:13:06.
 Number of Downloads: 1113232 | Downloads for this version: 125978
 Package url https://community.chocolatey.org/packages/mingw/13.2.0
 Chocolatey Package Source: https://bitbucket.org/xoviat/chocolatey-packages
 Package Checksum: 'ORgZ1jPrbuQdltDAAO3tzkJuP8WhA9+E4uQLCltrsTbpJ/UV79rtIBtebjLusBcCMG7F1tm0GMljwOeXrtVQvg==' (SHA512)
 Tags: compiler gcc mingw mingw-w64
 Software Site: http://mingw-w64.org/
 Software License: n/a
 Summary: GCC for Windows 64 & 32 bits.
 Description: Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.

1 packages found.

C:\Users\vbox>gcc --version
gcc (x86_64-posix-seh-rev0, Built by MinGW-Builds project) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

dam9000 avatar May 13 '24 19:05 dam9000

I would also recommend scoop over chocolatey.

Unless you've got a specific setup, why not try and uninstall all the requirements of Kickstart and reinstall with scoop/chocolatey?

choco uninstall neovim git ripgrep wget fd unzip gzip mingw make
choco install -y neovim git ripgrep wget fd unzip gzip mingw make

or

choco uninstall neovim git ripgrep wget fd unzip gzip mingw make
scoop install neovim git ripgrep wget fd unzip gzip mingw make

christophermadsen avatar May 13 '24 21:05 christophermadsen

I would also recommend scoop over chocolatey.

Unless you've got a specific setup, why not try and uninstall all the requirements of Kickstart and reinstall with scoop/chocolatey?

choco uninstall neovim git ripgrep wget fd unzip gzip mingw make
choco install -y neovim git ripgrep wget fd unzip gzip mingw make

or

choco uninstall neovim git ripgrep wget fd unzip gzip mingw make
scoop install neovim git ripgrep wget fd unzip gzip mingw make

ok, so I tried to do what you said to me and then use 'gcc -version' to see if works and this show up

Captura de tela 2024-05-13 211422

so now my current theory is that I have two versions of gcc in my computer and in case anyone is wondering if I install correctly, here is the proof

Captura de tela 2024-05-13 212005

Zekdes avatar May 14 '24 00:05 Zekdes

That has to be it, find the old gcc version and uninstall it. Any idea how you installed it?

dam9000 avatar May 14 '24 01:05 dam9000

So, I went in to the file explore to see if my theory was correct, and it was there was two versions of MinGW, one was in the program data with the version 13.x and one in his own folder with the version 6.x

So just to see what happens I remove the folder with the version 6 and then use the 'gcc --version' and this show up

Captura de tela 2024-05-13 221819

now, I open Neovim to see if the error still there and ...

Captura de tela 2024-05-13 222042

and remember, I unstall and install everything so this is a 'new' neovim with the same error

Zekdes avatar May 14 '24 01:05 Zekdes

Did you also delete AppData/local/nvim-data ?

dam9000 avatar May 14 '24 01:05 dam9000

Did you also delete AppData/local/nvim-data ?

I did what you asked, and I can finaly say It was solved

thank you very much for the attention and patience you guys are awesome

Zekdes avatar May 14 '24 22:05 Zekdes

:partying_face: :tada:

dam9000 avatar May 14 '24 22:05 dam9000