WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

templates are searched relative to the html file path, not the yaml like the docs claim

Open ddi-acassidy opened this issue 6 months ago • 3 comments

If i run wireviz -o Output -p lib.yaml 27-*.yaml, the template I specify in my yaml file is not found. Turns out its looking in the "Output" folder. The docs claim it should be found "In the same folder as the YAML input file."

ddi-acassidy avatar Jul 11 '25 22:07 ddi-acassidy

Thank you, @ddi-acassidy for reporting this bug! I have tested this by using demo02.yml with a modified custom template name, and can verify that the output folder is searched instead of the input folder (when different).

This bug is not detected automatically because none of the examples/demos/tutorials

  • specify a template name from the input folder, and
  • specify an output folder different from the input folder.

kvid avatar Jul 25 '25 15:07 kvid

Hello everyone, Was this bug fixed?

raquenaengineering avatar Oct 31 '25 17:10 raquenaengineering

The PR #473 suggests a fix. I reviewed it and verified that the simple cases are resolved, but I suggested a few changes to also resolve the more general cases. You can also try it to see if your use case is resolved.

kvid avatar Nov 09 '25 20:11 kvid