fix: expand language IDs, fix AtCoder submit, normalize logging

Problem: AtCoder submit used a cookie fast-path that silently failed on
stale sessions; `_LANGUAGE_ID_EXTENSION` only covered 2 of 116 languages;
`LANGUAGE_VERSIONS` was incomplete for AtCoder, CF, and Kattis; AtCoder
`prolog` and `racket` entries had wrong IDs. Raw `vim.notify` calls
throughout bypassed `logger.log`, producing inconsistent or missing
`[cp.nvim]:` prefixes.

Solution: Remove cookie persistence from AtCoder login/submit — always
use a fresh login within a single session. Increase
`BROWSER_SUBMIT_NAV_TIMEOUT["atcoder"]` to 40s and switch to in-memory
buffer upload with the correct per-language extension. Expand
`LANGUAGE_VERSIONS` with all 116 AtCoder languages, 15 new CF languages
with full version variants (java8/21, kotlin 1.7/1.9/2.2, rust 2021/2024,
etc.), and 50+ Kattis languages. Fix AtCoder `prolog` ID (`6079`→`6081`,
was Pony) and remove non-existent `racket` entry. Replace all raw
`vim.notify` calls with `logger.log`.
This commit is contained in:
Barrett Ruth 2026-03-06 21:28:21 -05:00
parent 0329c802a6
commit ab67270472
13 changed files with 276 additions and 112 deletions

View file

@ -1056,13 +1056,17 @@ Set {version} globally or per-platform:
<
Available versions per platform ~
Platform cpp python java rust
AtCoder c++20/23 python3, pypy3 java rust
Codeforces c++17/20/23 python3, pypy3 - -
CSES c++11/17/20 python3, pypy3 java rust2018/2021
Kattis c++17/20/23 python3 java rust
USACO c++11/17 python3 java -
CodeChef c++20 python3, pypy3 java rust
Platform cpp python java rust
AtCoder c++20/23 python3, pypy3 java rust
Codeforces c++17/20/23 python3, pypy3 - -
CSES c++17 python3, pypy3 java rust2021
Kattis c++17/20/23 python3, python2 java rust
USACO c++11/17 python3 java -
CodeChef c++20 python3, pypy3 java rust
Kattis also supports: kotlin, go, haskell, csharp, typescript, javascript,
ocaml, ruby, scala, zig, swift, dart — use the language key as the version
key (e.g. version = "kotlin").
Using a raw platform ID ~