MobileNativeFoundation / MobileNativeFoundation/XCLogParser

Analyser messages are truncated in JSON output

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.9k
Forks
138
PR merge metrics
No merged PRs in 30d

Description

When using XCLogParser with the log output of an analyze run on a project, the description is used instead of the title, which leads to the message becoming truncated.

So instead of a title like Access to field 'a' results in a dereference of a null pointer (loaded from field 'b') [core.NullDereference] ending up in the parsed log data, just the first line of the longer description appears in the parsed output with the rest being truncated (i.e., Assuming the condition is false).

This makes it impossible to annotate source code in a meaningful way as the context of the analytical error is lost.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by tracing how XCLogParser handles messages from an analyze run and compare the title with the description in the parsed JSON output. Done means the full analyzer title, including its diagnostic context, is retained so source annotations are meaningful.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.