Status Update
Comments
za...@gmail.com <za...@gmail.com> #2
BTW, how to get similar stack trace in AS 3.6? By default it is not shown, and link to rerun task with --stacktrace flag does not reproduce the issue (probably because this command does not include running/profiling the app).
st...@gmail.com <st...@gmail.com> #3
ch...@google.com <ch...@google.com>
cs...@google.com <cs...@google.com> #4
Indeed, it works in AS 4.1 Beta 4. Thanks for fixing!
an...@gmail.com <an...@gmail.com> #5
di...@google.com <di...@google.com>
pa...@google.com <pa...@google.com> #6
@rpaquay, is this actively being worked on? If not, please set this request to New.
cs...@google.com <cs...@google.com> #8
cs...@google.com <cs...@google.com> #9
FWIW I did a quick set of mockups of offering a Compose gutter icon (see attached files).
My conclusion then was that it can be quite noisy across files, and so I advise that if we do this, it is an opt-in option in Preferences.
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #10
I've submitted a fix for this, which will be available in an upcoming canary release. This gutter icon has been added as an opt-in behavior, which can be enabled by going to "Settings > Editor > General > Gutter Icons" and enabling the item under "Jetpack Compose".
Description
Compose currently uses custom IDE syntax highlighting to indicate composable function calls. This has two main issues:
#1 - It is straight up broken half the time (see the attached screenshot, where two calls to the same composable function have different highlighting)
#2 - It's visually noisy and inconsistent with how, say, coroutines are indicated. I much prefer the coroutines approach of showing a gutter icon and think compose would do well to do the same (or at least have an option to do so). Since compose even has an icon available, it could possibly just repurpose that.
Proposal of what I mean in the second screenshot