RepoSense icon indicating copy to clipboard operation
RepoSense copied to clipboard

Some PlantUML diagrams will not render in deployed RepoSense website

Open rolandyuwy opened this issue 4 years ago • 1 comments

Tell us about your environment

  • RepoSense Version: master
  • OS and Version: windows10
  • Web Browser and Version (if applicable): Chrome

Please include the steps to reproduce the bug.

  1. Visit https://docs-1406-pr-reposense-reposense.surge.sh/dg/report.html for the surge preview of #1406, which replaces images in the Developer Guide with PlantUML diagrams, to incorporate MarkBind's native support for PlantUML and improve scalability.
  2. Scroll to Report architecture section to view the PlantUML diagram.
  3. Scroll to Summary view and Authorship view to view the other PlantUML diagrams.

What was expected to happen? The PlantUML component diagram in the Report architecture section should be rendered as such: image

What actually happened? Please include a screenshot of the output. The PlantUML component diagram in the Report architecture section is not rendered, with an error output shown. Other PlantUML diagrams are rendered. image

If possible, include the URL to your RepoSense report or log files (if any).

If possible, describe the solution.

  • The error output indicated that Graphvis is uninstalled in the deployed website
  • The root issue of PlantUML diagrams not rendering is not solved in this issue: https://github.com/MarkBind/markbind/issues/916
  • A possible solution is to include the following lines in the build configuration file (.travis.yml) to install Graphviz on Linux for in the deployment repository:
before_install:
  - sudo apt-get -y install graphviz

rolandyuwy avatar Jan 23 '21 06:01 rolandyuwy

I'm not even sure PlantUML diagrams will work with surge/netlify previews. You may want to ask the MarkBind guys (e.g., file a bug report or query in their issue tracker)

damithc avatar Jan 23 '21 06:01 damithc

Might be relevant for us: https://github.com/MarkBind/markbind/issues/1903#issuecomment-1098778682

yhtMinceraft1010X avatar May 02 '23 04:05 yhtMinceraft1010X