Regarding Compose Multiplatform resources, are the...
# fleet
c
Regarding Compose Multiplatform resources, are there plans to make IDE navigation better? If I Cmd+Click on
Res.string.foo
I expect to be navigated to
<string name="foo">Foo<string>
. Similarly, if I Cmd+Click on
Res.drawable.bar
, I expect to open the bar drawable file. Is there a YT ticket that I can follow for this?
a
Hi! I'm sorry to heat that you're having issues with Compose resources in Fleet, navigation should work as you described it. Could you please describe the scenario where it doesn't work for you? If you want you can create a ticket and share with us a minimal repro so that we can take a look at the issue, thanks!
c
In both Fleet 1.40.87 and in Android Studio LadyBug Feature Drop Canary 4, the behaviour I see is this: When I Cmd+Click on
Res.string.foo
, I'm navigated to the generated code (for example
String0.commonMain.kt
Copy code
internal val Res.string.foo: StringResource
  get() = CommonMainString0.foo
One thing I notice is that I customize the resources generation, i.e., I have the following in my build.gradle.kts
Copy code
compose.resources {
    packageOfResClass = "my.custom.package"
    generateResClass = always
}
Not sure if that has any impact.
a
thanks for the info, could you also tell me which version of compose are you using? I tried now in a template project in Fleet 1.40.87 using a custom build.gradle.kts as you described and I couldn't reproduce the issue. it would be helpful if you could share with us your logs (Actions | Collect logs...) after a failed navigation
👍🏽 1