`auth:web:login --browser <name>` hangs when the browser you try to use isn't installed
Summary
To resolve https://github.com/forcedotcom/cli/issues/1465, the --browser flag was added to the auth:web:login command but with it a bug was introduced that causes the command to hang when you try to use a browser that isn't installed.
Steps To Reproduce:
- Make sure you don't have either
edge,chrome, orfirefoxinstalled. - Run
sfdx auth:web:login --browser <nameOfBrowserThatIsNotInstalled>
Expected result
The command should exit with an error saying the browser is not available or installed or something like that.
Actual result
The command just hangs indefinitely until the process is manually killed by the user.
System Information
- Which shell/terminal are you using? Powershell 7, although I've seen this on bash too
- Which version of the CLI are you using?
This is happening with version
2.3.0ofplugin-auth
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.