apps
apps copied to clipboard
Add kotlin compiler (Kotlinc) app
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)
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.
I also couldn't get through the kotlin-home thing. I did look at Kotlin-cli code but couldn't figure out any workaround.