Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kotlin compiler (Kotlinc) app #48

Open
shubhamJay opened this issue Jul 5, 2020 · 2 comments
Open

Add kotlin compiler (Kotlinc) app #48

shubhamJay opened this issue Jul 5, 2020 · 2 comments

Comments

@shubhamJay
Copy link

shubhamJay commented Jul 5, 2020

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)

@alexarchambault
Copy link
Member

alexarchambault commented Jul 8, 2020

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.

@shubhamJay
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants