Skip to content

ERROR: Invalid data extension file: Cannot coerce empty String ("") to com.semmle.frontend.packs.extensions.AddsTo value (but could if coercion was enabled using CoercionConfig) (CodeQL-Community-Packs\python\ext\generated\flask.model.yml:2,14-14) #130

Closed

Description

@felickz

Running in vscode local with the Community repo loaded in the workspace fails when enabling model packs:

    //https://codeql.github.com/docs/codeql-for-visual-studio-code/using-the-codeql-model-editor/#testing-codeql-model-packs-in-vs-code
    //To run queries on a CodeQL database with any model packs that are stored within the .github/codeql/extensions directory of the workspace,
    "codeQL.runningQueries.useExtensionPacks": "all",

Errors:

[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\flask.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\ghastoolkit.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\itsdangerous.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\openai.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\pymysql.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) (C:\repos\felickz\vscode-codeql-starter\CodeQL-Community-Packs\python\ext\generated\urllib3.model.yml:2,14-14)
[2025-05-06 16:34:35] [ERROR] resolve extensions-by-pack> ERROR: Invalid data extension file: Cannot coerce empty String ("") to `com.semmle.frontend.packs.extensions.AddsTo` value (but could if coercion was enabled using `CoercionConfig`) 

via

codeql --version
CodeQL command-line toolchain release 2.21.2.

Activity

  1. Hug0Vincent commented on Mar 31, 2026

    @Hug0Vincent
    Contributor

    I have the same error, did you manage to fix it ?

  2. felickz commented on Apr 7, 2026

    @felickz
    ContributorAuthor

    i have this repo cloned as a submodule - I just merged #146 to fix it up after grabbing latest codeql cli .. i no longer see this error

    https://github.com/GitHubSecurityLab/CodeQL-Community-Packs/pull/146/changes#diff-543e45feda974ddc5b59eecba11fb336647c130767c9329dba7d602109cf4d70

  3. Hug0Vincent commented on Apr 8, 2026

    @Hug0Vincent
    Contributor

    Thank you

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions