Ability to Compile schema and reuse parser - #1759
Conversation
7c6f901 to
97f9f5b
Compare
|
How are the saved parsers managed? They seem to be accumulating in the folder. Are they EVER deleted? |
|
When I compile a schema, then start debugging a different schema the daffodil-debugger.log includes the error message shown below. Have also duplicated the error when switching to from debugging one schema to another. The trigger seems to be that there is no saved parser for the second schema. 2026-07-29 10:21:43,920 [io-compute-blocker-18] WARN o.a.d.d.d.DAPCompiler - Failed to load cached parser from C:\Users\LARRY~1.BAR\AppData\Local\Temp\daffodil-vscode\saved-parsers\20263659ff7ec399d6993741e9a77a4550d460305c431dac4279d211ab4253bd.bin; recompiling |
In the current flow, the saved parser is removed here if save-parser returns a nonzero exit code and the file was created, otherwise it rely on OS temp directory cleanup. |
2d6d37e to
eb8bbca
Compare
fix(debugger): treat incompatible parser cache as cache miss Handle invalid or incompatible saved parser files by deleting them and recompiling instead of surfacing a warning on first use. Add a regression test covering this cache-recovery path. |
…nfig option Add schema compile/debug parser cache reuse functionality update documentaion and changelog Updated docs for temp location cleanup fix(debugger): treat incompatible parser cache as cache miss. Handle invalid or incompatible saved parser files by deleting them and recompiling instead of surfacing a warning on first use. Add a regression test covering this cache-recovery path.
eb8bbca to
a299cad
Compare
Closes #1273
Closes #615
Description
Compile Schemacommand, available from:validateSchemaBeforeDebug) so debug launch can validate schema before session startWiki
- doc/Wiki.md
- doc/Introduction-to-Daffodil-VS-Code-Extension.md
- CHANGELOG.md
Review Instructions including Screenshots
.dfdl.xsdschema in VS Code.Daffodil Debug: Compile Schemais available.Compile Schemais available there as well.validateSchemaBeforeDebugis present.Compile Schemaon the schema and confirm it completes successfully.validateSchemaBeforeDebugenabled.Regression Testing