Releases: JetBrains/kotlin
Releases · JetBrains/kotlin
Kotlin 1.2.50 EAP 1
1.2.50
Compiler
KT-23360
Do not serialize annotations with retention SOURCE to metadataKT-24278
Hard-code to kotlin compiler annotation for android library migration
Backend. JS
KT-23582
JS: Fails to inline, produces bad codeKT-24335
JS: Invalid implement of external interface
Backend. JVM
KT-12330
Slightly improve generated bytecode for data class equals/hashCode methodsKT-22063
Add intrinsics for javaObjectType and javaPrimitiveTypeKT-23704
UnstablecheckExpressionValueIsNotNull()
generation in bytecodeKT-23707
Unstable bridge generation orderKT-23910
@jvmoverloads doesn't work with default arguments in common codeKT-18576
Debugger fails to show decomposed suspend lambda parametersKT-23402
Internal error: Couldn't inline method call because the compiler couldn't obtain compiled body for inline function with reified type parameter
Frontend
KT-23760
Unable to implement common interface with fun member function with typealiased parameterKT-21129
Unused parameter in property setter is not reportedKT-23589
Report a warning on local annotation classesKT-23124
Kotlin multiplatform project causes IntelliJ build errorsKT-23209
Compiler throwing frontend exceptionKT-21157
Kotlin script: engine can take forever to eval certain code after several timesKT-22740
REPL slows down during extensions compiling
IDE
KT-19055
Idea hangs on copy-paste big Kotlin filesKT-15019
Editor:args
reference in .kts file is redKT-18769
Expand Selection on opening curly brace should select the entire block right awayKT-20605
Unresolved reference on instance from common module functionKT-20824
Type mismatch for common function taking a non-mapped Kotlin's expected class from stdlib-common, with actual typealias on JVMKT-20897
Can't navigate to declaration after PsiInvalidElementAccessException exceptionKT-22868
Implementing anexpected class
declaration usingactual typealias
produces "good code that is red"KT-23745
Unable to implement common interfaceKT-23975
Move Kotlin internal actions under Idea Internal actions menuKT-24268
Other main menu itemKT-22527
Kotlin UAST does not evaluate values inside delegation expressionsKT-23557
Expression Bodies should have implicitreturn
in UastKT-23384
Hotspot in org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport.getKotlinInternalClasses(FqName, GlobalSearchScope) IDELightClassGenerationSupport.kt ?
IDE. Configuration
KT-10935
Add menu entry to create new kotlin .kts scriptsKT-23638
Kotlin plugin breaks project opening for PhpStorm/WebStormKT-23980
Move "Update Channel" from "Configure Kotlin Plugin Updates" to settings
IDE. Debugger
KT-23886
Both java and kotlin breakpoints in kotlin filesKT-24136
Debugger: update drop-down menu for the line with lambdas
IDE. Editing
KT-2582
When user inputs triple quote, add matching triple quote automaticallyKT-23235
Super slow editing with auto imports enabledKT-5206
Long lists of arguments are not foldableKT-23457
Auto-import and Import quick fix do not suggest classes from common module [Common test can't find class with wordAbstract
in name.]
IDE. Gradle
KT-23234
Test names for tests containing inner classes are sporadically reported to teamcity runs.KT-23383
Optional plugin dependency for kotlin gradle plugin 'java' subsystem dependent featuresKT-22588
Resolver for 'project source roots and libraries for platform JVM' does not know how to resolve on Gradle Kotlin DSL project without Java and KotlinKT-23616
Synchronize script dependencies not at Gradle Sync
IDE. Inspections and Intentions
New Features
KT-7822
Convert foreach to for loop should place caret on the variable declarationKT-9943
Quick fix/Intention to indent a raw stringKT-16085
Inspection "main should return Unit"KT-20305
Inspection: Refactor sealed sub-class to objectKT-21413
Missing inspection: parentheses can be deleted when the only constructor parameter is a function not existingKT-23137
Intention for converting to block comment and vise versaKT-23266
Add intention(s) to put arguments / parameters on one lineKT-23419
Intention to replace vararg with array and vice versaKT-23617
Add inspection: redundant internal in local anonymous object / classKT-23775
IntelliJ plugin: improve "accessor call that can be replaced with property"KT-24235
Inspection to replace async.await with withContextKT-24263
AddMake variable immutable
quickfix for const
Performance Improvements
KT-23566
"Can be private" works on ResolutionResultsCache.kt (from Kotlin project) enormously slow
Fixes
KT-6364
Incorrect quick-fixes are suggested for nullable extension function callKT-11156
Incorrect highlighting for nested class in "Redundant SAM-constructor" inspectionKT-11427
"Replace if with when" does not take break / continue into accountKT-11740
Invert if condition intention should not remove line breaksKT-12042
"Merge with next when" is not applicable when the statements delimited by semicolon or commentKT-12168
"Remove explicit type specification" intention produce incompilable code in case of function typeKT-14391
RemoveUnnecessaryParenthesesIntention lost comment on closing parenthesisKT-14556
Quickfix to suggest use of spread operator does not work with mapOfKT-15195
Redundant parentheses shouldn't be reported if lambda is not on the same lineKT-19629
"Convert to primary constructor" quick fix should not moveinit{...}
section downKT-20332
Unused property declaration suppression by annotation doesn't work if annotation is targeted to getterKT-22092
Intention "Specify return type explicitly": Propose types from overriden declarationsKT-22632
Gutter icon "go to actual declaration" is absent for enum values on actual sideKT-22741
Wrong suggestion forReplace 'if' expression with elvis expression
KT-22831
Inspection for converting to elvis operator does not work for local varsKT-22860
"Add annotation target" quick fix does not take...
Kotlin 1.2.41
Compiler: Fixes
KT-23901
Incremental compilation fails on Java 9KT-23931
Exception on optimizing eternal loopsKT-23900
Exception on some cases with nested arraysKT-23809
Exception on processing complex hierarchies withsuspend
functions when-Xdump-declarations-to
is active
Other changes
KT-23973
New compiler behavior lead to ambiguous mappings in Spring Boot temporarily reverted
Kotlin 1.2.40
Compiler
New Features
KT-22703
Allow expect/actual annotation constructors to have default valuesKT-19159
Supportcrossinline
lambda parameters ofsuspend
function typeKT-21913
Support default arguments for expected declarationsKT-19120
Provide extra compiler arguments inScriptTemplateDefinition
KT-19415
Introduce@JvmDefault
annotationKT-21515
Restrict visibility of classifiers insidecompanion object
s
Performance Improvements
KT-10057
Uselcmp
instruction instead ofkotlin/jvm/internal/Intrinsics.compare
KT-14258
Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731
==
between enums should use reference equality, notIntrinsics.areEqual()
.KT-22714
Unnecessary checkcast to array of object from an array of specific typeKT-5177
Optimize code generation forfor
loop withwithIndex()
KT-19477
Allow to implement several common modules with a single platform moduleKT-21347
Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424
Broken bytecode for nullable generic methodsKT-17171
ClassCastException
in case of SAM conversion without
varianceKT-19399
Incorrect bytecode generated for inline functions in some complex casesKT-21696
Incorrect warning for use-site target on extension functionKT-22031
Non-abstract
expect classes should not haveabstract
membersKT-22260
Never flaginline suspend fun
withNOTHING_TO_INLINE
KT-22352
Expect/actual checker can't handle properties and functions with the same nameKT-22652
Interface with default overrides is not perceived as a SAMKT-22904
Incorrect bytecode generated for withIndex iteration onArray<Int>
KT-22906
Invalid class name generated for lambda created from method reference in anonymous objectKT-23044
Overriden public property with internal setter cannot be found in runtimeKT-23104
Incorrect code generated for LHS of an intrinsifiedin
operator in case of generic type substituted withCharacter
KT-23309
Minor spelling errors in JVM internal error messagesKT-22001
JS: compiler crashes on += with "complex" receiverKT-23239
JS: Default arguments for non-final member function support is missing for MPPKT-17091
Converting to SAM Java type appends non-deterministic hash to class nameKT-21521
Compilation exception when trying to compile asuspend
function withtailrec
keywordKT-21605
Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864
Expect-actual matcher doesn't consider generic upper boundsKT-21906
ACTUAL_MISSING
is reported for actual constructor of non-actual classKT-21939
ImproveACTUAL_MISSING
diagnostics messageKT-22513
Flaky "JarURLConnection.getUseCaches" NPE during compilation when using compiler plugins
Libraries
KT-11208
readLine()
shouldn't use buffered reader
IDE
New Features
KT-10368
Run Action for Kotlin Scratch FilesKT-16892
Shortcut to navigate between header and implKT-23005
Supportprefix
/suffix
attributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484
KotlinBinaryClassCache retains a lot of memoryKT-23183
ConfigureKotlinNotification.getNotificationString()
scans modules with Kotlin files twiceKT-23380
Improve IDE performance when working with Spring projects
Fixes
KT-15482
KotlinNullPointerException
in IDE from expected class with nested classKT-15739
Internal visibility across common and platform-dependent modulesKT-19025
Not importedbuild.gradle.kts
is all redKT-19165
IntelliJ should suggest to reload Gradle projects whenbuild.gradle.kts
changesKT-20282
'Move statement up' works incorrectly for statement afterfinally
block iftry
block contains closureKT-20521
Kotlin Gradle script: validbuild.gradle.kts
is red and becomes normal only after reopening the projectKT-20592
KotlinNullPointerException
: nested class inside expect / actual interfaceKT-21013
"Move statement up/down" fails for multiline declarationsKT-21420
.gradle.kts
editor should do no semantic highlighting until the first successful dependency resolver responseKT-21683
Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueries
KT-21745
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753
Language injection: SpEL. Not injected for key in@Caching
KT-21771
All annotations inAnnotations.kt
from kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831
Opening class fromkotlin-stdlib-jdk8.jar
fails with EE: "Stub list in ... length differs from PSI"KT-22229
Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724
ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()
KT-22817
Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationException
KT-22851
Apply button is always active on Kotlin compiler settings tabKT-22858
Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865
Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873
Common module-based light classes do not see JDKKT-22874
Exception on surround with "if else" when resulting if should be wrapped with()
KT-22925
Unable to view Type Hierarchy from constructor call in expressionKT-22926
Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097
Enhance multiplatform project wizardKT-23271
Warn about using kotlin-stdlib-jre* libs independencyManagement
section in Maven witheap
anddev
Kotlin versionsKT-20672
IDE can't resolve references to elements from files with@JvmPackageName
KT-23546
Variable name auto-completion popup gets in the wayKT-23546
Do not show duplicated names in variabl...
Kotlin 1.2.40 RC2
Compiler
New Features
KT-22703
Allow expect/actual annotation constructors to have default valuesKT-19159
Supportcrossinline
lambda parameters ofsuspend
function typeKT-21913
Support default arguments for expected declarationsKT-19120
Provide extra compiler arguments inScriptTemplateDefinition
KT-19415
Introduce@JvmDefault
annotationKT-21515
Restrict visibility of classifiers insidecompanion object
s
Performance Improvements
KT-10057
Uselcmp
instruction instead ofkotlin/jvm/internal/Intrinsics.compare
KT-14258
Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731
==
between enums should use reference equality, notIntrinsics.areEqual()
.KT-22714
Unnecessary checkcast to array of object from an array of specific typeKT-5177
Optimize code generation forfor
loop withwithIndex()
KT-19477
Allow to implement several common modules with a single platform moduleKT-21347
Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424
Broken bytecode for nullable generic methodsKT-17171
ClassCaseException
in case of SAM conversion without
varianceKT-19399
Incorrect bytecode generated for inline functions in some complex casesKT-21696
Incorrect warning for use-site target on extension functionKT-22031
Non-abstract
expect classes should not haveabstract
membersKT-22260
Never flaginline suspend fun
withNOTHING_TO_INLINE
KT-22352
Expect/actual checker can't handle properties and functions with the same nameKT-22652
Interface with default overrides is not perceived as a SAMKT-22904
Incorrect bytecode generated for withIndex iteration onArray<Int>
KT-22906
Invalid class name generated for lambda created from method reference in anonymous objectKT-23044
Overriden public property with internal setter cannot be found in runtimeKT-23104
Incorrect code generated for LHS of an intrinsifiedin
operator in case of generic type substituted withCharacter
KT-23309
Minor spelling errors in JVM internal error messagesKT-22001
JS: compiler crashes on += with "complex" receiverKT-23239
JS: Default arguments for non-final member function support is missing for MPPKT-17091
Converting to SAM Java type appends non-deterministic hash to class nameKT-21521
Compilation exception when trying to compile asuspend
function withtailrec
keywordKT-21605
Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864
Expect-actual matcher doesn't consider generic upper boundsKT-21906
ACTUAL_MISSING
is reported for actual constructor of non-actual classKT-21939
ImproveACTUAL_MISSING
diagnostics messageKT-22513
Flaky "JarURLConnection.getUseCaches" NPE during compilation when using compiler plugins
Libraries
KT-11208
readLine()
shouldn't use buffered reader
IDE
New Features
KT-10368
Run Action for Kotlin Scratch FilesKT-16892
Shortcut to navigate between header and implKT-23005
Supportprefix
/suffix
attributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484
KotlinBinaryClassCache retains a lot of memoryKT-23183
ConfigureKotlinNotification.getNotificationString()
scans modules with Kotlin files twiceKT-23380
Improve IDE performance when working with Spring projects
Fixes
KT-15482
KotlinNullPointerException
in IDE from expected class with nested classKT-15739
Internal visibility across common and platform-dependent modulesKT-19025
Not importedbuild.gradle.kts
is all redKT-19165
IntelliJ should suggest to reload Gradle projects whenbuild.gradle.kts
changesKT-20282
'Move statement up' works incorrectly for statement afterfinally
block iftry
block contains closureKT-20521
Kotlin Gradle script: validbuild.gradle.kts
is red and becomes normal only after reopening the projectKT-20592
KotlinNullPointerException
: nested class inside expect / actual interfaceKT-21013
"Move statement up/down" fails for multiline declarationsKT-21420
.gradle.kts
editor should do no semantic highlighting until the first successful dependency resolver responseKT-21683
Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueries
KT-21745
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753
Language injection: SpEL. Not injected for key in@Caching
KT-21771
All annotations inAnnotations.kt
from kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831
Opening class fromkotlin-stdlib-jdk8.jar
fails with EE: "Stub list in ... length differs from PSI"KT-22229
Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724
ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()
KT-22817
Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationException
KT-22851
Apply button is always active on Kotlin compiler settings tabKT-22858
Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865
Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873
Common module-based light classes do not see JDKKT-22874
Exception on surround with "if else" when resulting if should be wrapped with()
KT-22925
Unable to view Type Hierarchy from constructor call in expressionKT-22926
Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097
Enhance multiplatform project wizardKT-23271
Warn about using kotlin-stdlib-jre* libs independencyManagement
section in Maven witheap
anddev
Kotlin versionsKT-20672
IDE can't resolve references to elements from files with@JvmPackageName
KT-23546
Variable name auto-completion popup gets in the way
IDE. Gradle. Script
KT-23228
Do not hig...
Kotlin 1.2.40 RC
Compiler
New Features
KT-22703
Allow expect/actual annotation constructors to have default valuesKT-19159
Supportcrossinline
lambda parameters ofsuspend
function typeKT-21913
Support default arguments for expected declarationsKT-19120
Provide extra compiler arguments inScriptTemplateDefinition
KT-19415
Introduce@JvmDefault
annotationKT-21515
Restrict visibility of classifiers insidecompanion object
s
Performance Improvements
KT-10057
Uselcmp
instruction instead ofkotlin/jvm/internal/Intrinsics.compare
KT-14258
Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731
==
between enums should use reference equality, notIntrinsics.areEqual()
.KT-22714
Unnecessary checkcast to array of object from an array of specific typeKT-5177
Optimize code generation forfor
loop withwithIndex()
KT-19477
Allow to implement several common modules with a single platform moduleKT-21347
Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424
Broken bytecode for nullable generic methodsKT-17171
ClassCaseException
in case of SAM conversion without
varianceKT-19399
Incorrect bytecode generated for inline functions in some complex casesKT-21696
Incorrect warning for use-site target on extension functionKT-22031
Non-abstract
expect classes should not haveabstract
membersKT-22260
Never flaginline suspend fun
withNOTHING_TO_INLINE
KT-22352
Expect/actual checker can't handle properties and functions with the same nameKT-22652
Interface with default overrides is not perceived as a SAMKT-22904
Incorrect bytecode generated for withIndex iteration onArray<Int>
KT-22906
Invalid class name generated for lambda created from method reference in anonymous objectKT-23044
Overriden public property with internal setter cannot be found in runtimeKT-23104
Incorrect code generated for LHS of an intrinsifiedin
operator in case of generic type substituted withCharacter
KT-23309
Minor spelling errors in JVM internal error messagesKT-22001
JS: compiler crashes on += with "complex" receiverKT-23239
JS: Default arguments for non-final member function support is missing for MPPKT-17091
Converting to SAM Java type appends non-deterministic hash to class nameKT-21521
Compilation exception when trying to compile asuspend
function withtailrec
keywordKT-21605
Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864
Expect-actual matcher doesn't consider generic upper boundsKT-21906
ACTUAL_MISSING
is reported for actual constructor of non-actual classKT-21939
ImproveACTUAL_MISSING
diagnostics message
Libraries
KT-11208
readLine()
shouldn't use buffered reader
IDE
New Features
KT-10368
Run Action for Kotlin Scratch FilesKT-16892
Shortcut to navigate between header and implKT-23005
Supportprefix
/suffix
attributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484
KotlinBinaryClassCache retains a lot of memoryKT-23183
ConfigureKotlinNotification.getNotificationString()
scans modules with Kotlin files twiceKT-23380
Improve IDE performance when working with Spring projects
Fixes
KT-15482
KotlinNullPointerException
in IDE from expected class with nested classKT-15739
Internal visibility across common and platform-dependent modulesKT-19025
Not importedbuild.gradle.kts
is all redKT-19165
IntelliJ should suggest to reload Gradle projects whenbuild.gradle.kts
changesKT-20282
'Move statement up' works incorrectly for statement afterfinally
block iftry
block contains closureKT-20521
Kotlin Gradle script: validbuild.gradle.kts
is red and becomes normal only after reopening the projectKT-20592
KotlinNullPointerException
: nested class inside expect / actual interfaceKT-21013
"Move statement up/down" fails for multiline declarationsKT-21420
.gradle.kts
editor should do no semantic highlighting until the first successful dependency resolver responseKT-21683
Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueries
KT-21745
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753
Language injection: SpEL. Not injected for key in@Caching
KT-21771
All annotations inAnnotations.kt
from kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831
Opening class fromkotlin-stdlib-jdk8.jar
fails with EE: "Stub list in ... length differs from PSI"KT-22229
Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724
ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()
KT-22817
Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationException
KT-22851
Apply button is always active on Kotlin compiler settings tabKT-22858
Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865
Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873
Common module-based light classes do not see JDKKT-22874
Exception on surround with "if else" when resulting if should be wrapped with()
KT-22925
Unable to view Type Hierarchy from constructor call in expressionKT-22926
Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097
Enhance multiplatform project wizardKT-23271
Warn about using kotlin-stdlib-jre* libs independencyManagement
section in Maven witheap
anddev
Kotlin versionsKT-20672
IDE can't resolve references to elements from files with@JvmPackageName
IDE. Gradle. Script
KT-23228
Do not highlight.gradle.kts
files in non-Gradle projects
IDE. Inspections and Intentions
New Features
KT-16382
Intention to convertexpr.unsafeCast<Type>()
toexpr as Type
and vice versa- [`KT-2043...
Kotlin 1.2.40 EAP 1
Compiler
New Features
KT-22703
Allow expect/actual annotation constructors to have default valuesKT-19159
Support crossinline lambda parameters of suspend function typeKT-21913
Support default arguments for expected declarationsKT-19120
Provide extra compiler arguments in ScriptTemplateDefinition
Performance Improvements
KT-10057
Uselcmp
instruction instead ofkotlin/jvm/internal/Intrinsics.compare
KT-14258
Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731
==
between enums should use reference equality, notIntrinsics.areEqual()
.KT-22714
Unnecessary checkcast to array of object from an array of specific type
Fixes
KT-16424
Fix broken bytecode for nullable generic methodKT-17171
FixClassCaseException
in case of SAM conversion without
varianceKT-19399
Incorrect bytecode generated for inline functions in some complex casesKT-21696
Incorrect warning for use-site target on extension functionKT-22031
Non-abstract
expect classes should not haveabstract
membersKT-22260
Never flaginline suspend fun
withNOTHING_TO_INLINE
KT-22352
Expect/actual checker can't handle properties and functions with the same nameKT-22652
Interface with default overrides is not perceived as a SAMKT-22904
Incorrect bytecode generated for withIndex iteration onArray<Int>
KT-22906
Invalid class name generated for lambda created from method reference in anonymous objectKT-23044
Overriden public property with internal setter cannot be found in runtimeKT-23104
Incorrect code generated for LHS of an intrinsifiedin
operator in case of generic type substituted withCharacter
KT-23309
Minor spelling errors in jvm internal error message
IDE
New Features
KT-10368
Run Action for Kotlin Scratch FilesKT-16892
Shortcut to navigate between header and implKT-23005
Supportprefix
/suffix
attributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484
KotlinBinaryClassCache retains a lot of memoryKT-23183
ConfigureKotlinNotification.getNotificationString()
scans modules with Kotlin files twiceKT-23380
Improve IDE performance when working with Spring projects
Fixes
KT-15482
KotlinNullPointerException
in IDE from expected class with nested classKT-15739
Internal visibility across common and platform-dependent modulesKT-19025
Not imported build.gradle.kts is redKT-19165
IntelliJ should suggest to reload Gradle projects when Kotlin build scripts changeKT-20282
'Move statement up' works incorrectly for statement after 'finally' block if 'try' block contains closureKT-20521
Kotlin Gradle script: validbuild.gradle.kts
is red and becomes normal only after reopening the projectKT-20592
KotlinNullPointerException
: nested class inside expect / actual interfaceKT-21013
"Move statement up/down" fails for multiline declarationsKT-21420
.gradle.kts editor should do no semantic highlighting until the first successful dependency resolver responseKT-21683
Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueries
KT-21745
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746
Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753
Language injection: SpEL. Not injected for key in@Caching
KT-21771
All annotations in Annotations.kt from kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831
Opening class fromkotlin-stdlib-jdk8.jar
fails with EE: "Stub list in ... length differs from PSI"KT-22229
Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724
ISE: "psiFile must not be null" at KotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()KT-22817
Hitting 'Propagate Parameters' in Change Signature throws UnsupportedOperationExceptionKT-22851
Apply button is always active on Kotlin compiler settings tabKT-22858
Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865
Support multiple expectedBy dependencies when importing project from gradle or mavenKT-22873
Common module-based light classes do not see JDKKT-22874
Exception on surround with "if else" when resulting if should be wrapped with ()KT-22925
Unable to view Type Hierarchy from constructor call in expressionKT-22926
Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097
Enhance multiplatform project wizardKT-23271
Warn about using kotlin-stdlib-jre* libs independencyManagement
section in Maven witheap
anddev
Kotlin versions
IDE. Gradle. Script
KT-23228
Do not highlight.gradle.kts
files in non-Gradle projects
IDE. Inspections and Intentions
New Features
KT-16382
Intention to convertexpr.unsafeCast<Type>()
toexpr as Type
and vice versaKT-20439
Add intentions to add/remove labeled return to last expression in a lambdaKT-22011
Inspection to report the usage of Java Collections methods on immutable Kotlin CollectionsKT-22933
Add intention/inspection to convert Pair constructor toto
function
Fixes
KT-12226
"Convert concatenation to template" does not process dollar sign as a CharKT-15858
"Replace with a 'foreach' function call" intention breaks codeKT-16332
Add braces to 'if' statement intention does not put end-of-line comment properly into bracesKT-17058
Create implementations from headers: each implementation gets own fileKT-17306
Don't report package name mismatch if there's no Java code in the moduleKT-19730
Quickfix for delegated properties boilerplate generation doesn't work on localsKT-21005
Missing KDoc inspection seems to have broken in 1.1.60 EAPKT-21082
Create actual declaration of top-level subclass of expected sealed class in the same file as actual declaration of sealed class presentKT-22110
"Can be joined with assignment" inspection underlining extends into commentKT-22329
"Create class" quickfix is not suggested in when branchKT-22428
Create member function from usage shouldn't present type par...
Kotlin 1.2.31
Compiler
- Support nullability annotations in
androidx
package
IDE. Inspections and Intentions
KT-22804
"Remove redundant backticks" inspection reports all names and quick fix fails for non-applicable names
Tools. Gradle
KT-23192
Issue with experimental mode in Android Extensions and Android Gradle plugin 3.2.0-alpha05
Bugfixes
KT-22205
Hitting breakpoints in Kotlin sometimes doesn't work- Fix compatibility with LivePlugin
1.2.30
CHANGELOG
1.2.30
Android
KT-19300
[AS3.0] Android extensions, Parcelable: editor shows warning about incomplete implementation on a class with Parcelize annotationKT-22168
"Kotlin Android | Illegal Android Identifier" inspection reports non-instrumentation unit testsKT-22700
Android Extensions bind views with dot in ID
Compiler
New Features
KT-17336
Introduce suspendCoroutineUninterceptedOrReturn coroutine intrinsic functionKT-22766
Imitate "suspend" modifier in 1.2.x by stdlib function
Performance Improvements
KT-5177
Optimize code generation for 'for' loop with withIndex()KT-16880
Smarter detection of tail-suspending unit invocations
Fixes
KT-10494
IAE in CheckMethodAdapter.checkInternalName when declaring classes inside method with non-standard nameKT-16079
Internal error when using suspend operator plusKT-17091
Converting to SAM Java type appends non-deterministic hash to class nameKT-18522
Internal compiler error with IndexOutOfBoundsException, "Exception while analyzing expression"KT-18578
Compilation failure with @JsonInclude and default interface methodKT-19786
Kotlin — unable to override a Java function with @nullable vararg argumentKT-20466
JSR305 false positive for elvis operatorKT-20705
Tail suspend call optimization doesn't work in when blockKT-20708
Tail suspend call optiomization doesn't work in some branchesKT-20855
Unnecessary safe-call reported on nullable typeKT-21165
Exception from suspending function is not caughtKT-21238
Nonsensical warning "Expected type does not accept nulls in Java, but the value may be null in Kotlin"KT-21258
Raw backing field value exposed via accessors?KT-21303
Running on JDK-10-ea-31 leads to ArrayIndexOutOfBoundsExceptionKT-21642
Back-end (JVM) Internal error: Couldn't transform method node on usingopen
keyword withsuspend
for a top-level functionKT-21759
Compiler crashes on two subsequent return statements in suspend functionKT-22029
Fold list to pair with destructuring assignment and inner when results in ExceptionKT-22345
OOM in ReturnUnitMethodReplacerKT-22410
invalid compiler optimization for nullable cast to reified typeKT-22577
Compiler crashes when coroutineContext is used inside of inlined lambda
IDE
New Features
KT-8352
Pasting Kotlin code into package could create .kt fileKT-16710
Run configuration to run main() as a Node CLI appKT-16833
Allow mixing Java and Kotlin code in "Analyze Data Flow..."KT-21531
JS: add support for running specific test from the gutter icon with Jest testing framework
Performance Improvements
Fixes
KT-7316
Go to declaration in Kotlin JavaScript project navigates to JDK source in some casesKT-8563
Refactor / Rename inserts line breaks without reasonKT-11467
Editor:var
property in primary constructor is shown not underscored, same asval
KT-13509
Don't show run line markers for top-level functions annotated with @testKT-13971
Kotlin Bytecode tool window: Decompile is available for incompilable code, CE at MemberCodegen.genFunctionOrProperty()KT-15000
Do not spell check overridden declaration namesKT-15331
"Kotlin not configured" notification always shown for common module in multiplatform projectKT-16333
Cannot navigate to super declaration via shortcutKT-16976
Introduce special SDK for Kotlin JS projects to avoid using JDKKT-18445
multiplatform project: provide more comfortable way to process cases when there are missed method implemenation in the implementation classKT-19194
Some Live Templates should probably be enabled also for "expressions" not only "statements"KT-20281
multiplatform:Unresolved service JavaDescriptorResolver on a file with several header declarations and gutters not shownKT-20470
IntelliJ indent guide/invisible brace matching hint tooltip doesn't show contextKT-20522
Add "Build" action in "Before launch" block when create new JS run configuration (for test)KT-20915
Add quickfix for ‘Implicit (unsafe) cast from dynamic type’KT-20971
Cannot navigate to sources of compiled common dependencyKT-21115
Incomplete actual class should still have navigation icon to expect classKT-21688
UIdentifier violates JvmDeclarationElement contractKT-21874
Unexpected IDE error "Unknown type [typealias ...]"KT-21958
Support "Alternative source available" for Kotlin filesKT-21994
Collapsed comments containing*
get removed in the summary line.KT-22179
For properties overridden in object literals, navigation to inherited properties is missing indication of a type they are overriddenKT-22214
Front-end Internal error: Failed to analyze declarationKT-22230
Reformatting code to Kotlin style indents top-level typealiases with commentsKT-22242
Semantic highlighting uses different colors for the same 'it' variable and same color for different 'it'sKT-22301
Don't require space after label for lambdaKT-22346
Incorrect indentation for chained context extension functions (lambdas) when using Kotlin style guideKT-22356
Update status of inspection "Kotlin JVM compiler configured but no stdlib dependency" after pom file update, not on re-importKT-22360
MPP: with "Create separate module per source set" = NoexpectedBy
dependency is imported not transitivelyKT-22374
"Join lines" works incorrectly in case of line containing more than one string literalKT-22473
Regression in IntelliJ Kotlin Plugin 1.2.20, settings.gradle.kts script template is wrongKT-22508
Auto-formatting should insert an indentation for default parameter valuesKT-22557
Dead 'Apply' button, when setting code styleKT-22565
Cant doPsiAnchor.create
on annotation in annotationKT-22570
Can't add import in "Packages to Use Import with '*'" section on "Import" tab in Code Style -> KotlinKT-22641
Auto-formatting adds extra indent to a closing square bracket on a separate lineKT-22734
LinkageError: "loader constraint violation: when resolving method PsiTreeUtilKt.parentOfType()" at KotlinConverter.convertPsiElement$uast_kotlin()
IDE. Debugger
KT-20351
Stepping over a line with ...
1.2.30-eap-47
CHANGELOG
1.2.30 EAP-2
Android
KT-19300
[AS3.0] Android extensions, Parcelable: editor shows warning about incomplete implementation on a class with Parcelize annotationKT-22168
"Kotlin Android | Illegal Android Identifier" inspection reports non-instrumentation unit testsKT-22700
Android Extensions bind views with dot in ID
Compiler
New Features
KT-17336
Introduce suspendCoroutineUninterceptedOrReturn coroutine intrinsic functionKT-22766
Imitate "suspend" modifier in 1.2.x by stdlib function
Performance Improvements
KT-5177
Optimize code generation for 'for' loop with withIndex()KT-16880
Smarter detection of tail-suspending unit invocations
Fixes
KT-10494
IAE in CheckMethodAdapter.checkInternalName when declaring classes inside method with non-standard nameKT-16079
Internal error when using suspend operator plusKT-17091
Converting to SAM Java type appends non-deterministic hash to class nameKT-18522
Internal compiler error with IndexOutOfBoundsException, "Exception while analyzing expression"KT-18578
Compilation failure with @JsonInclude and default interface methodKT-19786
Kotlin — unable to override a Java function with @nullable vararg argumentKT-20466
JSR305 false positive for elvis operatorKT-20705
Tail suspend call optimization doesn't work in when blockKT-20708
Tail suspend call optiomization doesn't work in some branchesKT-20855
Unnecessary safe-call reported on nullable typeKT-21165
Exception from suspending function is not caughtKT-21238
Nonsensical warning "Expected type does not accept nulls in Java, but the value may be null in Kotlin"KT-21258
Raw backing field value exposed via accessors?KT-21303
Running on JDK-10-ea-31 leads to ArrayIndexOutOfBoundsExceptionKT-21642
Back-end (JVM) Internal error: Couldn't transform method node on usingopen
keyword withsuspend
for a top-level functionKT-21759
Compiler crashes on two subsequent return statements in suspend functionKT-22029
Fold list to pair with destructuring assignment and inner when results in ExceptionKT-22345
OOM in ReturnUnitMethodReplacerKT-22410
invalid compiler optimization for nullable cast to reified typeKT-22577
Compiler crashes when coroutineContext is used inside of inlined lambda
IDE
New Features
KT-8352
Pasting Kotlin code into package could create .kt fileKT-16710
Run configuration to run main() as a Node CLI appKT-16833
Allow mixing Java and Kotlin code in "Analyze Data Flow..."KT-21531
JS: add support for running specific test from the gutter icon with Jest testing framework
Performance Improvements
Fixes
KT-7316
Go to declaration in Kotlin JavaScript project navigates to JDK source in some casesKT-8563
Refactor / Rename inserts line breaks without reasonKT-11467
Editor:var
property in primary constructor is shown not underscored, same asval
KT-13509
Don't show run line markers for top-level functions annotated with @testKT-13971
Kotlin Bytecode tool window: Decompile is available for incompilable code, CE at MemberCodegen.genFunctionOrProperty()KT-15000
Do not spell check overridden declaration namesKT-15331
"Kotlin not configured" notification always shown for common module in multiplatform projectKT-16333
Cannot navigate to super declaration via shortcutKT-16976
Introduce special SDK for Kotlin JS projects to avoid using JDKKT-18445
multiplatform project: provide more comfortable way to process cases when there are missed method implemenation in the implementation classKT-19194
Some Live Templates should probably be enabled also for "expressions" not only "statements"KT-20281
multiplatform:Unresolved service JavaDescriptorResolver on a file with several header declarations and gutters not shownKT-20470
IntelliJ indent guide/invisible brace matching hint tooltip doesn't show contextKT-20522
Add "Build" action in "Before launch" block when create new JS run configuration (for test)KT-20915
Add quickfix for ‘Implicit (unsafe) cast from dynamic type’KT-20971
Cannot navigate to sources of compiled common dependencyKT-21115
Incomplete actual class should still have navigation icon to expect classKT-21688
UIdentifier violates JvmDeclarationElement contractKT-21874
Unexpected IDE error "Unknown type [typealias ...]"KT-21958
Support "Alternative source available" for Kotlin filesKT-21994
Collapsed comments containing*
get removed in the summary line.KT-22179
For properties overridden in object literals, navigation to inherited properties is missing indication of a type they are overriddenKT-22214
Front-end Internal error: Failed to analyze declarationKT-22230
Reformatting code to Kotlin style indents top-level typealiases with commentsKT-22242
Semantic highlighting uses different colors for the same 'it' variable and same color for different 'it'sKT-22301
Don't require space after label for lambdaKT-22346
Incorrect indentation for chained context extension functions (lambdas) when using Kotlin style guideKT-22356
Update status of inspection "Kotlin JVM compiler configured but no stdlib dependency" after pom file update, not on re-importKT-22360
MPP: with "Create separate module per source set" = NoexpectedBy
dependency is imported not transitivelyKT-22374
"Join lines" works incorrectly in case of line containing more than one string literalKT-22473
Regression in IntelliJ Kotlin Plugin 1.2.20, settings.gradle.kts script template is wrongKT-22508
Auto-formatting should insert an indentation for default parameter valuesKT-22557
Dead 'Apply' button, when setting code styleKT-22565
Cant doPsiAnchor.create
on annotation in annotationKT-22570
Can't add import in "Packages to Use Import with '*'" section on "Import" tab in Code Style -> KotlinKT-22641
Auto-formatting adds extra indent to a closing square bracket on a separate lineKT-22734
LinkageError: "loader constraint violation: when resolving method PsiTreeUtilKt.parentOfType()" at KotlinConverter.convertPsiElement$uast_kotlin()
IDE. Debugger
KT-20351
Stepping over a line...
1.2.30-eap-16
CHANGELOG
1.2.30 EAP
Compiler
New Features
KT-17336
Introduce suspendCoroutineUninterceptedOrReturn coroutine intrinsic function
Performance Improvements
KT-5177
Optimize code generation for 'for' loop with withIndex()KT-16880
Smarter detection of tail-suspending unit invocations
Fixes
KT-10494
IAE in CheckMethodAdapter.checkInternalName when declaring classes inside method with non-standard nameKT-16079
Internal error when using suspend operator plusKT-20705
Tail suspend call optimization doesn't work in when blockKT-20708
Tail suspend call optiomization doesn't work in some branchesKT-21165
Exception from suspending function is not caughtKT-21258
Raw backing field value exposed via accessors?KT-21303
Running on JDK-10-ea-31 leads to ArrayIndexOutOfBoundsExceptionKT-21642
Back-end (JVM) Internal error: Couldn't transform method node on usingopen
keyword withsuspend
for a top-level functionKT-21759
Compiler crashes on two subsequent return statements in suspend functionKT-22029
Fold list to pair with destructuring assignment and inner when results in ExceptionKT-22345
OOM in ReturnUnitMethodReplacer
IDE
New Features
KT-16833
Allow mixing Java and Kotlin code in "Analyze Data Flow..."
Performance Improvements
Fixes
KT-7316
Go to declaration in Kotlin JavaScript project navigates to JDK source in some casesKT-11467
Editor:var
property in primary constructor is shown not underscored, same asval
KT-13509
Don't show run line markers for top-level functions annotated with @testKT-13971
Kotlin Bytecode tool window: Decompile is available for incompilable code, CE at MemberCodegen.genFunctionOrProperty()KT-15000
Do not spell check overridden declaration namesKT-16333
Cannot navigate to super declaration via shortcutKT-16976
Introduce special SDK for Kotlin JS projects to avoid using JDKKT-19194
Some Live Templates should probably be enabled also for "expressions" not only "statements"KT-20470
IntelliJ indent guide/invisible brace matching hint tooltip doesn't show contextKT-20915
Add quickfix for ‘Implicit (unsafe) cast from dynamic type’KT-21688
UIdentifier violates JvmDeclarationElement contractKT-21958
Support "Alternative source available" for Kotlin filesKT-21994
Collapsed comments containing*
get removed in the summary line.KT-22179
For properties overridden in object literals, navigation to inherited properties is missing indication of a type they are overriddenKT-22214
Front-end Internal error: Failed to analyze declarationKT-22230
Reformatting code to Kotlin style indents top-level typealiases with commentsKT-22242
Semantic highlighting uses different colors for the same 'it' variable and same color for different 'it'sKT-22356
Update status of inspection "Kotlin JVM compiler configured but no stdlib dependency" after pom file update, not on re-importKT-22374
"Join lines" works incorrectly in case of line containing more than one string literalKT-22473
Regression in IntelliJ Kotlin Plugin 1.2.20, settings.gradle.kts script template is wrong
IDE. Debugger
KT-20351
Stepping over a line with two inline stdlib functions steps into the second functionKT-21945
Double stop on same line during step over if inline call is present
IDE. Inspections and Intentions
New Features
KT-22038
Inspection to replace the usage of Java Collections methods on subtypes of MutableList with the methods from Kotlin stdlibKT-22171
Add Intention for single character substringKT-22409
Intention for changing property setter accessibility
Performance Improvements
KT-21137
Kotlin instantiates something expensive via reflection when highlighting Java file
Fixes
KT-18007
Inspection doesn't suggest Maven Plugin for kotlin-stdlib-jre8KT-18308
'Remove braces from else statement' intention breaks codeKT-18912
multiplatform project: Convert to enum class: header sealed class cannot convert nested objects to enum valuesKT-21600
suspend
modifier should go afteroverride
in overridden suspend functionsKT-21881
Replace "If" with safe access intention false positiveKT-22054
Replace '!=' with 'contentEquals' should be replace '==' with 'contentEquals'KT-22159
"Replace return with 'if' expression" should not place return before expressions of type NothingKT-22221
QuickFix to remove unused constructor parameters shouldn't delete parenthesisKT-22335
IOE from KotlinUnusedImportInspection.scheduleOptimizeImportsOnTheFlyKT-22339
Remove setter parameter type: error while creating problem descriptor
IDE. Refactorings
KT-17047
Refactorings for related standard "scoping functions" conversion: 'let' <-> 'run', 'apply' <-> 'also'KT-22200
Overriden function generated from completion is missing suspend modifierKT-22359
Refactor / Rename file: Throwable at RenameProcessor.performRefactoring()KT-22461
Rename doesn't work on private top-level members of multi-file parts
JavaScript
KT-20735
JS: kotlin.test-js integration tests terminate build on failure
Libraries
KT-16661
Performance overhead in string splitting in Kotlin versus Java?KT-22042
SuboptimalStrings#findAnyOf
Tools
KT-22196
kotlin-compiler-embeddable bundles outdated kotlinx.coroutines since 1.1.60
Tools. CLI
KT-19051
Suppress Java 9 illegal access warnings
Tools. Gradle
KT-18462
Add 'org.jetbrains.kotlin.platform.android' plugin.
Tools. J2K
KT-21635
J2K: create "inspection based post-processing"