fix: expand language IDs, fix AtCoder submit, normalize logging (#353)

## Problem

Language version coverage was incomplete across all platforms, AtCoder
submit used a stale cookie fast-path that caused silent failures, and
raw
`vim.notify` calls throughout the codebase produced inconsistent or
missing `[cp.nvim]:` prefixes.

## Solution

Remove cookie persistence from AtCoder login/submit (always fresh
login),
increase the submit nav timeout to 40s, and switch to in-memory buffer
upload with the correct per-language extension from a full
`_LANGUAGE_ID_EXTENSION`
map covering all 116 AtCoder languages. Expand `LANGUAGE_VERSIONS` in
`constants.lua` with all AtCoder languages, 15 new CF languages with
full
version variants, and 50+ Kattis languages. Fix AtCoder `prolog` ID
(`6079`→`6081`, was Pony) and remove the non-existent `racket` entry.
Replace all raw `vim.notify` calls with `logger.log`. Simplify the
submit
language doc to point at `constants.lua` rather than maintaining a
static table.
This commit is contained in:
Barrett Ruth 2026-03-06 21:35:13 -05:00 committed by GitHub
parent 1ac521a126
commit 291de4e137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 356 additions and 114 deletions

View file

@ -1054,20 +1054,14 @@ Set {version} globally or per-platform:
},
},
<
Available versions per platform ~
Available versions ~
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
Each platform supports all of its own languages and compiler versions.
The full list of version keys is in `lua/cp/constants.lua` under
`LANGUAGE_VERSIONS`. Use any key from that table as the {version} value.
Using a raw platform ID ~
If your preferred version is not listed, you can bypass version
lookup by setting {submit_id} to the raw platform language ID:
To bypass version lookup entirely, set {submit_id} to the raw platform
language ID (the value from the platform's submit page dropdown):
>lua
platforms = {
codeforces = {
@ -1075,9 +1069,6 @@ lookup by setting {submit_id} to the raw platform language ID:
},
},
<
To find the raw ID, open the platform's submit page in your browser,
inspect the language dropdown, and copy the <option value="..."> for
your desired language.
==============================================================================
OPEN *cp-open*