IntelliJ IDEA 2021.2 Help

Kotlin compiler

Use this page to configure Kotlin compiler-specific settings.

Item

Description

Generate no warning

If this checkbox 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 Expand component 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 invocations

If this checkbox is selected, the compiler process is always alive.

Kotlin to JVM

Enable precise incremental compilation (experimental)

If this checkbox is selected, the improved incremental compilation is turned on.

Kotlin to JavaScript

Generate source maps

If this checkbox 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 prefix

Specify 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 the Browse button and select the required file from the file chooser.

Output file postfix

Specify 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 the Browse button and select the required file from the file chooser.

Copy library runtime files

If this checkbox 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 files

This field is only enabled, if the checkbox Copy library runtime files is selected. Specify here the target folder for the copied files.

Last modified: 02 August 2022