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

stack dot seems broken #431

Closed
rvion opened this issue Jun 26, 2015 · 5 comments · Fixed by #437
Closed

stack dot seems broken #431

rvion opened this issue Jun 26, 2015 · 5 comments · Fixed by #437

Comments

@rvion
Copy link
Contributor

rvion commented Jun 26, 2015

stack dot seems broken

I'm on

stack --version
Version 0.1.1.0, Git revision 2cac22d2a26dab6faa00c6f03edf5798affb7840

In stack code directory, I did:

$ stack dot > test.dot
$ dot -Tpng < test.dot > graph.png
Fontconfig warning: ignoring UTF-8: not a valid region tag

here is the result
graph

but I don't see dependencies.

Here is the exact output given by stack dot

$ stack dot
digraph deps {
splines=polyline;
{rank=max; "stack"}
}

here is the help for stack dot:

stack dot --help
Usage: stack dot
  Visualize your project's dependency graph using Graphviz dot
@zudov
Copy link
Contributor

zudov commented Jun 27, 2015

It visualizes dependencies of projects with multiple packages. Try to run it on yesod repo, or something else that has multiple packages.

markus1189 added a commit to markus1189/stack that referenced this issue Jun 27, 2015
markus1189 added a commit to markus1189/stack that referenced this issue Jun 27, 2015
@markus1189
Copy link
Contributor

Oh if that is the intendend use case I guess I can delete my branch :)

I also thought like @rvion from the help text that it should display the external dependencies

@zudov
Copy link
Contributor

zudov commented Jun 27, 2015

@markus1189 I think it would be great if there was an option to build a graph of external dependencies. Something like stack dot --external.

Actually when I first saw help text I also thought that it would give me a graph of external dependencies. Perhaps, it would worth to add notice to the help text, or make the --external behaviour default and add an --internal flag.

@rvion
Copy link
Contributor Author

rvion commented Jun 27, 2015

@markus1189 Thanks :)

As a side note, I think external being the default would be a bit better, but no strong opinion.

@snoyberg
Copy link
Contributor

Let's track the rest of this in the PR to avoid splitting the discussion.

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

Successfully merging a pull request may close this issue.

4 participants