IntelliJ IDEA 2016.3 Help

Kotlin Compiler

File | Settings | Build, Execution, Deployment | Compiler | Kotlin Compiler for Windows and Linux
IntelliJ IDEA | Preferences | Build, Execution, Deployment | Compiler | Kotlin Compiler for OS X


Use this page to configure Kotlin compiler-specific settings.

ItemDescription
Generate no warningIf this check box is selected, the compiler won't generate warnings in course of compilation; only errors and info messages will be left.
Additional command line parameters Specify the command-line parameters and options to be passed to the compiler at its start. Refer to the compiler documentation for the available options.

If you need more room to type, click /help/img/idea/2016.3/shift-enter-button.png to open the Additional command line parameters dialog where the text entry area is larger.

When specifying the parameters and options, follow these rules:

  • Use spaces to separate individual parameters and options, for example, -client -ea -Xmx1024m.
  • If a parameter or an option includes spaces, enclose the spaces or the argument that contains the spaces in double quotes, for example, some" "arg or "some arg".
  • If a parameter or an option includes double quotes (e.g. as part of the argument), escape the double quotes by means of the backslashes, for example, -Dmy.prop=\"quoted_value\".
Keep compiler process alive between invocationsIf this check box is selected, the compiler process is always alive.
Kotlin to JVM
Enable precise incremental compilation (experimental)If this check box is selected, the improved incremental compilation is turned on.
Kotlin to JavaScript
Generate source mapsIf this check box is selected, the compiler generates source maps that set the correspondence between lines in your Kotlin code and in the generated JavaScript code, otherwise your breakpoints will not be recognised and processed correctly.
Output file prefixSpecify the path to the file that will be added as is to the beginning of the generated code. You can enter the path manually, or click /help/img/idea/2016.3/browseButton.png and select the required file from the file chooser.
Output file postfixSpecify the path to the file that will be added as is to the end of the generated code. You can enter the path manually, or click /help/img/idea/2016.3/browseButton.png and select the required file from the file chooser.
Copy library runtime filesIf this check box is selected, the JavaScript files from the libraries will be copied to the folder specified in the field Output directory for library runtime files.
Output directory for library runtime filesThis field is only enabled, if the check box Copy library runtime files is selected. Specify here the target folder for the copied files.

See Also

Reference:

Language and Framework-Specific Guidelines:

Last modified: 29 November 2016