SuffolkLITLab / docassemble-ALWeaver

A tool to help quickly generate draft interviews from an existing document (pdf or DOCX) for the docassemble platform.
https://apps-test.suffolklitlab.org/start/ALWeaver/assembly_line/#/1
MIT License
19 stars 5 forks source link

Weaving Docx files - triggers gather error #933

Closed CaroRob closed 3 months ago

CaroRob commented 3 months ago

Uploaded a simple docx file to Weaver Weaver gives error

Interview has an error. There was a reference to a variable 'interview.questions[0].trigger_gather' that could not be looked up in the question file (for language 'en') or in any of the files incorporated by reference into the question file.

Example document in Teams Backend Development channel

nonprofittechy commented 3 months ago

@CaroRob do you have the version with fields added? the ones you shared both don't have any fields in them. i suspect it's something with the Jinja2, although I'm not sure

Edit: actually, I can reproduce this when I use "auto drafting mode" on the latest version as well.

nonprofittechy commented 3 months ago

Additional update: the auto gather error only seems to happen when the DOCX doesn't have any fields. auto drafting mode doesn't automatically add fields for you.

I got fooled because there seems to be an issue in Windows when I drag/drop a file from the Windows Subsystem for Linux layer.