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

Open
@felickz

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.

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