Menu

Error while loading SLN without Unicode BOM

anoy.
2022-02-07
2022-02-09
  • anoy.

    anoy. - 2022-02-07

    After upgrading Cppcheck from v2.6 to v2.7 some of my (unchanged) solution files can no longer be read and generate the following error:

    cppcheck: error: Visual Studio solution file header not found
    cppcheck: error: failed to load project 'MyProjects.sln'. An error occurred.
    

    After inspecting the working and non-working solutions I've discovered that some of them were encoded as UTF-8-BOM and others without BOM and the absent byte order mark seems to break the parser.
    Both attached files were once created by Visual Studio, I've just removed the included projects.

     
  • anoy.

    anoy. - 2022-02-09

    Thanks for the fix!
    I've just tested it with the nightly build #676 and it worked as expected.

     

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.