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

Client/js: Runtime errors on worm aptos migrate & worm aptos upgrade commands #3109

Open
AlberErre opened this issue Jun 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AlberErre
Copy link
Contributor

Description and context

🚨 After generating worm cli through the Makefile, I'm facing runtime errors while trying to execute the following aptos commands with the --help flag:

  • worm aptos upgrade
  • worm aptos migrate

Steps to reproduce

  1. Build worm cli by executing Makefile
  2. make install
  3. Execute one on the commands above using the --help flag
  4. worm aptos upgrade --help
  5. worm aptos migrate --help

Experienced behavior

It does not show help information. Instead, a runtime error is thrown.

worm aptos upgrade --help

TypeError: Cot.positional is not a function
    at /Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:15377
    at Kmn.applyBuilderUpdateUsageAndParse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26804)
    at Kmn.runCommand (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26454)
    at dyn.[runYargsParserAndExecuteCommands] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:7498)
    at Kmn.parseAndUpdateUsage (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:27378)
    at Kmn.applyBuilderUpdateUsageAndParse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:27087)
    at Kmn.runCommand (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26454)
    at dyn.[runYargsParserAndExecuteCommands] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:7498)
    at dyn.parse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:736:1746)
    at dyn.get [as argv] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:735:2848)

worm aptos migrate --help

TypeError: Cot.option is not a function
    at /Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:16028
    at Kmn.applyBuilderUpdateUsageAndParse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26804)
    at Kmn.runCommand (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26454)
    at dyn.[runYargsParserAndExecuteCommands] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:7498)
    at Kmn.parseAndUpdateUsage (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:27378)
    at Kmn.applyBuilderUpdateUsageAndParse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:27087)
    at Kmn.runCommand (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:680:26454)
    at dyn.[runYargsParserAndExecuteCommands] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:738:7498)
    at dyn.parse (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:736:1746)
    at dyn.get [as argv] (/Users/albererre/Github/forks/wormhole/clients/js/build/main.js:735:2848)

Expected behavior

The worm cli outputs help information regarding these commands.

Solution recommendation

Debug to locate the issue

@AlberErre AlberErre added the bug Something isn't working label Jun 21, 2023
@aadam-10 aadam-10 added this to the Maintenance - Tilt / CLI milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@AlberErre @aadam-10 and others