while analysis project with cppcheck-gui i got red message at top
"The was a critical error with id 'syntaxError'. Analysis was aborted"
can you please add place as filename where this happen
and add this message at "Analysis Log" window tab
and other err/warn message into this tab too
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Interestingly, the message sometimes is "There was a critical error with id 'internalAstError', when checking C:/path/to/file.cpp. Analysis was aborted." (same for 'syntaxError'), but I'm not entirely sure why the path is missing in other cases.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"The was a critical error with id 'syntaxError'. when cheching a file. Analysis was aborted"
"The was a critical error with id 'preprocessorErrorDirective'. when cheching a file. Analysis was aborted"
what the file ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe that if there is 1 file with critical error then the filename is written in the label. If there are more files it just says "a file". Imagine there are 1000 files with critical errors it does not help to write all the filenames in the label.. it's better that you look in the "main view" instead..
Last edit: Daniel Marjamäki 2024-04-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
all errors including critical errors are shown in the "results view".
make sure errors are shown in the "results view" by enabling the toolbar button with a "red circle with a white rectangle" on it.
if you don't see the ids of warnings it's hard to see what is a syntax error etc.. so you can go to edit menu, preferences and check the Display error Id in column "Id".
maybe you can write "syntaxError" in the "quick filter" text box up in the toolbar.
Now all results shown in the "results view" should be syntax errors..
Last edit: Daniel Marjamäki 2024-04-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
while analysis project with cppcheck-gui i got red message at top
"The was a critical error with id 'syntaxError'. Analysis was aborted"
can you please add place as filename where this happen
and add this message at "Analysis Log" window tab
and other err/warn message into this tab too
Interestingly, the message sometimes is "There was a critical error with id 'internalAstError', when checking C:/path/to/file.cpp. Analysis was aborted." (same for 'syntaxError'), but I'm not entirely sure why the path is missing in other cases.
it seems happend when check ifdef BYTE_ORDER condition and process #pragma error case
2.14 dev still the same
"The was a critical error with id 'syntaxError'. when cheching a file. Analysis was aborted"
"The was a critical error with id 'preprocessorErrorDirective'. when cheching a file. Analysis was aborted"
what the file ??
I believe that if there is 1 file with critical error then the filename is written in the label. If there are more files it just says "a file". Imagine there are 1000 files with critical errors it does not help to write all the filenames in the label.. it's better that you look in the "main view" instead..
Last edit: Daniel Marjamäki 2024-04-02
all errors including critical errors are shown in the "results view".
make sure errors are shown in the "results view" by enabling the toolbar button with a "red circle with a white rectangle" on it.
if you don't see the ids of warnings it's hard to see what is a syntax error etc.. so you can go to edit menu, preferences and check the
Display error Id in column "Id"
.maybe you can write "syntaxError" in the "quick filter" text box up in the toolbar.
Now all results shown in the "results view" should be syntax errors..
Last edit: Daniel Marjamäki 2024-04-02