-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
When trying to index https://github.com/fwcd/kotlin-language-server, I get the following output:
lsif-java index
$ /tmp/kotlin-language-server/gradlew --init-script /tmp/lsif-java6254693687289437253/java-toolchains.gradle lsifDetectJavaToolchains
Downloading https://services.gradle.org/distributions/gradle-7.3.1-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%
Welcome to Gradle 7.3.1!
Here are the highlights of this release:
- Easily declare new test suites in Java projects
- Support for Java 17
- Support for Scala 3
For more details see https://docs.gradle.org/7.3.1/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :lsifDetectJavaToolchains
> Task :grammars:lsifDetectJavaToolchains
> Task :server:lsifDetectJavaToolchains
> Task :shared:lsifDetectJavaToolchains
BUILD SUCCESSFUL in 1m 55s
4 actionable tasks: 4 executed
$ /tmp/kotlin-language-server/gradlew --no-daemon --init-script /tmp/lsif-java6254693687289437253/init-script.gradle -Porg.gradle.java.installations.auto-detect=false -Porg.gradle.java.installations.auto-download=false -Porg.gradle.java.installations.paths=/tmp/lsif-java6254693687289437253/1.11 clean compileTestJava compileTestKotlin lsifJavaDependencies
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Task :clean
> Task :server:clean UP-TO-DATE
> Task :shared:clean UP-TO-DATE
> Task :compileKotlin NO-SOURCE
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestKotlin NO-SOURCE
> Task :compileTestJava NO-SOURCE
> Task :shared:compileKotlin FAILED
e: No class roots are found in the JDK path: /tmp/lsif-java6254693687289437253/1.11
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 15s
4 actionable tasks: 2 executed, 2 up-to-date
Just running ./gradlew compileKotlin
succeeds with 0 errors. Happens with both JDK 8 and 11, with and without $JAVA_HOME set