vkostyukov / kotlin-sublime-package

Sublime Text 2 Package for Kotlin Programming Language
Apache License 2.0
138 stars 42 forks source link

"Compile + run" doesn't work on Windows. #29

Open LuoDiKaiHua opened 3 years ago

LuoDiKaiHua commented 3 years ago
"cmd": "kotlinc \"${file}\" -include-runtime -d ${file_base_name}.jar || exit 1; java -jar ${file_base_name}.jar"

The above command will not run "java -jar ${file_base_name}.jar" on Windows. It seems to be modified to the following to work.

"cmd": "(kotlinc \"${file}\" -include-runtime -d ${file_base_name}.jar || exit 1) && java -jar ${file_base_name}.jar",

I tested it on Windows and CentOS.😃