Closed real-mikhail closed 10 months ago
@JanKrivanek FYI in case you can see what could be going wrong
I'm running into this for any binfile I try to open.
Unfortunately AFK, so can only debug in couple hours. But on a first sight - for some reason a new format (with offsets) seem to be assumed, while rhe logs are likely version <17
Confirmed the binlog opens fine with https://github.com/KirillOsenkov/MSBuildStructuredLog/commit/ca260010d61647759ff3d54cfd5cd4707e31b8fa and fails to open with the latest main
This is related to reading ProjectEvaluationFinishedEventArgs:
The problem is here: https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/7901b7f3098b3cca6770de56d547856ce84b5fa2/src/StructuredLogger/BinaryLogger/BuildEventArgsReader.cs#L726-L731
Compare to before: https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/ca260010d61647759ff3d54cfd5cd4707e31b8fa/src/StructuredLogger/BinaryLogger/BuildEventArgsReader.cs#L568-L572
@JanKrivanek I'm trying to understand this change above
I pushed out a mitigation here: https://github.com/KirillOsenkov/MSBuildStructuredLog/commit/d72b8bf03472252dbee60755721539bc38a13010
I pushed out 2.2.156 of the binlog viewer: https://github.com/KirillOsenkov/MSBuildStructuredLog/releases/tag/v2.2.156
It should be reading existing binlogs correctly.
@JanKrivanek there's no urgency in mitigating this now. You can take your time and do it later this week or whenever.
@real-mikhail @shmuelie if you could please try the version 2.2.156 that I just released
Yup, works now!
Yes, the issue is gone. Thank you so much for the quick response and fix!
Binlog is created on empty .NET solution via Rider 2023.3.2 (Reload Project and Show Logs action). I'm not sure whether the issue is on Rider side or in MSBuild Structured Log Viewer but I assume that Rider is using standard way to create binlog.
Program version: 2.2.155
The error:
I'm attaching repro solution and binlog.