apps icon indicating copy to clipboard operation
apps copied to clipboard

Add kotlin compiler (Kotlinc) app

Open shubhamJay opened this issue 5 years ago • 2 comments

I have been trying to write application descriptor for Kotlin compiler, but couldn’t get it working. Was someone more successful than me?

(edit by maintainer: phrasing)

shubhamJay avatar Jul 05 '20 17:07 shubhamJay

I'd like to add kotlin tools too… I had tried some time ago, and got the following to work:

$ cs launch org.jetbrains.kotlin:kotlin-compiler:latest.release \
    org.jetbrains.kotlin:kotlin-scripting-compiler:latest.release \
    -- -no-stdlib
Welcome to Kotlin version 1.3.72 (JRE 1.8.0_121-b13)
Type :help for help, :quit for quit
>>>

App descriptors don't accept hard-coded arguments for now. That means users would have to pass --no-stdlib themselves, like

$ cs launch kotlin-repl -- -no-stdlib

It seems kotlin requires a "kotlin home" to work fine without that option, which is regrettable IMO.

alexarchambault avatar Jul 08 '20 15:07 alexarchambault

I also couldn't get through the kotlin-home thing. I did look at Kotlin-cli code but couldn't figure out any workaround.

shubhamJay avatar Jul 08 '20 15:07 shubhamJay