Hello, when I run tests locally with `ideaPluginTe...
# kontributors
s
Hello, when I run tests locally with
ideaPluginTest
nj2k and idea-plugin, some of test are failing. Even though, I didn’t touch them. Would it be about a setup/environment problem? List of test are in thread…
Copy code
NewJavaToKotlinConverterSingleFileTestGenerated$Types. testCapturedWildcardTypeAsLambdaParameter
NewJavaToKotlinConverterSingleFileTestGenerated$Types. testUnusedCapturedWildcardTypeInSAM
NewMultiplatformProjectImportingTest. testAndroidDependencyOnMPP[1: Gradle-4.9, KotlinGradlePlugin-latest stable]
NewMultiplatformProjectImportingTest. testAndroidDependencyOnMPP[3: Gradle-5.6.4, KotlinGradlePlugin-latest stable]
GradleConfiguratorTest. testChangeLanguageVersionGSK[0: with Gradle-4.9]
d
Unfortunately, almost always there are some tests wich failing in
mater
branch You can check public buildserver, where you can see, wich tests are failing right now https://teamcity.jetbrains.com/buildConfiguration/Kotlin_KotlinPublic_Aggregate?branch=%3Cdefault%3E&mode=builds
Note that we have some flaky tests, that fails undeterministically
s
Ohh that is sad
What about difference between running gradle task in Idea vs Terminal.
When I run gradle task in idea, I keep having import issues about sun packages
but it is fine on terminal
d
What exact issue do you have? I just check some taks in ide and terminal and it's fine
s
I run generateTests. In ide, it fails with compile error about sun.jdi imports
d
Do you have
tools.jar
in jdk libraries in IDEA?
s
yes, i do have. jdk for ide is 1.8 adopt jdk and has lib/tools.jar
d
Can you send gradle log for ide task?
s
Sure
Btw I opened my first PR to Kotlin 😃 https://github.com/JetBrains/kotlin/pull/3225
👍 1
idea.log
I noticed that IDEA run with JDK11. My JAVA_HOME and JDK_18 is set to adopt jdk 1.8
d
I ment log of gradle task wich run via ide Check that you have jdk 8 as
Project SDK
in
Project structure
window And you have
tools.jar
for that jdk in same window in tab
SDKs
😅 1
s
Untitled
I double checked Project SDK in Project structure. It is 1.8.0_242. It also has tools.jar
d
It's strange because of problem from log indicates that
tools.jar
not in classpath Try
./gradlew clean
and reimport gradle project in ide, it may help Also you can try
Invalidate cache and restart
in IDEA, but that will take much time
Unfortunately, building of Kotlin project is very painfull even for our team, because of it sometimes breaks and nobody knows why, but our build team works to make building kotlin project more stable and easy
s
I will try those suggestions. It is almost workable for me. I just needed to install missing JDKs and failing tests confused me. Also running test takes a lot of time but it is general problem I guess 😃 Thank you for your help.
👌 1