Menu

precise filename at "Analysis was aborted" GUI

lamoda
2023-09-12
2024-04-02
  • lamoda

    lamoda - 2023-09-12

    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

     
  • anoy.

    anoy. - 2023-09-12

    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.

     
  • lamoda

    lamoda - 2023-09-12

    it seems happend when check ifdef BYTE_ORDER condition and process #pragma error case

     
  • lamoda

    lamoda - 2024-03-28

    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 ??

     
    • Daniel Marjamäki

      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
  • Daniel Marjamäki

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.