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。

Activity

  1. nickrolfe commented on May 13, 2026

    @nickrolfe
    Contributor

    Hi @nbxiglk0, this error usually happens when you have an old version of the ql submodule checked out.

    If you run

    cd /path/to/vscode-codeql-starter/ql
    git log -n 1 --oneline
    

    I would expect that to print the following, showing that the submodule is on the commit corresponding to the v2.25.4 release:

    6a952512065 (HEAD, tag: codeql-cli/v2.25.4, tag: codeql-cli/latest, origin/lgtm.com, origin/codeql-cli-2.25.4) Merge pull request #21793 from github/release-prep/2.25.4
    

    If it shows an older commit instead, then your submodule may be out of date, and you need to run:

    cd /path/to/vscode-codeql-starter/
    git submodule update --init
    
  2. kaspersv commented on Jun 26, 2026

    @kaspersv
    Contributor

    I'm closing this issue due to lack of activity. Please reopen, if the issue wasn't resolved by updating the ql submodule, @nbxiglk0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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