On this page

Troubleshooting

Start with dryv doctor, then dryv build for compile errors with source locations, then dryv validate for engine checks. Use --json --no-input to read structured diagnostics.

SymptomLikely causeFix
Cannot reference an unregistered declarationA raw property.*() or schema() was passed to field(...)Register it on a group first: const values = group.properties({ Id }), then field(values.Id)
Compile error on enum or namespaceNode strips types but does not compile themUse string-literal unions or property.enum({...})
DRYV_TRUST_REQUIREDYour compiler is project code and has not been trustedRun dryv trust once in the project (CI never trusts automatically)
Author or compiler "incompatible"Mismatched versionsInstall matching versions of the author and compiler (>=0.1.0 <0.2)
Identity contains .A group, app or registration name has a dotRename it; . is reserved for compiler qualification
Operation fails validationMore than one input or outputUse one schema or named fields as the input, and one output
Scoped operation rejectedThe target is not a persisted field, or the policy does not provide the named valueCheck Scoped operations
unknown command 'context'An older global dryvUpdate the CLI: see CLI for pack builders

Reading a diagnostic

Diagnostics carry a stable code, the artifact (your contract file), a source location and a human message. dryv explain change and dryv why <path> explain generation; they do not explain compile errors. For compile errors, fix the line the diagnostic points to, then run dryv build again.

Search in