SwissTPH / tricc

Tool for rapid implementation of clinical content (TRICC) for CDSS/XFORM
3 stars 0 forks source link

TRICC crashes with diagrams without images #21

Open rukshn opened 9 months ago

rukshn commented 9 months ago

TRICC fails to compile a diagram and generate an output if the diagram doesn't contain any images, and crashes with an error failure to write the excel file. The error is due to no images being present in the diagram and temporary folder not being created to store the diagrams and the xform file.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. Draw a custom diagram without images
  2. Upload the diagram to TRICC webapp
  3. Run the convert function by clicking convert button

Context

Your Environment

rukshn commented 9 months ago

Fixed with commit https://github.com/SwissTPH/tricc/commit/2557c715d6ac711857f7a8cca16c8ec39cad2232

rukshn commented 9 months ago

The issue exists in other strategies, but need to be fixed in other strategies, https://github.com/SwissTPH/tricc/commit/2557c715d6ac711857f7a8cca16c8ec39cad2232 only fix it for the XLSFormStrategy

rukshn commented 9 months ago

Merged to development branch with https://github.com/SwissTPH/tricc/commit/baaf1455ba99a810ec718ff5be83bc90b8b48891 :tada: