CodeChecker trashing all C++ files
I maintainer di solito rispondono entro 8 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start from the CodeChecker analyze invocation on a compile_commands.json generated by xcpretty, and reproduce the 'clang: error: no input files' failure for each C++ entry. Check how the analyzer builds the clang command from each database entry, especially the file argument on macOS. Done when analysis runs on the sample Xcode database and no source files are modified or deleted.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
I have an Xcode project and I've created the compile_commands.json as follows:
xcodebuild -project path/to/.xcodeproj | \
xcpretty -r json-compilation-database --output path/for/compile_commands.json
Following the manual, I've then execute CodeChecker as follows:
CodeChecker analyze ./compile_commands.json --enable sensitive --output ./reports
The code checker will then print lots of output as follows:
[ERROR 2024-07-18 15:51] - Analyzing SetText.cpp with clangsa failed!
[ERROR 2024-07-18 15:51] -
[ERROR 2024-07-18 15:51] -
clang: error: no input files
[ERROR 2024-07-18 15:51] -
[ERROR 2024-07-18 15:51] -
clang: error: no input files
[ERROR 2024-07-18 15:51] -
[ERROR 2024-07-18 15:51] -
clang: error: no input files
[ERROR 2024-07-18 15:51] -
[ERROR 2024-07-18 15:51] -
clang: error: no input files
If I after running the analyzer run git status I see that it has trashed every C++ file in my project. I can manually run the compilation commands in the JSON and they work just fine. Paths that it generates to the files are also correct.
CodeChecker version
6.23.1
Expected behaviour
It should actually do the analysis.
Desktop (please complete the following information)
- OS: MacOS Sonoma 14.5
- Lingua principale
- Python
- Stelle
- 2.6k
- Fork
- 494
- Merge medio
- 9g 2h
- PR unite (30g)
- 23
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Ericsson/codechecker
-
infer analyzer does not work with --jobsForse già presa @pcbeingused333 l’ha presa 6 giorni fa. Apertagood to go :rocket:
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Ericsson/codechecker#5110 ·
I maintainer di solito rispondono entro 8 giorni
-
Bug Report: diagtool not found on WindowsForse già presa @pujitha24 l’ha presa 17 giorni fa. Apertagood to go :rocket:
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Ericsson/codechecker#4802 ·
I maintainer di solito rispondono entro 8 giorni
-
analyzer :chart_with_upwards_trend: CLI :computer: discussion :bulb: enhancement :star2:
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Ericsson/codechecker#3836 · 2 commenti ·
I maintainer di solito rispondono entro 8 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Ericsson/codechecker#5165 ·
I maintainer di solito rispondono entro 8 giorni
-
Cppcheck addon reports are dropped since 6.27 (regression from #4690)Forse già presa @pcbeingused333 l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
Ericsson/codechecker#5161 ·
I maintainer di solito rispondono entro 8 giorni
Tutte le issue di Ericsson/codechecker
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
yt-project/yt#5624 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#148376 ·
I maintainer di solito rispondono entro 1 giorno
-
Analysis
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SACGF/variantgrid#2615 ·
I maintainer di solito rispondono entro 1 giorno