209. The editor checks against edition 0.3 unless told otherwise (2026-11-22)
- Decision.
cpl lspwith noCPL_SPECin its environment sets it, andCPL_STDto thespec/stdfolder in the nearest folder above the working folder or the binary, before the server starts.cpl lsp --edition=0.2keeps the built-in stdlib.cpl checkand the other commands are unchanged;plan/RESTRUCTURE.mdowns their default. - Why. Every editor starts
cpl lsp, so one server-side default gives VS Code, JetBrains and Neovim edition 0.3 with no setting. A test opens all 1,338 v0.3 files incpl lspwith no edition set and finds exactly whatCPL_SPEC=1 CPL_STD=spec/std cpl checkandcpl lintrender, file by file; under--edition=0.2719 of them differ. - Assumption. A
cplbinary outside a checkout, run from a folder with nospec/stdabove it, finds no spec stdlib and stays on 0.2 untilspec/stdis built into the binary asstdlib/is. - Reverse. Drop
default_to_spec_editionincpl-cliand its call.