fix(health): skip --version for Windows built-ins and fix CRLF#2727
Conversation
Windows' find.exe and dir do not support --version and output error messages in the system code page (e.g. CP932 on Japanese Windows), causing garbled text in checkhealth. Also switch to utils.io_system() to fix version strings containing trailing \r from Windows CRLF line endings. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe health check module updates its tool-existence verification to use a utility-based system call approach and adds a Windows-specific bypass for built-in commands that produce non-UTF-8 error output when called with ChangesHealth Check Tool Detection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Ty @Namacha411 ! |
|
@phanen, unrelated to the changes in this PR, the headless wrapper now core dumps on exit on nightly, might be a bug in the upstream HEAD, need to keep an eye on it: |
|
I can reproduce locally |
|
bisect to neovim/neovim@9432e6c |
|
seems related to the startup time my wrapper slow down nvim start a bit, so I can observe it. |
Have you figured out of this is an upstream issue or something we need to fix on our end? |
|
I created neovim/neovim#39783. |
|
It only happened on ci now. https://github.com/ibhagwan/fzf-lua/actions/runs/25858259493/job/75981405952 I'll try if it's possible to workaround |
|
Ok, can be fixed in #2728. |
On Japanese Windows,
find --versioninvokes Windows' systemfind.exewhich outputs an error in CP932 encoding, causing garbled text in:checkhealth. Also,dirhas the same issue.Skip
--versionfor these Windows built-ins and report them as available without a version string. Also switch toutils.io_system()to avoid CRLF-corrupted version strings on Windows.Summary by CodeRabbit