with the same <script>, it works as expected in ko...
# scripting
n
with the same script, it works as expected in kotlin 1.4 and fails in kotlin 1.6 with a method not found on jsoup?! which is completely unexpected i’ve no clue why any hint?
h
Is there any stacktrace or similar error?
n
Copy code
error: unresolved reference: connect (update.main.kts:210:25)
error: unresolved reference: it (update.main.kts:213:20)
error: unresolved reference: it (update.main.kts:213:33)
error: unresolved reference: it (update.main.kts:214:20)
error: unresolved reference: connect (update.main.kts:214:38)
error: unresolved reference: it (update.main.kts:214:66)
error: unresolved reference: it (update.main.kts:215:26)
error: unresolved reference: it (update.main.kts:215:38)
update.main.kts:210:25: error: unresolved reference: connect
        catalog = Jsoup.connect(paperCallCatalogUrl)
which is “funny” since it works with the exact same dependencies on kotlin 1.4
h
Indeed, very strange. Unfortunately, I have no real answer. The script dependency resolver evolved quite a lot since then, so this may be a reason?
n
yes, that’s what i assume 1.5 broke the backend IR but 1.6, no clue
thanks in all cases
r
This is a known issue, some of the Jsoup classes got bundled into the compiler fat jar and then pproguarded afaik. https://youtrack.jetbrains.com/issue/KT-50378
👏 1
n
thanks a lot @rnett! i have other issues, but this one is exactly that indeed