-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Labels
Description
Describe the bug
When I select a database in VS Code and open a source file (C language), go to the CodeQL tab and click "Show AST" I get
Cannot view the AST. Please select a valid source file inside a CodeQL database. (codeQL.viewAst) Error: Cannot view the AST. Please select a valid source file inside a CodeQL database.
Version
The CodeQL and VS Code version in which the bug occurs.
CodeQL extension version: 1.17.7 CodeQL CLI version: 2.23.8 Platform: linux x64
The linux Arch-packaged vscode:
extra/code 1.111.0-2 (30.5 MiB 202.5 MiB) (Installed)
To reproduce
- Open vscode
- Compile database
- Open database in codeql vscode extension
- Navigate to a source file using the vscode file explorer
- Click on the codeql extension button on the left vertical bar
- Click "Show AST"
- Error
Expected behavior
Thingy works, and shows the AST under the editor cursor position.
Additional context
Note that if I do right-click on the source and "Show AST" (instead of clicking the button in the codeql extension tab), it does work properly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.