I installed Kotlin plugins for VSCode and created Hello World file test.kt
but VSCode shows errors (it could be compiled via command line)
Kotlin IDE for Visual Studio Code To use, make sure that JDK 11+ is installed and open a Kotlin file inside a Gradle or Maven project. Support for Kotlin source files with a standalone compiler ( kotlinc ) is experimental. The language server will then automatically launch in the background.
if you have the first extension (kotlin by fwcd), Uninstall it and install the second I mean by mathiasfrohlich.
I had this issue when I had both the Kotlin Language by mathiasfrohlich and Kotlin by fwcd extensions installed.
Uninstalling Kotlin by fwcd resolved the problem in my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With