fwcd / fwcd/kotlin-language-server
Can't build, any command returns BUILD FAILED
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
Hello, it is my first time trying kotling and since I use emacs I want a lsp server to connect but every try to build/install this server result in a error.
I don´t know if I'm doing something wrong, it is also the first time I use gradle since the early days of android development on android studio 😅 I just `git clone` the repo and try the command, but doesn't matter what I input as arg to `./gradlew` I got this same output.
At first I thought it could be because I was using java installed by `nix` but even using `sdkman` the error persists
```
~/dev/kotlin-language-server main > ./gradlew :server:installDist 09:40:26
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of null.
> Could not resolve all dependencies for configuration ':buildSrc:buildScriptClasspath'.
> Failed to calculate the value of task ':buildSrc:compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=11, vendor=any, implementation=vendor-specific}.
> No locally installed toolchains match (see https://docs.gradle.org/8.1/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.1/userguide/toolchains.html#sub:download_repositories).
* 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
BUILD FAILED in 518ms
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure from a fresh clone with ./gradlew :server:installDist, then inspect the reported buildSrc:compileJava toolchain error. Done means the wrapper completes the requested build or install command; the issue names no source file or test to change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100