This repository has been archived by the owner on Nov 30, 2020. It is now read-only.
Xcode: emitted warnings won't highlight character/column #3
Labels
investigate
Needs investigation to proceed
I've been unable to get Xcode to properly highlight the proper parts of text indicated by an emitted warning.
For example, this is a warning that is treated and displayed as a warning in Xcode. However, it has both line and column index, but it seems the character index is being ignored completely.
So, raw output from
comply
:This is what you get if you 'copy' the displayed warning from the build log:
Notice how the
warning:
and column index has been stripped.I've also tried emulating warnings/errors as reported by the compiler, which could look like:
In Xcode, above looks like:
Notice the little red line under 'w'.
Now, if you take above generated error and put it into a run script:
Suddenly, only the line is being highlighted:
So I guess perhaps this is a security measure that won't let scripts do all that jazz?
EDIT:
So i've just tried making a fresh Xcode command-line project, and surprisingly, it actually works as expected:
The text was updated successfully, but these errors were encountered: