Maybe you need to chose dir with project instead o...
# kontributors
g
Maybe you need to chose dir with project instead of build.gradle.kts itself
s
Thanks. Now I can see the source code in IDE but I cannot run IDEA…umm
g
run IDEA? You can run gradle task or test from Idea, works for me even on 2017.2 (but officially only 2017.3 supported tho)
s
Yes. That does not work for my environment.
g
Maybe you don’t have JDK_* variables in your environment
s
I do. There are many changes related to Android even though I don’t change anything…Feel like importing “kotlin” module not working
I got it. You are right. I selected parent folder of build.gradle.kts but the truth is I shouldn’t select any directory. After click
Module from Existing Sources
, just hit open button. Thanks for your help!!!
👌 1
z
hm i tried it yesterday with 2017.1.4 and everything worked just fine. Did you import the project as
gradle project
and call
ant -f update_dependencies.xml
?
s
I thought you cannot use below 2017.3 now.
Working with the Kotlin project requires IntelliJ IDEA 2017.3
z
i don't know, i just tried it out. and it worked, but right now i'm just working with the stlib.
g
Same, works for me on 2017.2, at least parts that I touched
z
maybe you need 2017.3 when you want to run sth. like
ideaPluginTest
.
s
I only use
runIde
. Wait. where Generate Test goes?
Anyway, thanks guys. I am able to see child IDE now. I will find out how to generate test. (I guess
ideaPluginTest
is the one)
i
If you mean the former run configuration for generating tests, then you can do it now with
Copy code
./gradlew :generators:generateTests
As of the idea version - we’ve seen some incompatibilities between Gradle Kotlin DSL builds and earlier versions of the Idea Gradle plugin, resulting in some red code/broken navigation in some places, so that’s why we recommend 2017.3. But if the older versions work for you - that’s fine. The build process itself should not depend on Idea version anymore.
Yes, and these incompatibilities may also result in importing problems, that’s why I asked about the Idea version.
👍 1