Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing Xcode 14 log #169

Closed
fzwo opened this issue Jun 8, 2022 · 5 comments · Fixed by #172
Closed

Error parsing Xcode 14 log #169

fzwo opened this issue Jun 8, 2022 · 5 comments · Fixed by #172

Comments

@fzwo
Copy link

fzwo commented Jun 8, 2022

When trying to dump or parse an xcactivitylog file generated by Xcode 14, I get the following error:

Error: Error parsing the log: Unexpected className found parsing DocumentLocation DVTMemberDocumentLocation

@fzwo fzwo changed the title Issue parsing Xcode 14 log Error parsing Xcode 14 log Jun 8, 2022
@akaDuality
Copy link

akaDuality commented Jun 8, 2022

Example of tokens for IDEDiagnosticActivityLogMessage with DVTMemberDocumentLocation

  ▿ 1 : [type: classNameRef, className: "IDEDiagnosticActivityLogMessage"]
    - classNameRef : "IDEDiagnosticActivityLogMessage"
  ▿ 2 : [type: string, value: "View is clipping its content [13]"]
    - string : "View is clipping its content [13]"
  - 14 : [type: nil]
  ▿ 3 : [type: int, value: 676402564]
    - int : 676402564
  ▿ 4 : [type: int, value: 18446744073709551615]
    - int : 18446744073709551615
  ▿ 5 : [type: int, value: 0]
    - int : 0
  - 18 : [type: nil]
  ▿ 6 : [type: int, value: 0]
    - int : 0
  ▿ 7 : [type: string, value: "com.apple.dt.IDE.diagnostic"]
    - string : "com.apple.dt.IDE.diagnostic"
  ▿ 8 : [type: className, name: "DVTMemberDocumentLocation"]
    - className : "DVTMemberDocumentLocation"
  ▿ 9 : [type: classNameRef, className: "DVTMemberDocumentLocation"]
    - classNameRef : "DVTMemberDocumentLocation"
  ▿ 10 : [type: string, value: "file:///Users/rubanov/Documents/Projects/CodeMetrics/UI/Details/Details/Details.storyboard"]
    - string : "file:///Users/rubanov/Documents/Projects/CodeMetrics/UI/Details/Details/Details.storyboard"
  ▿ 11 : [type: double, value: 0.0]
    - double : 0.0
  ▿ 12 : [type: string, value: "irs-zY-n9e"]
    - string : "irs-zY-n9e"
  ▿ 13 : [type: string, value: "Notice"]
    - string : "Notice"
  ▿ 14 : [type: list, count: 0]
    - list : 0
  ▿ 15 : [type: nil]

@akaDuality
Copy link

Sample file

@akaDuality
Copy link

Looks like DVTDocumentLocation contains 3 properties: two for DVTDocumentLocation and some 3rd one, irs-zY-n9e from the sample above

@akaDuality
Copy link

akaDuality commented Jun 8, 2022

Draft pull request #170

@ecamacho
Copy link
Collaborator

Thanks @akaDuality for the PR. Can you upload again the Sample file? It is damaged and I have not been able to create a log that reproduces the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants