Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: using box for unknown shape cylinder #3

Closed
trstruth opened this issue Jun 9, 2020 · 2 comments
Closed

Warning: using box for unknown shape cylinder #3

trstruth opened this issue Jun 9, 2020 · 2 comments

Comments

@trstruth
Copy link

trstruth commented Jun 9, 2020

Hey, this is a great idea for a tool!

I've run into an issue while trying to create a database component.
Using the following yml input:

title: Title
backgroundColor: '#ffffff'

components:
  -
    kind: database
    label: DB

Throws a warning when I try to generate a png:

$ draft issue.yml | dot -Tpng > repro.png
Warning: using box for unknown shape cylinder

The generated png shows the db component as a box instead of a cylinder:
image

I installed draft via something like

go get -u https://github.com/lucasepe/draft/issues/new
cd $GOPATH/src/github.com/lucasepe/draft/cmd
go install
mv $GOPATH/bin/cmd $GOPATH/bin/draft

Any idea what the issue could be here?

@trstruth
Copy link
Author

trstruth commented Jun 9, 2020

Ran the same thing with the binary downloaded from the Releases tab and hit the same behavior

@trstruth
Copy link
Author

trstruth commented Jun 9, 2020

Looks like an issue with the graphviz version I'm using:

$ dot -V
dot - graphviz version 2.38.0 (20140413.2041)

Apparently it's fixed in version 2.39.x and up

Unfortunately it looks like on Ubuntu 16.04, apt-get install -y graphviz installs 2.38. Maybe a note about this in the README might help others. I'll close the issue out now.

@trstruth trstruth closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant