45 lines
2.6 KiB
Markdown
45 lines
2.6 KiB
Markdown
# VoidLanguageServer development
|
|
|
|
Read docs/agent-workflow/STATE.md and TASKS.md, then the relevant roadmap.
|
|
The approved current scope is repository initialization, detailed plans and a
|
|
compiling LSP lifecycle shell. Compiler semantics, native VBS integration, indexing,
|
|
debugging and editor plugins remain future milestones until implemented and verified.
|
|
|
|
## Build and dependency rules
|
|
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's decimal support is an upstream prerequisite. Do not implement a
|
|
competing decimal parser or claim JSON conformance before the capability suite passes.
|
|
|
|
Planned bootstrap checks, once CMakeLists.txt exists:
|
|
```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
|
|
```
|
|
Use the actual registered tests; zero tests is not success. Format only owned C++ paths.
|
|
|
|
## 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 bootstrap task. 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.
|