block / block/radiography

Function names lost with 1.6

Open
#159 8 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
899
Forks
55
PR merge metrics
No merged PRs in 30d

Description

When using Compose 1.6.0, the function names are no longer available. This is reproduced in the `nestedLayouts` test which fails:
```
expected to contain:
Box:
 Box { test-tag:"root" }
 ├─Box
 ├─Column
 │ ├─Box
 │ ╰─Box
 ╰─Row
  ├─Box
  ╰─Box
but was:
:
  { test-tag:"root" }
 ├─
 ├─
 │ ├─
 │ ╰─
 ╰─
  ├─
  ╰─

at radiography.test.compose.ComposeUiTest.nestedLayouts(ComposeUiTest.kt:350)
```

It _looks_ to be related to this change in Compose: https://android-review.googlesource.com/c/platform/frameworks/support/+/2741462. However, it doesn't seem as simple as calling `composer.collectParameterInformation()`.

Contributor guide

Open the contributing guide

Research direction

Start with the failing nestedLayouts test at ComposeUiTest.kt:350 and compare its expected function names with the actual output. Read the linked Compose change and investigate how function information is collected after Compose 1.6. Confirm the fix by restoring the test's expected names and passing nestedLayouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.