Menu

cppcheclipse error: content is not allowed in prolog

Crane Shao
2023-11-27
2023-12-22
  • Crane Shao

    Crane Shao - 2023-11-27

    Hello,

    I am using cppcheclipse on Code Composer Studio v12.0. It is an eclipse-based IDE by TI.

    It is installed successfully and cppcheck can be started. But there is an error which says
    "Could not initialize cppcheck.
    Could not initialize cppcheck for project .
    Content is not allowed in prolog.
    "
    And after checking Window->Preferences->cppcheclipse -> problem, there is nothing there.
    Both Java and CDT are installed.

    From TI's response to this question, they don't think there is anything that could prevent cppcheclipse running properly. What might be missing in this case?

    Thanks for your help!

    Crane

     
  • Daniel Marjamäki

    hmm I have no idea :-(

    This plugin is not actively maintained unfortunately. And sometimes it doesn't work well.

    I hope we can start maintaining it in the premium company, but at the moment we don't have the resources.

    You should still be able to configure Cppcheck as an external tool.

     
  • Crane Shao

    Crane Shao - 2023-12-02

    Ok got it. Thank Daniel!

     
    • Thomas Arnbjerg

      Thomas Arnbjerg - 2023-12-22

      Use version 2.9.
      Later versions of cppcheck write illegal XML output, which breaks the Eclipse integration:
      "cppcheck: Windows 64-bit binaries currently default to the 'win64' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win64' explicitly if you rely on this."

       

      Last edit: Thomas Arnbjerg 2023-12-22

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.