Skip to content

Troubleshooting

Common issues and solutions.

Type Checking Issues

Module not found

Error:

error: Cannot find module './.divvun-rt/hfst.ts'

Solution: Run sync to generate types:

divvun-runtime sync

Wrong command signature

Error:

error: Property 'model_path' is missing

Solution: Check command parameters in Modules & Commands or generated .divvun-rt/ types.

Runtime Issues

File not found

Error:

Error: Asset not found: tokeniser.pmhfst

Solution: Verify file exists in assets/ directory:

ls assets/tokeniser.pmhfst

Message not found

Error:

Warning: Message ID 'typo' not found in locale 'en'

Solution: Add message to errors-en.ftl:

typo = Spelling error
    .desc = The word {$1} is not in the dictionary.

Wrong locale messages

Messages appear in wrong language.

Solution: Set locale priority:

divvun-runtime run -c 'suggest={"locales":["fo","en"]}' bundle.drb "text"

Pipeline not found

Error:

Error: Pipeline 'spellOnly' not found

Solution: List available pipelines:

divvun-runtime list bundle.drb

Use exact pipeline name:

divvun-runtime run --pipeline spell-only bundle.drb "text"

Debug Logging

Enable detailed logging:

RUST_LOG=divvun_runtime=debug divvun-runtime run bundle.drb "input"

Module-specific logging:

export RUST_LOG=divvun_runtime::modules::cg3=trace

Getting Help

If issues persist:

  1. Check Configuration Reference
  2. Review CLI Reference
  3. Search GitHub issues
  4. File a bug report with:
  5. Command used
  6. Full error message
  7. Platform (macOS/Linux)
  8. Rust version (rustc --version)