# VoidLanguageServer A C++26 language server project for Void, using VoidLibrary. The target product combines native Void Build System integration, compilation-database compatibility, core IDE features, modules/reflection, and a live/replay metaprogram debugger for Neovim and VS Code. **Current state:** milestone0 shell implementation. The CLI and stdio LSP lifecycle are implemented and the ordinary unit/process suites pass. Full JSON conformance and final shell acceptance are **blocked on VoidLibrary's decimal-support update**. The capability suite intentionally reports the missing behavior as failures. This is not yet a usable clangd replacement. Compiler semantics, document synchronization, build providers, indexing, debugging and editor plugins are planned, not implemented. The shell advertises no semantic capabilities. See the [27-part roadmap](docs/roadmap/README.md), [requirements](docs/roadmap/REQUIREMENTS.md) and [architecture](docs/roadmap/ARCHITECTURE.md). ## Build and test Requires GCC16+ with C++26 reflection, CMake4+, Ninja and Git. The observed local environment provides GCC16.2 via `dev cpp-gcc`. On another system, run the underlying CMake commands in an equivalent toolchain environment; `dev` is a local wrapper. ```sh 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 ``` Default configuration follows VoidLibrary's main branch, as requested. Re-run configuration to check for upstream updates. The currently observed main revision still lacks decimal/exponent support; passing configure and compilation does not mean the full test suite passes. See [dependency provenance](docs/DEPENDENCIES.md) and [observed verification](docs/agent-workflow/VERIFICATION.md). For explicit development against a local checkout, use a separate output tree: ```sh dev cpp-gcc -c cmake -S . -B build/local -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVLS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary dev cpp-gcc -c cmake --build build/local dev cpp-gcc -c ctest --test-dir build/local --output-on-failure ``` The override bypasses upstream main and is reported during configuration. The dependency checkout is never an output directory and must remain unchanged. ## Run ```sh ./build/bootstrap/vls --help ./build/bootstrap/vls --version ./build/bootstrap/vls --stdio ``` No arguments also starts stdio mode. Send Content-Length-framed UTF-8 JSON through stdin; stdout contains only protocol messages. Logs/errors go to stderr. The shell handles initialize/initialized/shutdown/exit, protocol errors and unknown methods. It returns empty capabilities and no fabricated semantic results. Header/body/depth limits are8KiB/16MiB/64. Help and version are standalone CLI modes. Install the executable into an explicit local prefix after building: ```sh dev cpp-gcc -c cmake --install build/bootstrap --prefix /tmp/vls-install /tmp/vls-install/bin/vls --version ``` The development dependency is linked statically; standard compiler/runtime libraries remain system requirements. Packaging/distribution and licensing are later gates. ## Development [Current state](docs/agent-workflow/STATE.md) and [task ownership](docs/agent-workflow/TASKS.md) distinguish implemented, verified and blocked work. User decisions and preflight corrections are recorded alongside them. Run meaningful tests and obtain independent review of integrated changes. The first usable release includes both live and recorded replay debugging of templates, constraints, constexpr/consteval and reflection, through DAP and custom views in both editors. Frontend/debugger feasibility and native VBS producer work are explicit gates. CMake bootstraps the repository; native VBS self-build follows. Project licensing is intentionally deferred until the backend decision. Local initialization does not authorize commits, pushes, publication or sibling edits.