Cache can cause schmas to not be built
- Dominant language
- Scala
- Stars
- 2
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
If you run `packageDaffodilBin` and something goes wrong (e.g. schema compilation failure, typo in sbt configuration) it might not generate a saved parser. But the `FileFunction.cached` function the plugin uses to look for changes and determine if it needs to rebuild the parser doesn't know this--it thinks everything finished successfully. So running the command again won't do anything--it won't compile the schema and it won't error. It just thinks there's no work that needs to be done.
I think `FileFunction.cached` is supposed to handle this, so we might be using it incorrectly.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the packageDaffodilBin command to the FileFunction.cached call and reproduce a failed schema compilation or sbt-configuration typo. Confirm that no saved parser is produced and that rerunning currently skips the work; done means the failure is reported and a subsequent run retries schema compilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100