Skip to content

Unable to create a database for a Javascript project #7213

@Shivam60

Description

@Shivam60

Description of the issue

I am using codeQl CLI to create a database and analyze it
I am using codeql cli version to create a database of the extension Links para Serviços Públicos em Portugal. Downloads link here I extracted the link using fiddler.

I first unzip the package using 7Zip and then use codeql cli to create a database out of it.
codeql database create %databaseOutputPath% --source-root=%sourcePath% --language=javascript --threads=0

Each time i run i get this following error.

[2021-11-23 12:14:37] [build-stdout] Done extracting E:\codeql-home\codeql\javascript\tools\data\externs\web\w3c_rtc.js (291 ms) [2021-11-23 12:14:37] [build-stdout] Done extracting E:\codeql-home\codeql\javascript\tools\data\externs\web\webgl.js (250 ms) [2021-11-23 12:14:37] [build-stderr] Only found JavaScript or TypeScript files that were empty or contained syntax errors. [2021-11-23 12:14:37] [ERROR] Spawned process exited abnormally (code -1; tried to run: [E:\codeql-home\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, E:\codeql-home\codeql\javascript\tools\autobuild.cmd]) A fatal error occurred: Exit status -1 from command: [E:\codeql-home\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, E:\codeql-home\codeql\javascript\tools\autobuild.cmd]

My codeQl CLI version is 2.6.0

CodeQL command-line toolchain release 2.6.0. Copyright (C) 2019-2021 GitHub, Inc. Unpacked in: E:\codeql-home\codeql Analysis results depend critically on separately distributed query and extractor modules. To list modules that are visible to the toolchain, use 'codeql resolve qlpacks' and 'codeql resolve languages'.

Why is CodeQl not able to create a db here and what can I do to mitigate this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions