Comments (4)
There is no specific Mac OS or Windows or Linux version, they all run on the java virtual machine.
- Do you have the latest version of kotlin-language-server from source? Releases don't happen that often due to @fwcd being very busy. (start taking sponsors @fwcd ! Maybe you can escape your job/studies and do open source full time! ❤️ ). I don't think inlay hints is included in any release yet. I would guess this is the issue, based upon your language server output above.
- Do you remember to turn on the
lsp-inlay-hints-mode
? This is how lsp-mode actually present you inlay hints, so you NEED to turn it on. This is standard lsp-mode behaviour, so nothing peculiar we are doing with this language server.
Works perfectly fine on Mac OS when I do it 😛
from kotlin-language-server.
There is no specific Mac OS or Windows or Linux version, they all run on the java virtual machine.
- Do you have the latest version of kotlin-language-server from source? Releases don't happen that often due to @fwcd being very busy. (start taking sponsors @fwcd ! Maybe you can escape your job/studies and do open source full time! ❤️ ). I don't think inlay hints is included in any release yet. I would guess this is the issue, based upon your language server output above.
- Do you remember to turn on the
lsp-inlay-hints-mode
? This is how lsp-mode actually present you inlay hints, so you NEED to turn it on. This is standard lsp-mode behaviour, so nothing peculiar we are doing with this language server.Works perfectly fine on Mac OS when I do it 😛
Which openjdk version do you use ? I use openjdk@17.
And I compile error after gradle build
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> 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} for MAC_OS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.4/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.4/userguide/toolchains.html#sub:download_repositories.
> 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@7b7cb9d3 of type BuildFlowService.Parameters
> A problem occurred configuring project ':buildSrc'.
> 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} for MAC_OS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.4/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.4/userguide/toolchains.html#sub:download_repositories.
> 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 934ms
from kotlin-language-server.
See Github Actions for build examples. The standard Java version here is Java 11, so for 17 you specify -PjavaVersion=17
. So to build the language server for Java 17 you can run ./gradlew :server:installDist -PjavaVersion=17
.
from kotlin-language-server.
I install kotlin-language-server by using:
brew install kotlin-language-server
This command by default install openjdk@17, which might be the problem.
from kotlin-language-server.
Related Issues (20)
- Server initialization failed. HOT 1
- Extend "Add missing import" code action to suggest "static methods"/functions
- C interoperability support? HOT 3
- Crash on windows
- Automatically generate "thank you" message for all contributors in release script
- Dependency module <dependencies of main> was not initialized by the time contents of dependent module <dependencies of main> were queried HOT 1
- Add code completion for labels
- JsonSyntaxException on startup HOT 7
- Re-add semantic tokens for string literals without covering up interpolations
- Support java 21 HOT 1
- Despite best efforts a sea of red in vscode: MISSING_BUILT_IN_DECLARATION HOT 1
- language server won`t start after update gradle from 8.5 to 8.6 HOT 2
- Neovim + Android + Mason: Unresolved references for certain android dependencies
- Support for multi-module project HOT 4
- Extension fails on Ubuntu devcontainer - couldn't create connection to server. HOT 3
- java.util.concurrent.TimeoutException: Unable to connect language server
- Feature - disable extension on per-file basis to mitigate `Unresolved reference:` errors HOT 2
- Suppress a warning around SLF4J HOT 3
- Too many error messages and exceptions. HOT 2
- bug: Rename variable fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-language-server.