2016-08-09 12 views
0

Я пытаюсь выполнить вывод .dot, сгенерированный плагином sbt-dependency-graph. По какой-то причине, xdot не удается открыть файл с чем-то, что выглядит как ошибка в коде Python:xdot альтернативная/сломанная ошибка print/sbt-dependency-graph

Warning: gvrender_set_style: unsupported style stroke-dasharray: 5 - ignoring 
Warning: gvrender_set_style: unsupported style 5 - ignoring 
Warning: gvrender_set_style: unsupported style stroke-dasharray: 5 - ignoring 
[...] 
Warning: gvrender_set_style: unsupported style 5 - ignoring 
Warning: gvrender_set_style: unsupported style stroke-dasharray: 5 - ignoring 
Warning: gvrender_set_style: unsupported style 5 - ignoring 
Warning: gvrender_set_style: unsupported style stroke-dasharray: 5 - ignoring 
Warning: gvrender_set_style: unsupported style 5 - ignoring 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 2060, in on_open 
    self.open_file(filename) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 2029, in open_file 
    self.set_dotcode(fp.read(), filename) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 2011, in set_dotcode 
    if self.widget.set_dotcode(dotcode, filename): 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1546, in set_dotcode 
    self.set_xdotcode(xdotcode) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1565, in set_xdotcode 
    self.graph = parser.parse() 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1236, in parse 
    DotParser.parse(self) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1036, in parse 
    self.parse_graph() 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1045, in parse_graph 
    self.parse_stmt() 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1091, in parse_stmt 
    self.handle_node(id, attrs) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 1211, in handle_node 
    shapes.extend(parser.parse()) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 658, in parse 
    self.handle_font_characteristics(f) 
    File "/usr/lib/python2.7/dist-packages/xdot.py", line 723, in handle_font_characteristics 
    sys.stderr.write("warning: font characteristics not supported yet\n" % op) 
NameError: global name 'op' is not defined 

.dot файл не содержит каких-либо спецификации шрифтов вообще. Так как я использую xdot много, я могу только представить себе, что ошибка вызвана HTML стиль подсветки, как

[label=<at.iem.sysson<BR/><B>sysson_2.11</B><BR/>1.8.0-SNAPSHOT> style=""] 

Есть ли способ удалить стиль этикетки в SBT-зависимостей-графа, или есть альтернативный .dot просмотрщик для Linux, который не написан в багги-коде Python?

ответ

1

Можно просто запустить dot для преобразования в PDF и обхода Python.

dot -T pdf target/dependencies-compile.dot >out.pdf 
evince out.pdf 

 Смежные вопросы

  • Нет связанных вопросов^_^