https://kotlinlang.org logo
#compose-web
Title
# compose-web
m

MrPowerGamerBR

05/10/2021, 1:56 PM
What can trigger a
java.lang.IllegalStateException: Unreachable execution: there could not be back-links
when compiling? I can't figure out what can trigger this exception, in my code sometimes even stuff like "having two composable calls with the same arguments" can cause this issue.
o

olonho

05/10/2021, 2:11 PM
m

MrPowerGamerBR

05/10/2021, 2:14 PM
@Nikky okay, thank you 🙂 I'm still trying to figure out what triggers the issue, it seems to be related to one of my custom
Aside
tags, however reproducing the issue seems very tricky because after changing the
Aside
tag signature, the exception goes away, even after reverting to the old signature
1
n

Nikky

05/10/2021, 2:16 PM
i assume you meant to tag @olonho
m

MrPowerGamerBR

05/10/2021, 2:17 PM
whoops, sorry
Submitted a issue, however I'm still not sure what causes the exception https://github.com/JetBrains/compose-jb/issues/656
j

jim

05/10/2021, 3:11 PM
the exception goes away, even after reverting to the old signature
If the exception goes away after reverting to the old signature, what happens if you do a
gradle clean
? Presumably your gradle cache somehow got into a bad state?
m

MrPowerGamerBR

05/10/2021, 5:49 PM
@jim yes that's what I think it is happening, in the issue I was able to reproduce the bug by adding a
instanceof
in the code and using
clean
before recompiling fixed the issue, so I guess that's why reproducing the bug is difficult because it seems to only affect incremental builds 🙂
15 Views