Skip to content

Use AST Viewer with testproj databases #1347

Closed
@gsingh93

Description

@gsingh93

If create a test in vscode, run it, and import the generated .testproj database, I can do most normal operations on this database except for use the AST Viewer. When I open the file in foo.testproj/src/path/to/code.c and click the AST Viewer button, I get the error: "Cannot view the AST. Please select a valid source file inside a CodeQL database. (codeQL.viewAst)"

The only way I can get this to work is if I manually build a database from the command line with codeql database create instead of using vscode, and then open the file in the src.zip file, but this is inconvenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions