Troubleshooting
Start with the doctor:
verd doctor
It prints ok, warn or fail for your config, handle, workspace, the compiler of every language, the editor (and Neovim 0.9 or newer), tmux or herdr, truecolor support and $TERM, and exits 1 if anything failed.
verd will not start#
| You see | Do |
|---|---|
no handle set: run verd init ... |
verd config set handle <your handle> |
an error naming config.toml and a key |
fix that line; verd never starts on a config it cannot load |
verd is already running |
only one TUI runs per user; close the other one (the message names the socket) |
TERM is 'dumb' |
run it in a real terminal |
Problems and statements#
- "offline: statement not cached": no network and that statement was never fetched. Open it once online; after that it works offline.
ctrl+rrefreshes the lists. - "Codeforces blocked the request (Cloudflare)": Codeforces sometimes challenges non-browser clients. Press
oto read the problem in your browser; verd retries on the next fetch. The API (problem list, submissions, standings, editorials) is not affected. - The list is empty: the first start has to download the problem list. Wait for the sync or press
ctrl+r. - CSES tasks are missing:
verd config set source_cses true, thenctrl+rin verd.
Tests#
CEwith a wall of paths: the compiler output is shown with long paths shortened;ejumps to the first error.bits/stdc++.hnot found on macOS: plaing++there is Apple Clang. Install GNU gcc (brew install gcc); verd prefersg++-15...g++-9when present.- Wrong verdict on a float problem:
ccycles the comparison mode;floatcompares withinfloat_eps. - Tests are slow to start: the first build compiles; later runs of unchanged code use the cache.
- An interactive problem: local runs are not supported; verd says so.
Editor#
edoes nothing / "editor not found":verd config set editor <command>and checkverd doctor.- Neovim looks wrong inside verd: set
split = "suspend"(or run verd inside tmux) and report the terminal on issue #45. - A chord does not reach Neovim: only the Kitty keyboard protocol can send some
ctrl+shiftcombinations; use tmux orsuspend. - Keys go to the wrong side:
ctrl+\hands the keyboard between verd and the embedded editor.
Submitting#
- Nothing is copied: install
wl-copy,xclip,xsel(Linux) or use a terminal with OSC 52; verd prints the URL when no tool is found. - Direct mode falls back to the browser: the status notes say why (an expired session, a Cloudflare check).
verd loginagain, or use the default browser mode.
Contests#
ssays "set your handle first": live sessions find your row in the standings by handle.- "not in the standings": register for the contest on codeforces.com.
- A verdict is slow to show in a live session: the standings refresh every minute (two minutes for very big rounds).
Updating#
- verd asked me to update and I pressed
n: it leaves a hint at the bottom of the screen. Runverd updateany time, orverd update --checkto see what is available. verd updatefails with a network error: it already retried a few times. Run it again, or check your connection. A "checksum mismatch" means the download was damaged and nothing was replaced.- "cannot write next to ...": verd cannot write where the binary lives. Re-run the installer with
sudo, or from a directory you can write to. - "this is a source build": a
devbuild does not self-update. Rungo install github.com/moneytosms/verd/cmd/verd@latest. - I missed the release notes:
verd updateprints the notes of every release it skipped when it installs, and the What's new screen shows them once on the next launch (esc,qorentercloses it). If the notes cannot be fetched, verd says so and points at the Releases page.
Files and data#
| Where | What |
|---|---|
~/.config/verd/config.toml |
your config |
~/.config/verd/snippets/ |
Templates and the snippet library |
~/.local/share/verd/verd.db |
cache: problems, submissions, editorials, the running session |
~/.cache/verd/ |
compiled binaries |
<workspace>/<contest>/<index>/ |
your solutions and tests |
$XDG_CONFIG_HOME, $XDG_DATA_HOME and $XDG_CACHE_HOME are honored. Deleting verd.db resets the cache, which is rebuilt on the next start, along with your per-problem language and comparison choices and manual CSES marks. Your solutions and config are separate files and are untouched.
verd runs on Linux and macOS. On Windows, run it inside WSL; native Windows is not supported. Under WSL keep the workspace on the Linux filesystem (/home/...); /mnt/c/... is slow and verd doctor warns about it.
Still stuck#
verd help <command> has the exact options of each command. Report bugs, with the output of verd doctor and verd --version, on GitHub.