Skip to content

Highlight circular dependencies in graph #121

Open
@timoxley

Description

@timoxley

Clear and concise description of the problem

Sometimes I get runtime errors that appear due to (indirect) circular dependencies. Often the stack trace isn't particularly useful at tracking down what led to the circular dependency. It would be great if I could more clearly visualize dependency chains in the inspector graph.

Suggested solution

Use different colours to highlight indirect and direct circular dependencies in the inspector graph when a node is selected.
Perhaps it could also use different colours for type imports vs concrete imports if that's easy to detect.

Ideally incoming and outgoing dependencies would also use different colours and there would be a more clear differentiation between the selected node's edges and unrelated edges, currently there is some difference, the lines get thicker, but I find it a bit too subtle.

Alternative

Log circular dependency chains in the output somewhere.

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions