Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI hang on Linux #521

Merged

Conversation

mattjohnsonpint
Copy link
Member

Fixed issues with CLI hanging on Linux.

The main culprit was the shebang in cli/bin/modus.js

#!/usr/bin/env node --no-warnings=ExperimentalWarning

There were two possible fixes:

#!/usr/bin/env node

or

#!/usr/bin/env -S node --no-warnings=ExperimentalWarning

The change implemented in #517 removed the need to pass the --no-warnings flag, so we'll simplify with the first one. (FYI, this was all about getting clean output if the user pressed ctrl-c while a prompt was open.)

Also removed some unused code, and improved the spinner wrapper.

@mattjohnsonpint mattjohnsonpint requested a review from a team as a code owner October 29, 2024 06:10
@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) October 29, 2024 06:12
@mattjohnsonpint
Copy link
Member Author

FYI, it works in GitHub Actions on a Ubuntu runner also. Here's a test run:
https://github.com/mattjohnsonpint/teststuff/actions/runs/11568212208/job/32199784610

@mattjohnsonpint mattjohnsonpint merged commit 4d75bd6 into main Oct 29, 2024
4 checks passed
@mattjohnsonpint mattjohnsonpint deleted the mjp/hyp-2506-modus-cli-failing-on-github-ubuntu-runner branch October 29, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants