You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
File -> New -> Module from Existing Sources... and pick "hello-kotlin" sample project from somewhere on the file system
Open build.gradle.kts file in IDEA
Current Behavior
Error "can not access script base class org.gradle.kotlin.dsl.KotlinBuildScript"
IDEA can not resolve build script dependencies, everything red, so IDE editing of build scripts is unusable.
Building and running works, ".gradle" cache folder is created in module root (hello-kotlin folder)
When build.gradle.kts file is opened in IDEA - the second ".gradle" cache folder is created in IDEA project root.
Context
It was working fine with gradle 5.0, the problem is in 5.1
The only possible project layout now is when root build script is directly in IDEA project root. Then those two ".gradle" cache folders collapse into one and everything works as expected. But even in layout like IDEA Project root \ Some other module root folder \ build.gradle.kts I get two cache folders and broken script resolution.
But it would be very nice to have several gradle projects (composite build) as different modules within one IDEA project
Your Environment
Everything fresh with latest updates possible
Windows 10, jdk 11.0.1, gradle 5.1, IDEA 2018.3.2, kotlin 1.3.11
The text was updated successfully, but these errors were encountered:
I followed the steps to reproduce and the issue seems to be fixed. Yay! Thanks a lot.
Script dependencies are resolved, syntax highlighting and code completion works.
There are still two .gradle cache folders though, is it normal and expected? Does not feel right.
The second .gradle is created in IDEA project root folder when a *.gradle.kts file is opened in IDEA.
Steps to Reproduce (for bugs)
build.gradle.kts
file in IDEACurrent Behavior
Error "can not access script base class org.gradle.kotlin.dsl.KotlinBuildScript"
IDEA can not resolve build script dependencies, everything red, so IDE editing of build scripts is unusable.
Building and running works, ".gradle" cache folder is created in module root (hello-kotlin folder)
When
build.gradle.kts
file is opened in IDEA - the second ".gradle" cache folder is created in IDEA project root.Context
It was working fine with gradle 5.0, the problem is in 5.1
The only possible project layout now is when root build script is directly in IDEA project root. Then those two ".gradle" cache folders collapse into one and everything works as expected. But even in layout like
IDEA Project root \ Some other module root folder \ build.gradle.kts
I get two cache folders and broken script resolution.But it would be very nice to have several gradle projects (composite build) as different modules within one IDEA project
Your Environment
Everything fresh with latest updates possible
Windows 10, jdk 11.0.1, gradle 5.1, IDEA 2018.3.2, kotlin 1.3.11
The text was updated successfully, but these errors were encountered: