https://kotlinlang.org logo
Title
c

coletz

01/25/2019, 9:34 PM
is it normal that intellij can't find the package io? using kotlin 1.3.20, intellij 2018.1.3, ktor 1.1.2, gradle 4.10.1 (it compiles, but intellij is showing errors everywhere... this is NOT wrong dsl highlight color as pointed out here https://youtrack.jetbrains.com/issue/IDEA-204487, I am getting error eg on object returned by ktor get, intellij can't detect type etc)
e

e5l

01/28/2019, 7:58 AM
Hi @coletz, what about gradle build? If gradle is OK, could you file an :youtrack: issue?
The reproducer would be nice 🙂
c

coletz

01/28/2019, 9:14 AM
Gradle build is ok, will try to remove everything else from my project and file an issue :)
🙂 1
:tnx: 1
So probably I'm using wrong dependencies:
// Common
io.ktor:ktor-client
// Android
io.ktor:ktor-client-android
// iOS
io.ktor:ktor-client-ios
n

nestserau

01/29/2019, 4:36 PM
Same issue here. And it also doesn’t compile. The task
:compileKotlinMetadata
fails on me.
e

e5l

01/29/2019, 4:59 PM
Could you try using ‘ktor-client-core’ in common instead?
n

nestserau

01/30/2019, 8:30 AM
This worked. But what’s strange is that HttpClient is still red in code, while the
import io.ktor.client.HttpClient
is recognized and is not red.
Strange, isn’t it?