1

enter image description here

Can anyone say how to debug it

  • 1
    Welcome to stackoverflow. Please, try to be more specific with the error message. I mean copy&paste the error in the question in order to be more clear. Just a suggestion by the error message is that you are using wrong command. What are you trying to do exactly by this command? – Tinxuanna Feb 04 '22 at 12:37
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 16 '22 at 13:28

1 Answers1

0

It seems like your kotlin directory is not added to your PATH variable thus the extension/terminal may not know what to execute, when trying to execute kotlinc.


The easiest way to resolve this issue is by adding the path to your kotlin directory (path/to/your/kotlin/bin) to your PATH variable (see here), if you are on windows, or here, if you are on a linux system.

You can check, if it works by opening a command line window and trying to execute
kotlinc -version


However, as it seems like you are using Code-Runner extension in vscode, you can also update your settings.json file: reference here.

IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147
Empiire
  • 495
  • 2
  • 11
  • Unfortunately, it is very hard to help you, if you do not specify your problem. Have you tried running `kotlinc --version`? – Empiire Feb 14 '22 at 09:38