Kotlin 1.2.50 EAP 1
Pre-release
Pre-release
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 into account existent annotations in Java sourceKT-23133
"Remove redundant calls of the conversion method" wrongly shown for Boolan to Int conversionKT-23167
Report "use expression body" also on left braceKT-23194
Inspection "map.put() should be converted to assignment" leads to red code in case of labled returnKT-23303
"Might be const" inspection does not check explicit type specificationKT-23320
Quick fix to add constructor invocation doesn't work for sealed classesKT-23321
Intention to move type to separate file shouldn't be available for sealed classesKT-23346
Lift Assignment quick fix incorrectly processes block assignmentsKT-23377
Simplify boolean expression produces incorrect results when mixing nullable and non-nullable variablesKT-23465
False positivesuspicious callable reference
on lambda invoke with parametersKT-23608
AE “Failed to create expression from text” after applying quick fix “Convert too long character literal to string”KT-23620
False positiveRedundant Companion reference
on calling object from companionKT-23634
'Add use-site target' intention drops annotation argumentsKT-23753
"Remove variable" quick fix should not remove commentKT-23756
Bogus "Might be const" warning in object expressionKT-23801
"Convert to constructor" (IntelliJ) quick fix uses wrong use-site target for annotating propertiesKT-23977
wrong hint Unit redundantKT-24066
'Remove redundant Unit' false positive when Unit is returned as Any
IDE. Multiplatform
KT-20406
Overload resolution ambiguity in IDE on expect class / actual typealias from kotlin-stdlib-common / kotlin-stdlibKT-24316
Missing dependencies in Kotlin MPP when using gradle composite builds
IDE. Navigation
KT-23182
Find Usages checks whether there are unused variables in functions which contain search result candidatesKT-23223
Navigate to actual declaration from actual usage
IDE. Refactorings
KT-23563
null by org.jetbrains.kotlin.idea.refactoring.rename.KotlinMemberInplaceRenameHandler$RenamerImpl exception on trying in-place Rename of non-scratch functionsKT-23644
Named parameters in generated Kotlin Annotations
IDE. Scratch
KT-23441
Scratch options reset on IDE restartKT-23480
java.util.NoSuchElementException: "Collection contains no element matching the predicate" on run of a scratch file with unresolved function parameterKT-23587
Scratch: references from scratch file aren't taken into accountKT-24315
Checkbox labels aren't aligned in scratch panel
IDE. Script
KT-23746
Logger$EmptyThrowable "[kts] cannot find a valid script definition annotation on the class class ScriptTemplateWithArgs" with LivePlugin enabled
Tools. J2K
KT-22989
Exception "Assertion failed: Refactorings should be invoked inside transaction" on creating UI Component/Notification
Libraries
KT-10456
Common Int.toString(radix: Int) methodKT-24353
Add support for junit 5 in kotlin.testKT-22400
coroutineContext shall be in kotlin.coroutines.experimental packageKT-23920
CharSequence.trimEnd calls substring instead of subSequence
Gradle plugin
KT-20608
Cannot reference operator overloads across submodules (*.kotlin_module not loaded when a module name has a slash)KT-22510
Common sources aren't added when compiling custom source set with Gradle multiplatform pluginKT-23092
Gradle plugin for MPP common modules should not remove the 'compileJava' task fromproject.tasks
KT-23574
'archivesBaseName' does not affect module name in common modulesKT-23719
Incorrect Gradle Warning for expectedBy in kotlin-platform-android moduleKT-23878
Kapt: Annotation processors are run when formatting is changed
Tools. kapt
KT-23721
Warning informing user that 'tools.jar' is absent in the plugin classpath is not show when there is also an error