XCLogParser icon indicating copy to clipboard operation
XCLogParser copied to clipboard

Subtask.html has no data when report to html

Open ma125125t opened this issue 4 years ago • 2 comments

Command

xclogparser parse --reporter html --file F2E3C0C0-B5A9-493D-BC52-85A59533D701.xcactivitylog

Reproduce:

xlogfile:F2E3C0C0-B5A9-493D-BC52-85A59533D701.xcactivitylog.zip

My html result: 20210709143032.zip

Index.html looks well,but if we click a single task to step in.There is no data in it.

index.html image

subtask.html image

ps:If I use json reporter,it works well,there is data in subtask.

ma125125t avatar Jul 09 '21 09:07 ma125125t

find where goes wrong: there is character "'" in my computer name, so the code execute error. const stepUrl = window.location.href.replace(encodeURI('fang's_MacBook_Pro_22C3BD02-CC19-4730-AE2B-0F84D9752A77_2568.html'), targetId + '.html'); Maybe we should use "" to represent string.

ma125125t avatar Jul 12 '21 07:07 ma125125t

This issue can be sidestepped by passing --machine_name fang as a parameter to xclogparser.

dhoskins avatar Oct 05 '21 10:10 dhoskins