feat(ide): emit a CMake File API codemodel reply
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 8s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s

This commit is contained in:
faumaray committed 2026-12-05 06:41:50 +03:00
1 parent 083af6af79
commit 6cf8c53a02
6 files changed
+334 -19

No files matched your search

+2
View File
@@ -294,6 +294,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 100 (CMakePresets Import)**: `Config::load_cmake_presets` parses `CMakePresets.json`-style configure presets (resolving `inherits` as a string or array with cycle detection), expands `${sourceDir}`, merges `cacheVariables`, and maps `CMAKE_BUILD_TYPE`/`CMAKE_CXX_COMPILER` onto VBS profile/compiler. The `vbs presets` CLI lists the mapping or prints the equivalent `vbs build` command for one preset; covered by `FullV1Tests.cmake_presets_import_maps_inherits_and_cache` and a CLI contract.
- **Wave 101 (CMake File API Shim)**: `vbs ide generate` now regenerates a CMake File API `codemodel-v2` reply tree (`build/.cmake/api/v1/reply/{index,codemodel-v2,directory,target-*}.json`) from the lowered graph, including per-target type, artifacts, `nameOnDisk`, sources, and compile groups (language, command fragments, defines, includes). Covered by `FullV1Tests.ide_integration_compdb_build_cpp_and_editor_configs_end_to_end`, which walks index → codemodel → target JSON.
## Remaining future scope
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
+1
View File
@@ -104,4 +104,5 @@ Base HEAD: `fe0d1a6`
| Wave 98 (Signed installer archives) | `--signing-key` writes `.sha256`/`.sig`/`.pub` for the installer archive and fails closed without a backend | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 99 (Windows path semantics) | Case-insensitive output collision + reserved device name validation for Windows targets; Wine case-insensitivity assertion | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Windows regression test passes, full CTest 8/8) | `src/Graph/Graph.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 100 (CMakePresets import) | `Config::load_cmake_presets` (inherits, `${sourceDir}`, cache merge, profile/compiler mapping) + `vbs presets` CLI | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; presets test passes, full CTest 8/8) | `include/Void/Build/Config/Presets.hpp`, `src/Config/Presets.cpp`, `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, docs |
| Wave 101 (CMake File API shim) | `vbs ide generate` emits `.cmake/api/v1/reply` codemodel-v2 + directory + per-target JSON from the lowered graph | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; IDE integration test passes, full CTest 8/8) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
+10
View File
@@ -1418,6 +1418,16 @@ dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc -p wine64 -c build/pinned/bin/vbs_v1
- CLI contract: `vbs presets --help` passes.
- Full CTest: **8 / 8 passed** in 276.96 s.
## CMake File API Shim (GCC 16.2, pin `0002e74`)
- `vbs ide generate` writes `build/.cmake/api/v1/reply/` with an `index-*.json` listing
`codemodel-v2`, a `codemodel-v2-*.json` referencing a directory file and all target files, and
`target-*.json` per target (kind/type/artifacts/`nameOnDisk`/sources/compileGroups).
- All emitted JSON files validate as strict JSON (checked with a JSON parser during development).
- `ide_integration_compdb_build_cpp_and_editor_configs_end_to_end` walks index → codemodel →
target and asserts the executable target has artifacts and compile groups: **passed** (3.14 s).
- Full CTest: **8 / 8 passed** in 276.69 s.
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).