Open buddh4 opened 4 years ago
phpda.yml
mode: 'usage' source: 'src' filePattern: '*.php' ignore: 'tests' formatter: 'PhpDA\Writer\Strategy\Svg' target: './phpda.svg' groupLength: 1 visitor: - PhpDA\Parser\Visitor\TagCollector - PhpDA\Parser\Visitor\SuperglobalCollector visitorOptions: PhpDA\Parser\Visitor\Required\DeclaredNamespaceCollector: {minDepth: 2, sliceLength: 2} PhpDA\Parser\Visitor\Required\MetaNamespaceCollector: {minDepth: 2, sliceLength: 2} PhpDA\Parser\Visitor\Required\UsedNamespaceCollector: {minDepth: 2, sliceLength: 2} PhpDA\Parser\Visitor\TagCollector: {minDepth: 2, sliceLength: 2}
.\vendor\bin\phpda.bat analyze phpda.yml
Error:
Write dependency graph to C:\xxx\./phpda.svg Error: C:\xxx\AppData\Local\Temp\graE965.tmp: syntax error in line 3 near '-1'
Temp file:
digraph { graph [rankdir="LR" ranksep=1 nodesep=0.1 fontsize=8 label="PhpDependencyAnalysis by Marco Muths (dev-master)"] subgraph cluster_-1 { ...
It seems that graphviz does not accept group ids like subgraph cluster_-1:
subgraph cluster_-1
When I remove the *-1 in https://github.com/mamuz/PhpDependencyAnalysis/blob/v2.0.2/src/Layout/Helper/GroupGenerator.php#L97 everything works fine.
*-1
My Environment
My
phpda.yml
:When I run this command:
Actual behavior:
Error:
Temp file:
It seems that graphviz does not accept group ids like
subgraph cluster_-1
:When I remove the
*-1
in https://github.com/mamuz/PhpDependencyAnalysis/blob/v2.0.2/src/Layout/Helper/GroupGenerator.php#L97 everything works fine.