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

Unspecified in-file doesn't open stdin #8

Closed
Euophrys opened this issue Jul 23, 2020 · 3 comments
Closed

Unspecified in-file doesn't open stdin #8

Euophrys opened this issue Jul 23, 2020 · 3 comments

Comments

@Euophrys
Copy link
Contributor

Running this command:
docker run --rm akochan-reviewer:latest --no-open -i - -a 1 -o - > report.html

Results in this error:

src/main.rs:334 parsing tenhou log...
Error: failed to parse tenhou log

Caused by:
    EOF while parsing a value at line 1 column 0

According to the readme, it should read from stdin in this case.

@Equim-chan
Copy link
Owner

Try using docker run -i ...

--interactive , -i   Keep STDIN open even if not attached

@Euophrys
Copy link
Contributor Author

That still passes through for me, although it doesn't hit the error:

docker run -i --rm akochan-reviewer:latest --no-open -i - -a 1 -o - > report.html
src/main.rs:334 parsing tenhou log...

@Equim-chan
Copy link
Owner

This is correct, it is now waiting for stdin for some input.

The line parsing tenhou log... is actually printed before reading anything.

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

2 participants