Mermaid icon indicating copy to clipboard operation
Mermaid copied to clipboard

When using SMW query with format=gantt, a colon in the "task" value for a page in the results will prevent the chart from being generated

Open darenwelsh opened this issue 3 years ago • 4 comments

Setup and configuration

  • Mermaid version: 2.1.1
  • MediaWiki version: 1.31.12 (ef13e11)
  • PHP version: 7.2.34 (apache2handler)
  • Database system (MySQL, PostgresQL, etc.) and version: 5.5.68-MariaDB

Issue

I noticed today that a Gantt chart was not rendering. It had worked for months. I finally isolated the culprit to a wiki page that had a colon ":" as part of the value for the SMW property "Title" (not PAGENAME, just a property value). This page did not have the colon character for a long time and then just recently someone decided to change it that way. When I changed this value to not include the colon character, everything worked fine again.

darenwelsh avatar Mar 30 '21 19:03 darenwelsh

Thanks for reporting. @gesinn-it FYI: I believe you are intensely using this format.

kghbln avatar Mar 30 '21 21:03 kghbln

@kghbln no, we are mainly using Mermaid as part of SRF/Gantt https://github.com/SemanticMediaWiki/SemanticResultFormats/tree/master/formats/Gantt. @darenwelsh can you try to find out, if SRF/Gantt is also affected by this issue?

gesinn-it-gea avatar Mar 31 '21 06:03 gesinn-it-gea

I don't understand how these are different. This seems exactly like what I'm doing. https://www.semantic-mediawiki.org/wiki/Help:Gantt_format

darenwelsh avatar Mar 31 '21 13:03 darenwelsh

https://github.com/mermaid-js/mermaid/issues/742

gesinn-it-gea avatar Apr 20 '21 07:04 gesinn-it-gea