From e8e9fb6b7b7185698ea7e5dfdf9e889336703451 Mon Sep 17 00:00:00 2001 From: cromarmot Date: Mon, 30 Oct 2023 12:00:03 +0800 Subject: [PATCH] docs: atcoder's language id change, and update static record in docs --- docs/usage0.2/02_config.rst | 157 +++++++++++++++++++++--------------- docs/usage0.2/05_submit.rst | 2 +- docs/usage0.2/07_faq.rst | 44 ++++++++++ docs/usage0.2/index.rst | 1 + 4 files changed, 136 insertions(+), 68 deletions(-) create mode 100644 docs/usage0.2/07_faq.rst diff --git a/docs/usage0.2/02_config.rst b/docs/usage0.2/02_config.rst index 53fe2c6..1b22736 100644 --- a/docs/usage0.2/02_config.rst +++ b/docs/usage0.2/02_config.rst @@ -109,70 +109,93 @@ AtCoder: .. code-block:: Text - C (GCC 9.2.1) 4001 - C (Clang 10.0.0) 4002 - C++ (GCC 9.2.1) 4003 - C++ (Clang 10.0.0) 4004 - Java (OpenJDK 11.0.6) 4005 - Python (3.8.2) 4006 - Bash (5.0.11) 4007 - bc (1.07.1) 4008 - Awk (GNU Awk 4.1.4) 4009 - C# (.NET Core 3.1.201) 4010 - C# (Mono-mcs 6.8.0.105) 4011 - C# (Mono-csc 3.5.0) 4012 - Clojure (1.10.1.536) 4013 - Crystal (0.33.0) 4014 - D (DMD 2.091.0) 4015 - D (GDC 9.2.1) 4016 - D (LDC 1.20.1) 4017 - Dart (2.7.2) 4018 - dc (1.4.1) 4019 - Erlang (22.3) 4020 - Elixir (1.10.2) 4021 - F# (.NET Core 3.1.201) 4022 - F# (Mono 10.2.3) 4023 - Forth (gforth 0.7.3) 4024 - Fortran (GNU Fortran 9.2.1) 4025 - Go (1.14.1) 4026 - Haskell (GHC 8.8.3) 4027 - Haxe (4.0.3); js 4028 - Haxe (4.0.3); Java 4029 - JavaScript (Node.js 12.16.1) 4030 - Julia (1.4.0) 4031 - Kotlin (1.3.71) 4032 - Lua (Lua 5.3.5) 4033 - Lua (LuaJIT 2.1.0) 4034 - Dash (0.5.8) 4035 - Nim (1.0.6) 4036 - Objective-C (Clang 10.0.0) 4037 - Common Lisp (SBCL 2.0.3) 4038 - OCaml (4.10.0) 4039 - Octave (5.2.0) 4040 - Pascal (FPC 3.0.4) 4041 - Perl (5.26.1) 4042 - Raku (Rakudo 2020.02.1) 4043 - PHP (7.4.4) 4044 - Prolog (SWI-Prolog 8.0.3) 4045 - PyPy2 (7.3.0) 4046 - PyPy3 (7.3.0) 4047 - Racket (7.6) 4048 - Ruby (2.7.1) 4049 - Rust (1.42.0) 4050 - Scala (2.13.1) 4051 - Java (OpenJDK 1.8.0) 4052 - Scheme (Gauche 0.9.9) 4053 - Standard ML (MLton 20130715) 4054 - Swift (5.2.1) 4055 - Text (cat 8.28) 4056 - TypeScript (3.8) 4057 - Visual Basic (.NET Core 3.1.101)4058 - Zsh (5.4.2) 4059 - COBOL - Fixed (OpenCOBOL 1.1.0) 4060 - COBOL - Free (OpenCOBOL 1.1.0) 4061 - Brainfuck (bf 20041219) 4062 - Ada2012 (GNAT 9.2.1) 4063 - Unlambda (2.0.0) 4064 - Cython (0.29.16) 4065 - Sed (4.4) 4066 - Vim (8.2.0460) 4067 + C++ 20 (gcc 12.2) 5001 + Go (go 1.20.6) 5002 + C# 11.0 (.NET 7.0.7) 5003 + Kotlin (Kotlin/JVM 1.8.20) 5004 + Java (OpenJDK 17) 5005 + Nim (Nim 1.6.14) 5006 + V (V 0.4) 5007 + Zig (Zig 0.10.1) 5008 + JavaScript (Node.js 18.16.1) 5009 + JavaScript (Deno 1.35.1) 5010 + R (GNU R 4.2.1) 5011 + D (DMD 2.104.0) 5012 + D (LDC 1.32.2) 5013 + Swift (swift 5.8.1) 5014 + Dart (Dart 3.0.5) 5015 + PHP (php 8.2.8) 5016 + C (gcc 12.2.0) 5017 + Ruby (ruby 3.2.2) 5018 + Crystal (Crystal 1.9.1) 5019 + Brainfuck (bf 20041219) 5020 + F# 7.0 (.NET 7.0.7) 5021 + Julia (Julia 1.9.2) 5022 + Bash (bash 5.2.2) 5023 + Text (cat 8.32) 5024 + Haskell (GHC 9.4.5) 5025 + Fortran (gfortran 12.2) 5026 + Lua (LuaJIT 2.1.0-beta3) 5027 + C++ 23 (gcc 12.2) 5028 + Common Lisp (SBCL 2.3.6) 5029 + COBOL (Free) (GnuCOBOL 3.1.2) 5030 + C++ 23 (Clang 16.0.6) 5031 + Zsh (Zsh 5.9) 5032 + SageMath (SageMath 9.5) 5033 + Sed (GNU sed 4.8) 5034 + bc (bc 1.07.1) 5035 + dc (dc 1.07.1) 5036 + Perl (perl 5.34) 5037 + AWK (GNU Awk 5.0.1) 5038 + なでしこ (cnako3 3.4.20) 5039 + Assembly x64 (NASM 2.15.05) 5040 + Pascal (fpc 3.2.2) 5041 + C# 11.0 AOT (.NET 7.0.7) 5042 + Lua (Lua 5.4.6) 5043 + Prolog (SWI-Prolog 9.0.4) 5044 + PowerShell (PowerShell 7.3.1) 5045 + Scheme (Gauche 0.9.12) 5046 + Scala 3.3.0 (Scala Native 0.4.14) 5047 + Visual Basic 16.9 (.NET 7.0.7) 5048 + Forth (gforth 0.7.3) 5049 + Clojure (babashka 1.3.181) 5050 + Erlang (Erlang 26.0.2) 5051 + TypeScript 5.1 (Deno 1.35.1) 5052 + C++ 17 (gcc 12.2) 5053 + Rust (rustc 1.70.0) 5054 + Python (CPython 3.11.4) 5055 + Scala (Dotty 3.3.0) 5056 + Koka (koka 2.4.0) 5057 + TypeScript 5.1 (Node.js 18.16.1) 5058 + OCaml (ocamlopt 5.0.0) 5059 + Raku (Rakudo 2023.06) 5060 + Vim (vim 9.0.0242) 5061 + Emacs Lisp (Native Compile) (GNU Emacs 28.2)5062 + Python (Mambaforge / CPython 3.10.10) 5063 + Clojure (clojure 1.11.1) 5064 + プロデル (mono版プロデル 1.9.1182) 5065 + ECLiPSe (ECLiPSe 7.1_13) 5066 + Nibbles (literate form) (nibbles 1.01) 5067 + Ada (GNAT 12.2) 5068 + jq (jq 1.6) 5069 + Cyber (Cyber v0.2-Latest) 5070 + Carp (Carp 0.5.5) 5071 + C++ 17 (Clang 16.0.6) 5072 + C++ 20 (Clang 16.0.6) 5073 + LLVM IR (Clang 16.0.6) 5074 + Emacs Lisp (Byte Compile) (GNU Emacs 28.2) 5075 + Factor (Factor 0.98) 5076 + D (GDC 12.2) 5077 + Python (PyPy 3.10-v7.3.12) 5078 + Whitespace (whitespacers 1.0.0) 5079 + ><> (fishr 0.1.0) 5080 + ReasonML (reason 3.9.0) 5081 + Python (Cython 0.29.34) 5082 + Octave (GNU Octave 8.2.0) 5083 + Haxe (JVM) (Haxe 4.3.1) 5084 + Elixir (Elixir 1.15.2) 5085 + Mercury (Mercury 22.01.6) 5086 + Seed7 (Seed7 3.2.1) 5087 + Emacs Lisp (No Compile) (GNU Emacs 28.2) 5088 + Unison (Unison M5b) 5089 + COBOL (GnuCOBOL(Fixed) 3.1.2) 5090 diff --git a/docs/usage0.2/05_submit.rst b/docs/usage0.2/05_submit.rst index 6372164..99424f3 100644 --- a/docs/usage0.2/05_submit.rst +++ b/docs/usage0.2/05_submit.rst @@ -25,7 +25,7 @@ Check Result .. code-block:: console - $ oi result + (~/mycode/dist/AtCoder/abc300/G)$ oi result OJ AtCoder Account cromarmot Problem ID abc300G diff --git a/docs/usage0.2/07_faq.rst b/docs/usage0.2/07_faq.rst new file mode 100644 index 0000000..3fe3952 --- /dev/null +++ b/docs/usage0.2/07_faq.rst @@ -0,0 +1,44 @@ +FAQ +=== + +No successful submit +-------------------- + +[TODO add auto checker] + +What happens: + +``oi submit`` command shows ``submitted`` but not really submitted + +.. code-block:: + + [YYYY-MM-DD HH:mm:SS,894 oiTerminal ERROR submit.py async_watch_result 57]: + Traceback (most recent call last): + File ".../oi_cli2/cli/submit.py", line 53, in async_watch_result + async for result in oj.async_get_result_yield(problem_url, time_gap=FETCH_RESULT_INTERVAL): + File ".../oi_cli2/cli/adaptor/AtCoderAdaptor.py", line 144, in async_get_result_yield + res = transform_Result(fetch_result(self.http_util, problem_url)) + File ".../yxr-atcoder-core/ac_core/result.py", line 165, in fetch_result + json_url = _parse_json_url(resp.text) + File ".../yxr-atcoder-core/ac_core/result.py", line 135, in _parse_json_url + assert r is not None # no submission + AssertionError + + +Possible solution: + +the platform's ``language id`` might change + +.. code-block:: bash + + # check with command + oi lang AtCoder + oi lang Codeforces + oi config template list --detail + # modify with + oi config template modify AtCoder --langid + # example + oi config template modify AtCoder C++17-test --langid 5001 + # check `up_lang` in your `state.json in` code folder like `/dist/AtCoder/abc309/Ex/state.json` + # [TODO remove `up_lang` field from `state.json`] + sed -i 's/4003/5001/g' state.json \ No newline at end of file diff --git a/docs/usage0.2/index.rst b/docs/usage0.2/index.rst index aa9300c..9d96984 100644 --- a/docs/usage0.2/index.rst +++ b/docs/usage0.2/index.rst @@ -14,3 +14,4 @@ Most command has ``help`` command implememnt inside. You can use ``oi --help`` , 04_test 05_submit 06_proxy + 07_faq