Skip to content

Added support for the latest version of CodeQL CLI #4393

Description

@nbxiglk0

Describe the bug
I created a code database using the latest CodeQL CLI version 2.25.4, configured the latest CodeQL CLI executable path in the VS Code CodeQL settings, cloned the latest vscode-codeql-starter repository, and ran the query statement under CWE. However, I got the error message: "Failed to run query: There was no upgrade path from the database dbscheme (de4ded61) to the target dbscheme (9f6026c4)".

I found a similar question, and it seems to be related to the VS Code CodeQL version.
github/codeql#12331
Version

CodeQL:2.25.4
CodeQL extension version: 1.17.7
CodeQL CLI version: 2.25.4
Platform: win32 x64

To reproduce

  1. use codeql 2.25.4 version ,codeql database create --source-root xxx/xxxx/ --language=java --build-mode=none /a/b/c
  2. run query in vscode-codeql-starter repository Security/CWE/.
Image

Expected behavior
get the query result。

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions