Hello, I have a weird problem with `HttpClient` cl...
# ktor
d
Hello, I have a weird problem with
HttpClient
class in IntelliJ Idea .. it is marked in red like if it was an error, but all compiles ok and intellisense works too. any ideas? 😕 I am using gradle
1
e
Hi @david.bilik, could you provide build gradle dependencies?
d
Copy code
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
    testCompile group: 'junit', name: 'junit', version: '4.12'
    def ktor_version = '1.1.1'
    compile "io.ktor:ktor-client-apache:$ktor_version"
    compile "io.ktor:ktor-client-gson:$ktor_version"
    compile "io.ktor:ktor-client-auth-basic:$ktor_version"
    compile "io.ktor:ktor-client-logging:$ktor_version"
Copy code
IntelliJ IDEA 2018.3.2 (Community Edition)
Build #IC-183.4886.37, built on December 17, 2018
JRE: 1.8.0_152-release-1343-b26 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.1
Screenshot 2018-12-28 at 09.33.29.png
e
And how about
./gradlew build
?
g
I have the same with Ktor 1.0.1, but everything works fine with Ktor 1.0.0
e
We marked
HttpClient
to fix dsl ambiguities.
g
I see, it explains this problem
And yeah, this is style problem
d
😄 ok thanks, weird default color for a DSL
g
Still super confusing %) I was sure that symbol is not resolved and probably even didn’t try to navigate to declaration, but apparently I never tried, I believe to syntax highlighting too much 😁
c
Yeah, I've faced this too but I quickly found what's going on 😎
g
I just ignored, because it was only 1 usage of HttpClient on a client factory, so this red highlighting was not visible 🙈