perseus: Cli will report "Couldn't find cargo" when it can't find powershell
This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels. The author described their issue as follows:
When cli can’t find powershell, instead of reporting “Couldn’t find powershell”, the cli will complain about “Couldn’t find cargo”.
The steps to reproduce this issue are as follows:
On Windows and powershell not in the PATH, run
perseus serve -w
A minimum reproducible example is available at <>.
- Hydration-related: false
- The author is willing to attempt a fix: false
Tribble internal data
dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWNsaQ==
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- feat(cli): added pre-flight shell check Addresses #314. — committed to framesurge/perseus by arctic-hen7 3 years ago
Yes, this is an issue in the
notifydependency in that branch. Let me fix part of this onmainand then rebase.Hi. Also note that you still depend on powershell for the function run_cmd_directly in cmd.rs .
Actually, Perseus does require Powershell! For most commands, because there can be all sorts of issues with
PATHconfigurations that we’ve had in the past (mostly legacy from v0.1.0), we run them in a shell, which, on Windows, ispowershell -command "<some-command>". Right now, there is no validation step to ensure the shell is available in any way, though I’d never thought this would be an issue, probably because I barely understand Powershell and Windows in general.I’d be happy to add a preflight check that makes sure we can actually run commands at all, which is probably a good idea! @raspirin what shell do you regularly use? Right now, from the sounds of things, the CLI is hardcoded to not work for you…