Skip to content

fix(health): remove blocking calls from checkhealth#13

Merged
asielcabrera merged 1 commit into
mainfrom
fix-checkhealth-hang
May 3, 2026
Merged

fix(health): remove blocking calls from checkhealth#13
asielcabrera merged 1 commit into
mainfrom
fix-checkhealth-hang

Conversation

@asielcabrera
Copy link
Copy Markdown
Contributor

Fixes #2 (again — deeper root cause identified). The previous fix removed xcode.list_schemes() but two other blocking calls remained: - target_manager.get_targets() → internally runs xcodebuild -list -json (can hang indefinitely) - validator.list_swiftly_versions() → runs swiftly list (can be slow). Fix: Removed both calls from checkhealth and replaced with informational hints pointing to :SwiftTargets and :SwiftVersionInfo. Bonus fix: vim.v.shell_error doesn't work after vim.system():wait() calls — fixed all occurrences in version_validator.lua to use obj.code instead.

Removes get_targets() call (triggers xcodebuild -list) and list_swiftly_versions() from checkhealth. Both can block Neovim indefinitely. Users can run :SwiftTargets and :SwiftVersionInfo for that info. Also fixes vim.v.shell_error usage after vim.system():wait() calls in version_validator.
@asielcabrera asielcabrera merged commit c55eee3 into main May 3, 2026
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: checkhealth hangs without any output

1 participant