Files
Language-Server/AGENTS.md
T
faumaray da8003f6d4 Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite:
protocol and document sync, VBS/compdb providers, stock GCC diagnostics
(including in-process default profile preparation), the stock occurrence
observer and hover/definition, the bounded Scheduler, C++ module graph,
scan and artifact cache with real CMI production, the context-aware
symbol index with schema-2 snapshot migration, navigation and guarded
rename, reflection provenance with splice-origin extraction, index-backed
completion and signature help, live GCC worker control with a registered
DAP suite, and the Neovim and VS Code clients.

VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced
from the versioned patches and verified stepping reflection/template code
with projected values 17/34 and 41/82.
2026-12-05 14:06:50 +03:00

3.2 KiB

VoidLanguageServer development

Read docs/agent-workflow/STATE.md and TASKS.md, then the relevant roadmap. The user authorized implementation of the full roadmap on2026-11-27. Preserve all requirements, dependency gates and acceptance criteria. Compiler semantics, native VBS integration, indexing, debugging and editor plugins remain incomplete until implemented and verified. The executable supports incremental document sync, passive build context selection and opt-in stock GCC diagnostics.

Build and dependency rules

VoidBuildSystem is the primary build system per D-025. From the repository root run tools/prepare-voidlibrary, then vbs build and vbs test with the same absolute build directory and profile. See README.md for the full commands and the tested VBS install prerequisite. CMake remains available for comparison. Use dev cpp-gcc -c COMMAND... (observed GCC 16.2.0). The bootstrap uses C++26, -freflection, CMake 4+ and Ninja. Per user decision D-021, VoidLibrary follows main; do not restore a commit pin without a new user instruction. Record the exact tested commit in docs/agent-workflow/VERIFICATION.md. The explicit VLS_VOID_SOURCE_DIR override is development-only; never modify the external checkout or copy its secrets. VoidLibrary main now includes decimal support; record the actual tested revision and require the JSON capability suite to pass. Do not implement a competing parser.

Comparison checks

dev cpp-gcc -c cmake -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
dev cpp-gcc -c cmake --build build/bootstrap
dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure

Use the actual registered tests; zero tests is not success. Format only owned C++ paths. To refresh the fetched dependency, add --fresh to configuration and restate required cache settings. Ordinary CMake4 reconfiguration can reuse dependency population stamps.

Contracts

  • stdout is protocol-only in stdio mode; diagnostics use stderr.
  • Never advertise an unimplemented LSP/DAP capability or return fabricated semantics.
  • Keep document, build-context, backend and dependency identities in analysis results.
  • VBS declaration JSON is not its future resolved tooling export.
  • Metadata does not authorize compiler/plugin/wrapper execution.
  • Keep compiler AST state inside workers; own compiler-specific module caches.
  • Rename requires known provenance, complete affected-context coverage and guarded edits.
  • Debugger live control and custom views share one versioned session.
  • Licensing is deliberately deferred until the backend decision.

Workflow and ownership

Use the supplied Astra/Sol workflow and precise linted task specs. Workers share this checkout unless isolation is established. Root owns docs, decisions, Git initialization and integration. Read TASKS.md for active source ownership before editing. No staging, commits, remote setup, pushing, deployment or sibling-repository changes are authorized by the implementation goal. Never reset, stash, clean or overwrite unrelated work. Do not inspect/index .env files, keys, WG.conf, credentials or ignored caches. No global Nix configuration changes, generated CODEX_HOME edits or tool installers.