On this page
B7009: cannot write an output file
Catalog status: active. Default severity: error. Stable name: cannot-write-file. Family: Driver and session failures.
veradic emit or veradic build could not write its output, for example because the directory does not exist or is not writable; or veradic new could not create the project's directory, because it already exists (new never writes into an existing directory) or cannot be made. The note shows the reason.
What to do
Create the directory, or choose another output path with -o. For veradic new, choose a name or a --dir that does not exist yet.
Regression source and further reading
Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.
See driver and session failures, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.