Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.14k stars 180 forks source link

Fails to build the C extension under windows #1077

Closed pedrohgmacedo closed 2 months ago

pedrohgmacedo commented 2 months ago

Describe your question, feature request, or bug.

Running the command to install the C extension does not work. After installing the build tools for vistual studio 2022, the install.bat must be running under the environment of "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"

Yggdroot commented 2 months ago

Running the command to install the C extension does not work.

Any logs?

pedrohgmacedo commented 2 months ago

It complains that the build tools are not installed. What logs are you looking for?

This is the change I made to make it work:

diff --git a/install.bat b/install.bat
index 35af7c8..4bb8e06 100644
--- a/install.bat
+++ b/install.bat
@@ -1,4 +1,5 @@
 @echo off
+call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
 if /i "%1" equ "--reverse" (
     cd autoload\leaderf\fuzzyMatch_C
     rd /s /q build