plagiarism-basic icon indicating copy to clipboard operation
plagiarism-basic copied to clipboard

Cannot produce HTML output because of missing template

Open nordam opened this issue 11 months ago • 1 comments

When downloading the executable from the releases page, it is not possible to produce html output. I get the following error:

 Thread 'main' panicked at 'Cannot open template path /home/sriram/Projects/plagiarism-basic/plagiarismbasic_lib/templates/report.hbs 

So it seems the template path is hard-coded?

nordam avatar Apr 07 '25 11:04 nordam

Ah, it appears that when the executable was generated, it used the entire path of where it was built to find the template directory: const TEMPLATE_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/report.hbs");

That's not intended. Let me see how I can fix it.

frizensami avatar Apr 07 '25 11:04 frizensami