You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run configuration will be great (ie the arrow to run files from inside)
I also struggle with stacktraces so mapping to the project source-files will be great.
It will also be great to have a template for new projects, maybe with multi-modules like I discussed in #149
Via the --idea path, it should work like that. But you need a rather recent version of IDEA. And debugging of kotlin scripts is not yet support by the IDE in general.
Ok. But I'm actually using the community 2019.x latest EAP/RC/etc. So something may be missconfigured here, or new idea broke some integration. But thanks for the response.
I am not being able to upload images here (it says Something went really wrong ...)
The IDE autocomplete works.
But the result of the Kotlin script run configuration execution is
/usr/java/jdk1.8.0_144/bin/java -javaagent:/home/jtonsic/.local/share/JetBrains/Toolbox/apps/IDEA-C/ch-1/191.4738.6/lib/idea_rt.jar=38878:/home/jtonsic/.local/share/JetBrains/Toolbox/apps/IDEA-C/ch-1/191.4738.6/bin -Dfile.encoding=ISO-8859-1 -classpath /home/jtonsic/.IdeaIC2019.1/config/plugins/Kotlin/kotlinc/lib/kotlin-compiler.jar:/home/jtonsic/.IdeaIC2019.1/config/plugins/Kotlin/kotlinc/lib/kotlin-reflect.jar:/home/jtonsic/.IdeaIC2019.1/config/plugins/Kotlin/kotlinc/lib/kotlin-stdlib.jar:/home/jtonsic/.IdeaIC2019.1/config/plugins/Kotlin/kotlinc/lib/kotlin-script-runtime.jar org.jetbrains.kotlin.cli.jvm.K2JVMCompiler -kotlin-home /home/jtonsic/.IdeaIC2019.1/config/plugins/Kotlin/kotlinc -script /home/jtonsic/workspace/incident-analyser/apagar2.kts
apagar2.kts:10:12: error: unresolved reference: github
import com.github.kittinunf.fuel.Fuel
^
apagar2.kts:12:1: error: unresolved reference: Fuel
Fuel.get("https://httpbin.org/get")
^
apagar2.kts:13:21: error: cannot infer a type for this parameter. Please specify it explicitly.
.response { request, response, result->
^
apagar2.kts:13:30: error: cannot infer a type for this parameter. Please specify it explicitly.
.response { request, response, result->
^
apagar2.kts:13:40: error: cannot infer a type for this parameter. Please specify it explicitly.
.response { request, response, result->
^
Process finished with exit code 1
Now that I read the command executed, I saw that the execution did not put the extra deps in the classpath. However it seems that there is no option in the run configuration itself. There is an option to set the script templates classpath inside idea->Settings->...->kotlin compiler. However (again), even if I manually add something there, it is ignored at the execution.
Activity
oshai commentedon Aug 15, 2018
Run configuration will be great (ie the arrow to run files from inside)
I also struggle with stacktraces so mapping to the project source-files will be great.
It will also be great to have a template for new projects, maybe with multi-modules like I discussed in #149
jfftonsic commentedon Jan 29, 2019
Hi, just a question, does anyone know if the current state of things is the following?
holgerbrandl commentedon Jan 30, 2019
Via the --idea path, it should work like that. But you need a rather recent version of IDEA. And debugging of kotlin scripts is not yet support by the IDE in general.
jfftonsic commentedon Jan 30, 2019
Ok. But I'm actually using the community 2019.x latest EAP/RC/etc. So something may be missconfigured here, or new idea broke some integration. But thanks for the response.
holgerbrandl commentedon Jan 31, 2019
The community edition should be fine. Could you post a small example which I could use to reproduce the problem?
jfftonsic commentedon Jan 31, 2019
I am not being able to upload images here (it says Something went really wrong ...)
The IDE autocomplete works.
But the result of the Kotlin script run configuration execution is
Now that I read the command executed, I saw that the execution did not put the extra deps in the classpath. However it seems that there is no option in the run configuration itself. There is an option to set the script templates classpath inside idea->Settings->...->kotlin compiler. However (again), even if I manually add something there, it is ignored at the execution.