AeroSpace CLI Commands Hang When Executed via Node.js child_process #972
MichaelKilbane
started this conversation in
potential-bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary:
While developing a companion app for AeroSpace to enhance workspace switching feedback, I've discovered that the
list-workspaces
,list-monitors
, andlist-windows
commands hang indefinitely when executed through Node.js child_process.exec(). This occurs even though these commands work correctly when run directly in the terminal.Environment:
Reproduction:
aerospace list-workspaces --all
aerospace list-monitors
aerospace list-windows
Expected behavior:
Commands should return JSON data promptly, as they do in the terminal.
Actual behavior:
Commands hang indefinitely without returning or throwing an error.
Technical Details:
Here's the relevant implementation that demonstrates the issue:
Additional Notes:
which aerospace
executes successfully, confirming the binary is accessibleWould appreciate any insights into whether this might be related to how AeroSpace handles stdout/stderr when called programmatically vs. interactively.
Beta Was this translation helpful? Give feedback.
All reactions