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

Can't run phi with --alone #360

Closed
maxonfjvipon opened this issue Oct 30, 2024 · 4 comments
Closed

Can't run phi with --alone #360

maxonfjvipon opened this issue Oct 30, 2024 · 4 comments

Comments

@maxonfjvipon
Copy link
Member

maxonfjvipon commented Oct 30, 2024

I tried to run eoc --alone --verbose --parser=0.40.3 --home-tag=master phi and here's what I've got:

Book-Pro:unphi maxonfjvipon$ eoc --alone --verbose --parser=0.40.3 --home-tag=master phi
Debug output is turned ON
EO parser 0.39.2; use the --latest flag if you need a freshier one
The "paths[1]" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received undefined
    at Object.resolve (node:path:1168:7)
    at module.exports [as phi] (/opt/homebrew/lib/node_modules/eolang/src/commands/phi.js:38:22)
    at Command.<anonymous> (/opt/homebrew/lib/node_modules/eolang/src/eoc.js:213:14)
    at Command.listener [as _actionHandler] (/opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:542:17)
    at /opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1502:14
    at Command._chainOrCall (/opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1386:12)
    at Command._parseCommand (/opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1501:27)
    at /opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1265:27
    at Command._chainOrCall (/opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1386:12)
    at Command._dispatchSubcommand (/opt/homebrew/lib/node_modules/eolang/node_modules/commander/lib/command.js:1261:25)

It happens because here instead of coms().phi(program.opts()); it must be coms().phi({...program.opts(), ...str});

The same problem with all other commands in --alone mode
@yegor256 please take a look

yegor256 added a commit that referenced this issue Oct 30, 2024
@yegor256
Copy link
Member

@rultor release, tag is 0.23.0

yegor256 added a commit that referenced this issue Oct 30, 2024
@rultor
Copy link
Contributor

rultor commented Oct 30, 2024

@rultor release, tag is 0.23.0

@yegor256 OK, I will release it now. Please check the progress here.

yegor256 added a commit that referenced this issue Oct 30, 2024
@rultor
Copy link
Contributor

rultor commented Oct 30, 2024

@rultor release, tag is 0.23.0

@maxonfjvipon @yegor256 Oops, I failed. You can see the full log here (spent 2hr).

Docker container objectionary_eoc_360 is lost

@yegor256
Copy link
Member

@maxonfjvipon version 0.23.0 released, with a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants