online-judge-tools / oj

Tools for various online judges. Downloading sample cases, generating additional test cases, testing your code, and submitting it.
MIT License
1.02k stars 88 forks source link

failed to open the submission page after oj submit in Devcontainer within WSL #932

Open takotaketako opened 1 month ago

takotaketako commented 1 month ago

Summary / 概要

In the past, this issue occurred in WSL environments, and a fix was implemented to register explorer.exe as webbrowser. https://github.com/online-judge-tools/oj/issues/773

However, this approach does not work properly within Devcontainers in WSL.

Steps to reproduce / 再現方法

  1. Run the acc submit command inside a Devcontainer within a WSL environment.

environments:

Expected behavior / 期待される挙動

The browser should open the submission page correctly in a Devcontainer environment within WSL.

Actual behavior / 実際の挙動

resulting in the following log output, but the page does not open:

[INFO] open the submission page with browser: <webbrowser.GenericBrowser object at 0x7f8d2fcd5850>

Other notes / その他