https://kotlinlang.org logo
#ktor
Title
# ktor
r

Rescribet

04/26/2022, 10:33 AM
After upgrading from beta1 to 2.0.0, IntelliJ is unable to find
io.ktor.util.*
, but I'm seeing this mysterious asterisk after the package in the gradle menu. Adding/removing a dependency (
io.ktor:ktor-utils:2.0.0
) to
commonMain
and/or
jvmMain
doesn't fix the missing package (can't click through to
io.ktor.util.Attributes
from
ApplicationCall
)
a

Aleksei Tirman [JB]

04/26/2022, 10:49 AM
Does it affect compilation?
r

Rescribet

04/26/2022, 11:05 AM
Cannot confirm yet, I still have a dozen custom plugins to adjust/convert
@Aleksei Tirman [JB] Converted the remaining plugins, server boots and the tests succeed. Invalidate & restart doesn't fix the error
Cannot access class 'io.ktor.util.Attributes'. Check your module classpath for missing or conflicting dependencies
There is a
.knm
file under
External Libraries
in the project panel which does include the
Attributes
interface
Hmm... deleting the
sourceSetMetadata
folder in
.gradle/kotlin
fixes the issue, but it returns after some time 🤷 Edit: Adding the utils dependency to commonMain seems to keep it working (for now 😅).
Nah, the issue is back, along with the
sourceSetMetadata
folder. Difference seems to be that CMD+click now opens file in that folder rather than in the
External Libraries
section
Deleting
~/.gradle
and
~/.m2
does not work either. Truly the most annoying kind of issue.
a

Aleksei Tirman [JB]

04/26/2022, 4:35 PM
Here are the related issues KTIJ-21605 and KT-49877. Disabling HMPP may help you.
2 Views