X Tutup
The Wayback Machine - https://web.archive.org/web/20230319185601/https://github.com/github/vscode-codeql/issues/1334
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

Graph viewer: empty pane with no feedback on large graphs #1334

Open
nickrolfe opened this issue May 4, 2022 · 0 comments
Open

Graph viewer: empty pane with no feedback on large graphs #1334

nickrolfe opened this issue May 4, 2022 · 0 comments
Labels
bug Something isn't working VSCode

Comments

@nickrolfe
Copy link
Contributor

nickrolfe commented May 4, 2022

When running graph queries that produce large graphs, the graph viewer in the extension just shows the CodeQL Query Results pane as an empty space, and I get no error feedback, even in the extension log.

Here's a query that reproduces the problem for me. You can change the value 9999 up or down to increase/decrease the size of the resulting graph.

/**
 * @kind graph
 * @id foo
 */
class Node extends int {
  Node() { this = [1 .. 9999] }
}

query predicate nodes(Node node, string attr, string val) {
  attr = ["semmle.label", "semmle.order"] and
  val = node.toString()
}

query predicate edges(Node a, Node b, string attr, string val) {
  b / 5 = a and
  (
    attr = "semmle.label" and val = ""
    or
    attr = "semmle.order" and val = b.toString()
  )
}

And here's what I see when I run that:

Screenshot 2022-05-04 at 16 11 54

Ideally, the graph would actually be rendered.

Failing that, I would like to see some kind of error feedback, and the ability to still view the raw edges and nodes results in table format. It might even be nice to give the option to just save a .dot file that I could manually run through graphviz.

@nickrolfe nickrolfe added the bug Something isn't working label May 4, 2022
@github-actions github-actions bot added the VSCode label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VSCode
Projects
None yet
Development

No branches or pull requests

1 participant
X Tutup