nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
16.77k stars 16.76k forks source link

I don't know what this error is #904

Closed Zekdes closed 1 month ago

Zekdes commented 2 months ago

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

dam9000 commented 2 months ago

How did you install Neovim?

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

I would suggest:

feoh commented 2 months ago

No platform shaming please.

Zekdes commented 2 months ago

How did you install Neovim?

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

I would suggest:

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

Zekdes commented 2 months ago

How did you install Neovim?

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

I would suggest:

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

feoh commented 2 months ago

Do you have a C compiler installed?

Zekdes commented 2 months ago

Do you have a C compiler installed?

Yes, I install gcc

Captura de tela 2024-05-06 131712

feoh commented 1 month ago

What happens if you either:

feoh commented 1 month ago

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

christophermadsen commented 1 month ago

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.

dam9000 commented 1 month ago

@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.
christophermadsen commented 1 month ago

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
Zekdes commented 1 month ago

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

dam9000 commented 1 month ago

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

Zekdes commented 1 month ago

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

dam9000 commented 1 month ago

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

Zekdes commented 1 month ago

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

dam9000 commented 1 month ago

:partying_face: :tada: