UECompileTimesVisualizer icon indicating copy to clipboard operation
UECompileTimesVisualizer copied to clipboard

MSVC output - assert with precompiled headers

Open Jaa-c opened this issue 6 years ago • 2 comments

Hi, I have a Qt project with precompiled headers and for my output, I end up with an assert:

    Parsing includes...
Traceback (most recent call last):
  File "main.py", line 278, in <module>
    includes_tree = parse_section(current_file, get_include_name)
  File "main.py", line 226, in parse_section
    count = parse_count()
  File "main.py", line 111, in parse_count
    return parse_int("Count:")
  File "main.py", line 95, in parse_int
    assert string in line, "{} not in {}".format(string, line)
AssertionError: Count: not in cl -c -Yc -Fprelease\Base_pch.pch -Forelease\Base_pch.obj /Bt+ /d2cgsummary /d1reportTime /std:c++17 -DNDEBUG /Fdrelease\Base.vc.pdb -TP ..\..\src\Base\stable.h

I've attached the beginning of the log: sample_log.txt

Thanks for looking into it.

Jaa-c avatar Jan 16 '19 13:01 Jaa-c

@Jaa-c Added some code to support that log, there will probably still be some error for the full log though

Phyronnaz avatar Jan 16 '19 16:01 Phyronnaz

Thanks for the quick fix! There are some other issues, I'll try to fix them and will create a pull request. If I can't do it, I'll try to create some small sample log...

Jaa-c avatar Jan 16 '19 16:01 Jaa-c