base
base copied to clipboard
Launching dev container and pnpm start <args> yields ambiguous error
problem
in the vscode devcontainer, post pnpm install, on run of install tool <any-tool-name> the following error occurs
$ pnpm start install tool java
> [email protected] start /workspaces/base
> tsx src/cli/index.ts "install" "tool" "java"
Ambiguous Syntax Error: Cannot find which to pick amongst the following alternatives:
0. /opt/containerbase/tools/node/20.11.0/bin/node /workspaces/base/src/cli/index.ts install tool [-d,--dry-run] <name> [version]
1. /opt/containerbase/tools/node/20.11.0/bin/node /workspaces/base/src/cli/index.ts install tool [-d,--dry-run] <name> [version]
looks like:
cli.register(InstallGemCommand);
cli.register(InstallNpmCommand);
redundantly register InstallToolCommand, which creates dupe entries. commenting those two out restores execution to working order
Why are you running that command? Eg is it documented that you need to run it?
Why are you running that command?
debugging
Eg is it documented that you need to run it?
just common JS idioms for running stuff, and it was indeed present. Thus, I inferred it is present for running 🙂
I was able to use it to successfully debug my failure and get to a functional state
will see if I can fix the start command, but with very low priority