`cl.exe` Plugin Dependency On Windows
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- c, powershell
調査の方向性
README.md と nvim-treesitter のインストール要件から始め、報告された Windows での再現手順と PowerShell の回避策を確認します。必要な cl.exe または Visual Studio Build Tools のセットアップを、コンパイラーを検出可能にする方法も含めて文書化し、文書化した手順で parser のインストールエラーに対処できることを検証します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Lua
- スター
- 31.5k
- フォーク
- 46.6k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvim-lua/kickstart.nvim のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nvim-lua/kickstart.nvim#2047 · コメント 6 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
nvim-lua/kickstart.nvim#1975 · コメント 3 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nvim-lua/kickstart.nvim#1961 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
nvim-lua/kickstart.nvim#1788 · コメント 2 件 · リアクション 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
nvim-lua/kickstart.nvim#1740 · コメント 14 件 · リアクション 17 件 ·
nvim-lua/kickstart.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
openSUSE/python-rpm-macros#219 ·
-
bug mini.bracketed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
accessibility bug typst
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#14947 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HenrikBengtsson/CBI-software#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
secondlife/slua#96 ·