Getting error while creating codeQL Database for C# language
- Langage dominant
- CodeQL
- Étoiles
- 10.1k
- Forks
- 2.1k
- Merge moyen
- 2 j 15 h
- PR mergées (30 j)
- 141
Description
Hi,
I was trying to setup CodeQL for Csharp.
while creating codeql database it is throwing below error .
D:\codeql1\codeql>
codeql database create csharp-database4 --language=csharp --overwrite
Initializing database at D:\codeql1\codeql\csharp-database4.
Running build command: [D:\codeql1\codeql\csharp\tools\autobuild.cmd]
[2023-12-05 18:02:54] [build-stdout] CodeQL C# autobuilder
[2023-12-05 18:02:54] [build-stdout] Working directory: D:\codeql1\codeql
[2023-12-05 18:02:54] [build-stdout] Attempting to locate build script
[2023-12-05 18:02:55] [build-stdout] Running cmd.exe /C D:\codeql1\codeql\cpp\tools\autobuild.cmd
[2023-12-05 18:02:55] [build-stderr] The system cannot find the path specified.
[2023-12-05 18:02:55] [build-stdout] Exit code 3
[2023-12-05 18:02:55] [build-stderr] Error: Could not auto-detect a suitable build method
[2023-12-05 18:02:55] [ERROR] Spawned process exited abnormally (code 1; tried to run: [D:\codeql1\codeql\tools\win64\tracer.exe, D:\codeql1\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\codeql1\codeql\csharp\tools\autobuild.cmd])
A fatal error occurred: Exit status 1 from command: [D:\codeql1\codeql\tools\win64\runner.exe, cmd.exe, /C, type, NUL, &&, D:\codeql1\codeql\csharp\tools\autobuild.cmd]
```[tasklist]
### Tasks
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduce the command shown on Windows and inspect csharp/tools/autobuild.cmd, especially why it invokes cpp/tools/autobuild.cmd. Compare the logged working directory and paths with the database-create command; the issue is resolved when C# database creation no longer fails on the missing path and completes successfully.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100