- 1 year ago
Neovim TreeSitter Returning No C Complier Error
The error "No C compiler found" means that the C compiler required to build the TreeSitter parser for the specific language is not installed on your system.
To resolve this error, you need to install a C compiler on your system. Here are the steps you can follow to install a C compiler on Windows:
Download and install the MinGW-w64 installer from https://sourceforge.net/projects/mingw-w64/files/.
During the installation, choose the "Architecture" (32-bit or 64-bit) and "Threads" (posix or win32) that match your system.
In the "Select Components" window, select the "C Compiler" and "C++ Compiler" options.
Complete the installation.
Add the location of the installed compiler to your system's PATH environment variable.
Once you have installed the C compiler and added its location to your system's PATH environment variable, try building the TreeSitter parser again.