`cl.exe` Plugin Dependency On Windows
Los mantenedores suelen responder en 9 días
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- c, powershell
Línea de trabajo
Comienza con README.md y los requisitos de instalación de nvim-treesitter; después, revisa la reproducción reportada en Windows y la solución alternativa de PowerShell. Documenta la configuración necesaria de cl.exe o Visual Studio Build Tools, incluido cómo hacer que el compilador sea detectable, y verifica que los pasos documentados aborden el error de instalación del parser.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Before Reporting an Issue
-
I have read the kickstart.nvim README.md.
-
I have read the appropriate plugin's documentation.
-
I have searched that this issue has not been reported before.
-
I have ran
:checkhealthand so no obvious issue. -
By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.
Describe the bug
cl.exe is required for one of plugins. I could see adding the dependencies below to the README.md.
Error
[nvim-treesitter/install/query] error: Error during "tree-sitter build": ^[[31mError:^[[0m Failed to compile parser
Caused by:
Failed to execute the C compiler with the following command:
"cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-std:c11" "-I" "C:\\Users\\matt\\AppData\\Local\\Temp\\nvim\\tree-sitter-query\\src" "-W4" "-LD" "
-utf-8" "/Fo\\\\?\\C:\\Users\\matt\\AppData\\Local\\Temp\\nvim\\tree-sitter-query\\tmp_5076_ThreadId(1)\\" "C:\\Users\\matt\\AppData\\Local\\Tem
p\\nvim\\tree-sitter-query\\src\\parser.c" "-link" "-out:\\\\?\\C:\\Users\\matt\\AppData\\Local\\Temp\\nvim\\tree-sitter-query\\parser.so" "/IMP
LIB:\\\\?\\C:\\Users\\matt\\AppData\\Local\\Temp\\nvim\\tree-sitter-query\\tmp_5076_ThreadId(1)\\temp.lib"
Error: program not found
To Reproduce
- Be on windows
git clone- Open
nvim - Run through the
vim.packinstall - Notice errors with
cl.exemissing.
Workaround Using pwsh.exe
choco install visualstudio2026buildtools -ychoco install visualstudio2026-workload-vctools -y& 'C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\Common7\Tools\Launch-VsDevShell.ps1'
Some notes on the above. Need to be running with admin to perform the install. I am on 7.6.2 of PowerShell. Item 3 is needed to fix-up the $env:Path so processes can find cl.exe. On my system, when I run Get-Command cl after running the launcher ps1, I get C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.51.36231\bin\HostX86\x86\cl.exe. Presumably, one could update the $env:Path manually too, though there are four different copies of cl.exe.
There is probably a better world where one could use scoop install vswhere or choco install vswhere to ensure VS 2017 and later can be accounted for and we don't rely on the default location of the binary in the Visual Studio Installer location.
Below is how one can find the instance id to call into the cmdlet directly that is called by the ps1 above. It does get messy if folks don't have the exact install path as the above.
& 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' -products Microsoft.VisualStudio.Product.BuildTools -latest -format json
And then with the whole archival of nvim-treesitter. Is it all worth it? Is there going to be a push to go "native" and "core" features with neovim? So one would rip out the nvim-treesitter dependency?
Desktop
- OS: Windows
- Terminal: Wezterm
Neovim Version
NVIM v0.12.3
Build type: Release
LuaJIT 2.1.1774638290
- Lenguaje dominante
- Lua
- Estrellas
- 31.6k
- Forks
- 46.5k
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nvim-lua/kickstart.nvim
-
which-key breaks `vim.v.count` in visual modePosiblemente ocupada @nathanzeng la tomó hace 153 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
nvim-lua/kickstart.nvim#2047 · 6 comentarios ·
Los mantenedores suelen responder en 9 días
-
Opening init.lua starts loading workspacePosiblemente ocupada @oriori1703 la tomó hace 28 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
nvim-lua/kickstart.nvim#1975 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 9 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
nvim-lua/kickstart.nvim#1961 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
nvim-lua/kickstart.nvim#1788 · 2 comentarios · 3 reacciones ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
nvim-lua/kickstart.nvim#1740 · 14 comentarios · 17 reacciones ·
Los mantenedores suelen responder en 9 días
Todos los issues de nvim-lua/kickstart.nvim
Issues similares
-
Lasso not PastingAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mogenson/PaperWM.spoon#178 ·
-
ci: Verify install never runs examples_install or tests_install, so a clear they widen passesAbiertoseverity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
luainkernel/lunatik#1876 ·
Los mantenedores suelen responder en 1 día
-
bug ready ticket
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Domktorymysli/vclu#5 ·