base icon indicating copy to clipboard operation
base copied to clipboard

Launching dev container and pnpm start <args> yields ambiguous error

Open cdaringe opened this issue 1 year ago • 4 comments

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]

cdaringe avatar Jan 23 '24 06:01 cdaringe

looks like:

  cli.register(InstallGemCommand);
  cli.register(InstallNpmCommand);

redundantly register InstallToolCommand, which creates dupe entries. commenting those two out restores execution to working order

cdaringe avatar Jan 23 '24 07:01 cdaringe

Why are you running that command? Eg is it documented that you need to run it?

rarkins avatar Jan 23 '24 07:01 rarkins

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

cdaringe avatar Jan 23 '24 08:01 cdaringe

will see if I can fix the start command, but with very low priority

viceice avatar Jan 23 '24 18:01 viceice