vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Loading a gradle project in VS code results in Kotlin DSL accessors in the wrong directory: `bin/main/gradle/kotlin/dsl/`

Open yogurtearl opened this issue 1 year ago • 2 comments
trafficstars

Loading a gradle project in VS code results in Kotlin DSL accessors in the wrong directory: bin/main/gradle/kotlin/dsl/

Environment
  • Operating System: macOS 13.6.2
  • JDK version: 17
  • Visual Studio Code version: 1.86.0
  • Java extension version: v0.25.15
  • Java Debugger extension version: 0.56.0
Steps To Reproduce
  1. load an gradle 8.5 project that uses *.gradle.kts files and included builds. e.g. this project: https://github.com/jjohannes/idiomatic-gradle/
  2. load it with the VS code gradle extensions.
Current Result

The kotlin DSL accessors are generated into bin/main/gradle/kotlin/dsl/ instead of the normal build/generated-sources/kotlin-dsl-accessors/kotlin/gradle/kotlin/dsl/ location.

Expected Result

all the build output is in the Gradle configure build out directory ( /build by default)

Additional Informations

Using Gradle 8.5

Possibly related issues
  • https://github.com/microsoft/vscode-java-debug/issues/1127

yogurtearl avatar Feb 02 '24 21:02 yogurtearl

Do you install Microsoft "Gradle for Java" extension? And what's the setting for "java.gradle.buildServer.enabled"?

testforstephen avatar Feb 04 '24 07:02 testforstephen

Do you install Microsoft "Gradle for Java" extension?

yes.

And what's the setting for "java.gradle.buildServer.enabled"?

That setting is "on"

yogurtearl avatar Feb 05 '24 15:02 yogurtearl