Troubleshooting
Book examples do not run from the browser
Section titled “Book examples do not run from the browser”- Start
shape-server:
cargo run -p shape-server- Start the book UI (Astro Starlight) on port
9090:
cd shape-web/book/book-sitenpm run dev -- --port 9090- Verify backend health:
curl http://localhost:9091/v1/api/healthParse/type errors point to stale docs examples
Section titled “Parse/type errors point to stale docs examples”If you see syntax mismatches, check that examples use current syntax:
from ... use { ... }fndeclarationsOption<T>/Result<T>(not null-style APIs)
Extension not loading
Section titled “Extension not loading”- Confirm
[[extensions]]pathis correct and points to a built.so. - Confirm ABI exports are present (
shape_plugin_info, capability manifest/vtable). - Check runtime diagnostics for missing required capabilities.
Lockfile issues
Section titled “Lockfile issues”- Project mode uses
shape.lock. - Standalone scripts use
<script>.lock. - For external-frozen builds, missing artifacts are hard errors.
- Native artifacts are matched by current host target and fingerprint. If a lockfile came from another machine, rerun in update mode to add a matching native artifact for this host.