After upgrading from beta1 to 2.0.0, IntelliJ is u...
# ktor
r
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
Does it affect compilation?
r
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
Here are the related issues KTIJ-21605 and KT-49877. Disabling HMPP may help you.