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

解答コードの標準エラー出力を rime-out に保存したい #101

Open
tossy310 opened this issue Sep 9, 2024 · 0 comments · May be fixed by #104
Open

解答コードの標準エラー出力を rime-out に保存したい #101

tossy310 opened this issue Sep 9, 2024 · 0 comments · May be fixed by #104
Assignees

Comments

@tossy310
Copy link
Member

tossy310 commented Sep 9, 2024

rime/rime/basic/codes.py

Lines 79 to 82 in 1194c9d

if redirect_error:
errfile = subprocess.STDOUT
else:
errfile = files.OpenNull()

解答コードの実行時はここで errfile が指定されており、標準エラー出力が握りつぶされている。

逆に DOMJudgeReactiveTask が解答コードを実行する際は、何も指定していないため、標準エラー出力がそのまま標準出力にリダイレクトされている。

どちらの場合でも、解答コードのエラー出力を rime-out以下に吐き出すことができると良さそうです。

@tossy310 tossy310 self-assigned this Sep 15, 2024
tossy310 added a commit to tossy310/rime that referenced this issue Sep 22, 2024
tossy310 added a commit to tossy310/rime that referenced this issue Sep 22, 2024
tossy310 added a commit to tossy310/rime that referenced this issue Sep 22, 2024
@tossy310 tossy310 linked a pull request Sep 22, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant