"Show AST" not working in codeql tab
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- c, typescript, vscode
- Domain
- devtools
Research direction
Start with the CodeQL tab's "Show AST" action and compare its command path with the context-menu "Show AST" action, which works for the same source file. Reproduce using the listed steps and confirm that the tab action displays the AST at the editor cursor without the invalid-source error.
Written by the indexing model from the issue text.
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.
- Dominant language
- TypeScript
- Stars
- 539
- Forks
- 240
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 29
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/vscode-codeql
-
bug VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#4471 · 1 comment ·
-
bug enhancement VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#592 · 2 comments ·
-
enhancement VSCode
Difficulty 3/5 1-2 days Newbie friendliness 55/100
github/vscode-codeql#4432 · 1 comment ·
-
bug VSCode
Difficulty 3/5 1-2 days Newbie friendliness 52/100
github/vscode-codeql#4356 ·
-
CLI test failure Opencli-test-failure
Difficulty 3/5 1-2 days Newbie friendliness 32/100
github/vscode-codeql#4330 · 4 comments ·
All issues in github/vscode-codeql
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·