Releases: JetBrains/kotlin
Releases · JetBrains/kotlin
Kotlin 1.2.60 EAP 2
Compiler
KT-20356Internal compiler error - This method shouldn't be invoked for INVISIBLE_FAKE visibilityKT-23153Compiler allows to set non constant value as annotation parameter
IDE
KT-20056TCE on creating object of an anonymous class in Kotlin scriptKT-23844Kotlin property accessor searcher consumes CPU when invoked on a scope consisting only of Java filesKT-24943Project leak via LibraryEffectiveKindProviderImplKT-25092SourcePsi should be physical leaf element but got OPERATION_REFERENCEKT-25255Preferences | Languages & Frameworks | Kotlin Updates: show currently installed version
IDE. Inspections and Intentions
KT-15666Unused symbol: delete header & its implementations togetherKT-20523Don't mark as unused functions with@kotlin.test.*annotations and classes with such membersKT-23105Create actual implementation shouldn't generate default parameter valuesKT-23326"Add missing actual members" quick fix fails with AE at KtPsiFactory.createDeclaration() with wrong expect codeKT-23686"Add missing actual members" should not add primary actual constructor if it's present as secondary oneKT-23762Add missing actual members quick fix adds actual declaration for val/var again if it was in the primary constructor
IDE. Navigation
KT-11477Kotlin searchers consume CPU in a project without any Kotlin filesKT-17512Finding usages of actual declarations in common modules
IDE. Refactorings
KT-15351Extract Superclass/Interface: existent target file name is rejected; TCE: "null cannot be cast to non-null type org.jetbrains.kotlin.psi.KtFile" at ExtractSuperRefactoring.createClass()KT-16281Extract Interface: private member with Make Abstract = Yes produces incompilable codeKT-16284Extract Interface/Superclass: reference to private member turns incompilable, when referring element is made abstractKT-17235Introduce Parameter leaks listener if refactoring is cancelled while in progressKT-17742Refactor / Rename Java getter toget()does not update Kotlin referencesKT-18555Refactor / Extract Interface, Superclass: Throwable: "Refactorings should be invoked inside transaction" at RefactoringDialog.show()KT-18736Extract interface: import for property type is omittedKT-24968Type hints disappear after "Copy" refactoringKT-24992The IDE got stuck showing a modal dialog (kotlin refactoring) and doesn’t react to any actions
IDE. Tests Support
KT-22306Empty gutter menu for main() and test methods in Kotlin/JS projectKT-25253No “run” gutter icons for tests in Kotlin/JS project
Reflection
KT-16616KotlinReflectionInternalError: Reflection on built-in Kotlin types is not yet fully supported in getMembersOfStandardJavaClasses.ktKT-17542KotlinReflectionInternalError on ::values of enum classKT-20442ReflectJvmMapping.getJavaConstructor() fails with Call is not yet supported for anonymous classKT-21973Method.kotlinFunction for top level extension function returns null when app is started from test sourcesKT-22048Reflection explodes when attempting to get constructors of an enum with overridden method
Tools. JPS
KT-25218Build fails as Javac doesn't see Kotlin classes
Tools. kapt
KT-25131Kapt should not load annotation processors when generating stubs
Kotlin 1.2.51
1.2.51
Backend. JVM
KT-23943Wrong autoboxing for non-null inline class inside elvis withnullconstantKT-24952EnumConstantNotPresentExceptionProxy from Java reflection on annotation class with target TYPE on JVM < 8KT-24986Android project release build with ProGuard enabled crashes with IllegalAccessError: Final field cannot be written to by method
Binary Metadata
KT-24944Exception from stubs: "Unknown type parameter with id = 1" (EA-120997)
Reflection
KT-23962MalformedParameterizedTypeException when reflecting GeneratedMessageLite.ExtendableMessage
Tools. Gradle
KT-24956Kotlin Gradle plugin's inspectClassesForKotlinIC task for the new 1.2.50 release takes incredibly longKT-23866Kapt plugin should pass arguments from compiler argument providers to annotation processorsKT-247161.2.50 emits warning "Classpath entry points to a non-existent location:"KT-24832Inter-project IC does not work when "kotlin-android" project depends on "kotlin" projectKT-24938Gradle parallel execution fails on multi-module Gradle ProjectKT-25027Kapt plugin: Kapt and KaptGenerateStubs tasks have some incorrect inputs
Tools. Scripts
KT-24926NoSuchElementException in TemplateAnnotationVisitor when upgrading the Gradle Kotlin DSL to Kotlin 1.2.50
Kotlin 1.2.60 EAP 1
Compiler
KT-23413IndexOutOfBoundsException on local delegated properties fromprovideDelegateif there's at least one non-local delegated propertyKT-23742Optimise inline class redundant boxing on return from inlined lambdaKT-24513High memory usage in Kotlin and 2018.1KT-24679KotlinUCallExpression doesn't resolve callee if it is an inline methodKT-24808NI: nestedwithContextcall is reported withSuspension functions can be called only within coroutine bodyerrorKT-24859Disallow calls of functions annotated with receiver annotated with @RestrictsSuspension in foreign suspension context
IDE
New Features
KT-24827Allow to do an additional check for Kotlin plugin update before an actual install
Performance Improvements
KT-20924Slow KtLightAbstractAnnotation.getClsDelegate() lightAnnotations.kt
Fixes
KT-4311"Override members" works wrong when function is extensionKT-13948IDE plugins: improve descriptionKT-17350Implement members from interface fails when one of the generic types is unresolvedKT-17668Edit Configuration dialog doesn't have a button for choosing the "Main class" fieldKT-19102Wrong equals() and hashCode() code generated for arrays of arraysKT-21863Imported typealias to object declared as "Unused import directive" when only referring to methodsKT-23272Git commit not workingKT-23407Pasting callable reference from different package suggests imports, but inserts incompilable FQNKT-23456UAST: Enum constant constructor call arguments missing from Kotlin enumsKT-23942Fix building light-classes for MPP project containing multi-file facadesKT-24072Kotlin SDK appears as many times as there are modules in the projectKT-24412Kotlin create project wizard: Kotlin/JS no SDKKT-24933please remove usages of com.intellij.psi.search.searches.DirectClassInheritorsSearch#search(com.intellij.psi.PsiClass, com.intellij.psi.search.SearchScope, boolean, boolean) deprecated long agoKT-24958Escaping goes insane when editing interpolated string in injected fragment editorKT-25024Wrong resolve scope while resolving java.lang.String PsiClassReferenceType
IDE. Android
KT-23040Wrong run configuration classpath in a mixed Java/Android projectKT-24321Actual implementations from Android platform module are wrongly reported withno corresponding expected declarationin IDEKT-25018ExceptionDependencies for org.jetbrains.kotlin.resolve.calls.* cannot be satisfiedon a simple project in AS 3.2 Canary
IDE. Code Style, Formatting
KT-14066Comments on when branches are misplacedKT-25008Formatter: Use single indent for multiline elvis operator
IDE. Debugger
KT-23162Evaluate expression in multiplatform common test fails with JvmName missing when run in JVMKT-24903Descriptors leak fromKotlinMethodSmartStepTarget
IDE. Decompiler
KT-23981Kotlin bytecode decompiler works in AWT thread
IDE. Gradle
KT-24614Gradle can't get published versions until commenting repositories in settings.gradle
IDE. Hints
KT-22432Type hints: Don't include ".Companion" in the names of types defined inside companion objectKT-22653Lambda return hint is duplicated for increment/decrement expressionsKT-24828Double return hints on labeled expressions
IDE. Inspections and Intentions
New Features
KT-7710Intention to convert lambda to anonymous functionKT-11850Addnested lambdas with implicit parameterswarningKT-13688Add 'Change to val' quickfix for delegates without setValueKT-13782Intention (and may be inspection) to convert toString() call to string templateKT-14779Inspection to replace String.format with string templatesKT-18810Quick-fix for 'is' absence in whenKT-22871Add quickfix to move const val into companion objectKT-23082Add quick-fix for type variance conflictKT-23306Add intention of putting remaining when-values even in end, and even if there is "else"KT-23897Inspections: report extension functions declared in same classKT-24295Add "Remove 'lateinit'" quickfixKT-24509Inspection "JUnit tests should return Unit"KT-24815Add Quick fix to remove illegal "const" modifier
Fixes
KT-12298Fix override signature doesn't remove bogus recieverKT-20583Report "redundant let" even foritin argument positionKT-21556"Call chain on collection type may be simplified" generates uncompiled code on IntArrayKT-22030Invalid Function can be private inspectionKT-22041"Convert lambda to reference" suggested incorrectlyKT-22089Explict This inspection false negative with synthetic Java propertyKT-22094Can be private false positive with function called from lambda inside inline functionKT-22162Add indices to loop fails on destructing declaratorKT-22180"Can be private" false positive when function is called by inline function inside property initializerKT-22371"Create secondary constructor" quick fix is not suggested for supertype constructor referenceKT-22758"Create ..." and "Import" quick fixes are not available on unresolved class name in primary constructorKT-23106Implement methods should respect actual modifier as wellKT-23452"Remove unnecessary parentheses" reports parens of returned functionKT-23697Android project with 'org.jetbrains.kotlin.platform.android' plugin: all multiplatform IDE features are absentKT-23752False positive "Remove variable" quick fix on property has lambda or anonymous function initializerKT-23788Can't convert long char literal to string if it starts with backslashKT-23860Import quick fix is not available in class constructor containing transitive dependency parametersKT-24349False positive "Call on collection type may be reduced"KT-24374"Class member can have private visibility" inspection reportsexpectmembersKT-24422Android Studio erroneously reporting that@Inject lateinit varcan be made privateKT-24423False inspection warning "redundant type checks for object"KT-24425wrong hint remove redundant CompanionKT-24537False positiveproperty can be privateon actual properties in a multiplatform project- [
KT-24557](https://youtrack...
Kotlin 1.2.50
1.2.50
Compiler
KT-23360Do not serialize annotations with retention SOURCE to metadataKT-24278Hard-code to kotlin compiler annotation for android library migrationKT-24472Support argfiles in kotlinc with -XargfileKT-24593Support -XXLanguage:{+|-}LanguageFeature compiler arguments to enable/disable specific featuresKT-24637Introduce "progressive" mode of compiler
Backend. JS
KT-23094JS compiler: Delegation fails to pass the continuation parameter to child suspend functionKT-23582JS: Fails to inline, produces bad codeKT-24335JS: Invalid implement of external interface
Backend. JVM
KT-12330Slightly improve generated bytecode for data class equals/hashCode methodsKT-18576Debugger fails to show decomposed suspend lambda parametersKT-22063Add intrinsics for javaObjectType and javaPrimitiveTypeKT-23402Internal error: Couldn't inline method call because the compiler couldn't obtain compiled body for inline function with reified type parameterKT-23704UnstablecheckExpressionValueIsNotNull()generation in bytecodeKT-23707Unstable bridge generation orderKT-23857Annotation with target TYPE is not applicable to TYPE_USE in Java sourcesKT-23910@jvmoverloads doesn't work with default arguments in common codeKT-24427Protected function having toArray-like signature from collection becomes public in bytecodeKT-24661Support binary compatibility mode for @JvmDefault
Frontend
KT-21129Unused parameter in property setter is not reportedKT-21157Kotlin script: engine can take forever to eval certain code after several timesKT-22740REPL slows down during extensions compilingKT-23124Kotlin multiplatform project causes IntelliJ build errorsKT-23209Compiler throwing frontend exceptionKT-23589Report a warning on local annotation classesKT-23760Unable to implement common interface with fun member function with typealiased parameter
Android
KT-23244Option to Disable View Binding generation in Kotlin Android Extensions Plugin
IDE
KT-8407TestNG: running tests from context creates new run configuration every timeKT-9218Searching for compilable files takes too longKT-15019Editor:argsreference in .kts file is redKT-18769Expand Selection on opening curly brace should select the entire block right awayKT-19055Idea hangs on copy-paste big Kotlin filesKT-20605Unresolved reference on instance from common module functionKT-20824Type mismatch for common function taking a non-mapped Kotlin's expected class from stdlib-common, with actual typealias on JVMKT-20897Can't navigate to declaration after PsiInvalidElementAccessException exceptionKT-22527Kotlin UAST does not evaluate values inside delegation expressionsKT-22868Implementing anexpected classdeclaration usingactual typealiasproduces "good code that is red"KT-22922Override Members should add experimental annotation when requiredKT-23384Hotspot in org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport.getKotlinInternalClasses(FqName, GlobalSearchScope) IDELightClassGenerationSupport.kt ?KT-23408Don't render @nonnull and @nullable annotations in parameter info for Java methodsKT-23557Expression Bodies should have implicitreturnin UastKT-23745Unable to implement common interfaceKT-23746Logger$EmptyThrowable "[kts] cannot find a valid script definition annotation on the class class ScriptTemplateWithArgs" with LivePlugin enabledKT-23975Move Kotlin internal actions under Idea Internal actions menuKT-24268Other main menu itemKT-24438ISE “The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler” after rebuilding simple Gradle-based project via JPS.
IDE. Configuration
KT-10935Add menu entry to create new kotlin .kts scriptsKT-20511Library added from maven (using IDEA UI) is not detected as Kotlin/JS library (since type="repository")KT-20665Kotlin Gradle script created by New Project/Module wizard fails with Gradle 4.1+KT-21844Create Kotlin class dialog: make class abstract automaticallyKT-22305Language and API versions of Kotlin compiler are “Latest” by default in some ways of creating new projectKT-23261New MPP design: please show popup with error message if module name is not setKT-23638Kotlin plugin breaks project opening for PhpStorm/WebStormKT-23658Unclear options “Gradle” and “Gradle (Javascript)” on configuring Kotlin in Gradle- and Maven-based projectsKT-23845IntelliJ Maven Plugin does not pass javaParameters option to Kotlin facetKT-23980Move "Update Channel" from "Configure Kotlin Plugin Updates" to settingsKT-24504Existent JPS-based Kotlin/JS module is converted to new format, while New Project wizard and facet manipulations still create old format
IDE. Debugger
KT-23886Both java and kotlin breakpoints in kotlin filesKT-24136Debugger: update drop-down menu for the line with lambdas
IDE. Editing
KT-2582When user inputs triple quote, add matching triple quote automaticallyKT-5206Long lists of arguments are not foldableKT-23457Auto-import and Import quick fix do not suggest classes from common module [Common test can't find class with wordAbstractin name.]KT-23235Super slow editing with auto imports enabled
IDE. Gradle
KT-23234Test names for tests containing inner classes are sporadically reported to teamcity runs.KT-23383Optional plugin dependency for kotlin gradle plugin 'java' subsystem dependent featuresKT-22588Resolver for 'project source roots and libraries for platform JVM' does not know how to resolve on Gradle Kotlin DSL project without Java and KotlinKT-23616Synchronize script dependencies not at Gradle SyncKT-24444Do not store proxy objects from Gradle importer in the project modelKT-24586MVNFE “Cannot resolve external dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.41 because no repositories are defined.” on creating Gradle project with Kotlin only (probably due to lack of repositories block)KT-24671dependencies missed in buildscript block after creating new Gradle-based project in 173 IDEA
IDE. Inspections and Intentions
New Features
- [`KT-...
Kotlin 1.2.50 EAP 2
1.2.50
Compiler
KT-23360Do not serialize annotations with retention SOURCE to metadataKT-24278Hard-code to kotlin compiler annotation for android library migrationKT-24472Support argfiles in kotlinc with -XargfileKT-24593Support -XXLanguage:{+|-}LanguageFeature compiler arguments to enable/disable specific features
Backend. JS
KT-23094JS compiler: Delegation fails to pass the continuation parameter to child suspend functionKT-23582JS: Fails to inline, produces bad codeKT-24335JS: Invalid implement of external interface
Backend. JVM
KT-12330Slightly improve generated bytecode for data class equals/hashCode methodsKT-18576Debugger fails to show decomposed suspend lambda parametersKT-22063Add intrinsics for javaObjectType and javaPrimitiveTypeKT-23402Internal error: Couldn't inline method call because the compiler couldn't obtain compiled body for inline function with reified type parameterKT-23704UnstablecheckExpressionValueIsNotNull()generation in bytecodeKT-23707Unstable bridge generation orderKT-23857Annotation with target TYPE is not applicable to TYPE_USE in Java sourcesKT-23910@jvmoverloads doesn't work with default arguments in common codeKT-24427Protected function having toArray-like signature from collection becomes public in bytecodeKT-24661Support binary compatibility mode for @JvmDefault
Frontend
KT-21129Unused parameter in property setter is not reportedKT-21157Kotlin script: engine can take forever to eval certain code after several timesKT-22740REPL slows down during extensions compilingKT-23124Kotlin multiplatform project causes IntelliJ build errorsKT-23209Compiler throwing frontend exceptionKT-23589Report a warning on local annotation classesKT-23760Unable to implement common interface with fun member function with typealiased parameter
IDE
KT-8407TestNG: running tests from context creates new run configuration every timeKT-9218Searching for compilable files takes too longKT-15019Editor:argsreference in .kts file is redKT-18769Expand Selection on opening curly brace should select the entire block right awayKT-19055Idea hangs on copy-paste big Kotlin filesKT-20605Unresolved reference on instance from common module functionKT-20824Type mismatch for common function taking a non-mapped Kotlin's expected class from stdlib-common, with actual typealias on JVMKT-20897Can't navigate to declaration after PsiInvalidElementAccessException exceptionKT-22527Kotlin UAST does not evaluate values inside delegation expressionsKT-22868Implementing anexpected classdeclaration usingactual typealiasproduces "good code that is red"KT-22922Override Members should add experimental annotation when requiredKT-23384Hotspot in org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport.getKotlinInternalClasses(FqName, GlobalSearchScope) IDELightClassGenerationSupport.kt ?KT-23408Don't render @nonnull and @nullable annotations in parameter info for Java methodsKT-23557Expression Bodies should have implicitreturnin UastKT-23745Unable to implement common interfaceKT-23746Logger$EmptyThrowable "[kts] cannot find a valid script definition annotation on the class class ScriptTemplateWithArgs" with LivePlugin enabledKT-23975Move Kotlin internal actions under Idea Internal actions menuKT-24268Other main menu itemKT-24438ISE “The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler” after rebuilding simple Gradle-based project via JPS.
IDE. Configuration
KT-10935Add menu entry to create new kotlin .kts scriptsKT-20511Library added from maven (using IDEA UI) is not detected as Kotlin/JS library (since type="repository")KT-20665Kotlin Gradle script created by New Project/Module wizard fails with Gradle 4.1+KT-21844Create Kotlin class dialog: make class abstract automaticallyKT-22305Language and API versions of Kotlin compiler are “Latest” by default in some ways of creating new projectKT-23261New MPP design: please show popup with error message if module name is not setKT-23638Kotlin plugin breaks project opening for PhpStorm/WebStormKT-23658Unclear options “Gradle” and “Gradle (Javascript)” on configuring Kotlin in Gradle- and Maven-based projectsKT-23845IntelliJ Maven Plugin does not pass javaParameters option to Kotlin facetKT-23980Move "Update Channel" from "Configure Kotlin Plugin Updates" to settingsKT-24504Existent JPS-based Kotlin/JS module is converted to new format, while New Project wizard and facet manipulations still create old format
IDE. Debugger
KT-23886Both java and kotlin breakpoints in kotlin filesKT-24136Debugger: update drop-down menu for the line with lambdas
IDE. Editing
KT-2582When user inputs triple quote, add matching triple quote automaticallyKT-5206Long lists of arguments are not foldableKT-23457Auto-import and Import quick fix do not suggest classes from common module [Common test can't find class with wordAbstractin name.]KT-23235Super slow editing with auto imports enabled
IDE. Gradle
KT-23234Test names for tests containing inner classes are sporadically reported to teamcity runs.KT-23383Optional plugin dependency for kotlin gradle plugin 'java' subsystem dependent featuresKT-22588Resolver for 'project source roots and libraries for platform JVM' does not know how to resolve on Gradle Kotlin DSL project without Java and KotlinKT-23616Synchronize script dependencies not at Gradle SyncKT-24586MVNFE “Cannot resolve external dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.41 because no repositories are defined.” on creating Gradle project with Kotlin only (probably due to lack of repositories block)KT-24671dependencies missed in buildscript block after creating new Gradle-based project in 173 IDEA
IDE. Inspections and Intentions
New Features
KT-7822Convert foreach to for loop should place caret on the variable declarationKT-9943Quick fix/Intention to indent a raw stringKT-15063Inspection for coroutine: unused Deferred result- [
KT-16085](https://youtrack.jetbrains.com/issue...
Kotlin 1.2.50 EAP 1
1.2.50
Compiler
KT-23360Do not serialize annotations with retention SOURCE to metadataKT-24278Hard-code to kotlin compiler annotation for android library migration
Backend. JS
KT-23582JS: Fails to inline, produces bad codeKT-24335JS: Invalid implement of external interface
Backend. JVM
KT-12330Slightly improve generated bytecode for data class equals/hashCode methodsKT-22063Add intrinsics for javaObjectType and javaPrimitiveTypeKT-23704UnstablecheckExpressionValueIsNotNull()generation in bytecodeKT-23707Unstable bridge generation orderKT-23910@jvmoverloads doesn't work with default arguments in common codeKT-18576Debugger fails to show decomposed suspend lambda parametersKT-23402Internal error: Couldn't inline method call because the compiler couldn't obtain compiled body for inline function with reified type parameter
Frontend
KT-23760Unable to implement common interface with fun member function with typealiased parameterKT-21129Unused parameter in property setter is not reportedKT-23589Report a warning on local annotation classesKT-23124Kotlin multiplatform project causes IntelliJ build errorsKT-23209Compiler throwing frontend exceptionKT-21157Kotlin script: engine can take forever to eval certain code after several timesKT-22740REPL slows down during extensions compiling
IDE
KT-19055Idea hangs on copy-paste big Kotlin filesKT-15019Editor:argsreference in .kts file is redKT-18769Expand Selection on opening curly brace should select the entire block right awayKT-20605Unresolved reference on instance from common module functionKT-20824Type mismatch for common function taking a non-mapped Kotlin's expected class from stdlib-common, with actual typealias on JVMKT-20897Can't navigate to declaration after PsiInvalidElementAccessException exceptionKT-22868Implementing anexpected classdeclaration usingactual typealiasproduces "good code that is red"KT-23745Unable to implement common interfaceKT-23975Move Kotlin internal actions under Idea Internal actions menuKT-24268Other main menu itemKT-22527Kotlin UAST does not evaluate values inside delegation expressionsKT-23557Expression Bodies should have implicitreturnin UastKT-23384Hotspot in org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport.getKotlinInternalClasses(FqName, GlobalSearchScope) IDELightClassGenerationSupport.kt ?
IDE. Configuration
KT-10935Add menu entry to create new kotlin .kts scriptsKT-23638Kotlin plugin breaks project opening for PhpStorm/WebStormKT-23980Move "Update Channel" from "Configure Kotlin Plugin Updates" to settings
IDE. Debugger
KT-23886Both java and kotlin breakpoints in kotlin filesKT-24136Debugger: update drop-down menu for the line with lambdas
IDE. Editing
KT-2582When user inputs triple quote, add matching triple quote automaticallyKT-23235Super slow editing with auto imports enabledKT-5206Long lists of arguments are not foldableKT-23457Auto-import and Import quick fix do not suggest classes from common module [Common test can't find class with wordAbstractin name.]
IDE. Gradle
KT-23234Test names for tests containing inner classes are sporadically reported to teamcity runs.KT-23383Optional plugin dependency for kotlin gradle plugin 'java' subsystem dependent featuresKT-22588Resolver for 'project source roots and libraries for platform JVM' does not know how to resolve on Gradle Kotlin DSL project without Java and KotlinKT-23616Synchronize script dependencies not at Gradle Sync
IDE. Inspections and Intentions
New Features
KT-7822Convert foreach to for loop should place caret on the variable declarationKT-9943Quick fix/Intention to indent a raw stringKT-16085Inspection "main should return Unit"KT-20305Inspection: Refactor sealed sub-class to objectKT-21413Missing inspection: parentheses can be deleted when the only constructor parameter is a function not existingKT-23137Intention for converting to block comment and vise versaKT-23266Add intention(s) to put arguments / parameters on one lineKT-23419Intention to replace vararg with array and vice versaKT-23617Add inspection: redundant internal in local anonymous object / classKT-23775IntelliJ plugin: improve "accessor call that can be replaced with property"KT-24235Inspection to replace async.await with withContextKT-24263AddMake variable immutablequickfix for const
Performance Improvements
KT-23566"Can be private" works on ResolutionResultsCache.kt (from Kotlin project) enormously slow
Fixes
KT-6364Incorrect quick-fixes are suggested for nullable extension function callKT-11156Incorrect highlighting for nested class in "Redundant SAM-constructor" inspectionKT-11427"Replace if with when" does not take break / continue into accountKT-11740Invert 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-14391RemoveUnnecessaryParenthesesIntention lost comment on closing parenthesisKT-14556Quickfix to suggest use of spread operator does not work with mapOfKT-15195Redundant 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-20332Unused property declaration suppression by annotation doesn't work if annotation is targeted to getterKT-22092Intention "Specify return type explicitly": Propose types from overriden declarationsKT-22632Gutter icon "go to actual declaration" is absent for enum values on actual sideKT-22741Wrong suggestion forReplace 'if' expression with elvis expressionKT-22831Inspection 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-23901Incremental compilation fails on Java 9KT-23931Exception on optimizing eternal loopsKT-23900Exception on some cases with nested arraysKT-23809Exception on processing complex hierarchies withsuspendfunctions when-Xdump-declarations-tois active
Other changes
KT-23973New compiler behavior lead to ambiguous mappings in Spring Boot temporarily reverted
Kotlin 1.2.40
Compiler
New Features
KT-22703Allow expect/actual annotation constructors to have default valuesKT-19159Supportcrossinlinelambda parameters ofsuspendfunction typeKT-21913Support default arguments for expected declarationsKT-19120Provide extra compiler arguments inScriptTemplateDefinitionKT-19415Introduce@JvmDefaultannotationKT-21515Restrict visibility of classifiers insidecompanion objects
Performance Improvements
KT-10057Uselcmpinstruction instead ofkotlin/jvm/internal/Intrinsics.compareKT-14258Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731==between enums should use reference equality, notIntrinsics.areEqual().KT-22714Unnecessary checkcast to array of object from an array of specific typeKT-5177Optimize code generation forforloop withwithIndex()KT-19477Allow to implement several common modules with a single platform moduleKT-21347Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424Broken bytecode for nullable generic methodsKT-17171ClassCastExceptionin case of SAM conversion withoutvarianceKT-19399Incorrect bytecode generated for inline functions in some complex casesKT-21696Incorrect warning for use-site target on extension functionKT-22031Non-abstractexpect classes should not haveabstractmembersKT-22260Never flaginline suspend funwithNOTHING_TO_INLINEKT-22352Expect/actual checker can't handle properties and functions with the same nameKT-22652Interface with default overrides is not perceived as a SAMKT-22904Incorrect bytecode generated for withIndex iteration onArray<Int>KT-22906Invalid class name generated for lambda created from method reference in anonymous objectKT-23044Overriden public property with internal setter cannot be found in runtimeKT-23104Incorrect code generated for LHS of an intrinsifiedinoperator in case of generic type substituted withCharacterKT-23309Minor spelling errors in JVM internal error messagesKT-22001JS: compiler crashes on += with "complex" receiverKT-23239JS: Default arguments for non-final member function support is missing for MPPKT-17091Converting to SAM Java type appends non-deterministic hash to class nameKT-21521Compilation exception when trying to compile asuspendfunction withtailreckeywordKT-21605Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864Expect-actual matcher doesn't consider generic upper boundsKT-21906ACTUAL_MISSINGis reported for actual constructor of non-actual classKT-21939ImproveACTUAL_MISSINGdiagnostics messageKT-22513Flaky "JarURLConnection.getUseCaches" NPE during compilation when using compiler plugins
Libraries
KT-11208readLine()shouldn't use buffered reader
IDE
New Features
KT-10368Run Action for Kotlin Scratch FilesKT-16892Shortcut to navigate between header and implKT-23005Supportprefix/suffixattributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484KotlinBinaryClassCache retains a lot of memoryKT-23183ConfigureKotlinNotification.getNotificationString()scans modules with Kotlin files twiceKT-23380Improve IDE performance when working with Spring projects
Fixes
KT-15482KotlinNullPointerExceptionin IDE from expected class with nested classKT-15739Internal visibility across common and platform-dependent modulesKT-19025Not importedbuild.gradle.ktsis all redKT-19165IntelliJ should suggest to reload Gradle projects whenbuild.gradle.ktschangesKT-20282'Move statement up' works incorrectly for statement afterfinallyblock iftryblock contains closureKT-20521Kotlin Gradle script: validbuild.gradle.ktsis red and becomes normal only after reopening the projectKT-20592KotlinNullPointerException: nested class inside expect / actual interfaceKT-21013"Move statement up/down" fails for multiline declarationsKT-21420.gradle.ktseditor should do no semantic highlighting until the first successful dependency resolver responseKT-21683Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueriesKT-21745Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753Language injection: SpEL. Not injected for key in@CachingKT-21771All annotations inAnnotations.ktfrom kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831Opening class fromkotlin-stdlib-jdk8.jarfails with EE: "Stub list in ... length differs from PSI"KT-22229Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()KT-22817Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationExceptionKT-22851Apply button is always active on Kotlin compiler settings tabKT-22858Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873Common module-based light classes do not see JDKKT-22874Exception on surround with "if else" when resulting if should be wrapped with()KT-22925Unable to view Type Hierarchy from constructor call in expressionKT-22926Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097Enhance multiplatform project wizardKT-23271Warn about using kotlin-stdlib-jre* libs independencyManagementsection in Maven witheapanddevKotlin versionsKT-20672IDE can't resolve references to elements from files with@JvmPackageNameKT-23546Variable name auto-completion popup gets in the wayKT-23546Do not show duplicated names in variabl...
Kotlin 1.2.40 RC2
Compiler
New Features
KT-22703Allow expect/actual annotation constructors to have default valuesKT-19159Supportcrossinlinelambda parameters ofsuspendfunction typeKT-21913Support default arguments for expected declarationsKT-19120Provide extra compiler arguments inScriptTemplateDefinitionKT-19415Introduce@JvmDefaultannotationKT-21515Restrict visibility of classifiers insidecompanion objects
Performance Improvements
KT-10057Uselcmpinstruction instead ofkotlin/jvm/internal/Intrinsics.compareKT-14258Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731==between enums should use reference equality, notIntrinsics.areEqual().KT-22714Unnecessary checkcast to array of object from an array of specific typeKT-5177Optimize code generation forforloop withwithIndex()KT-19477Allow to implement several common modules with a single platform moduleKT-21347Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424Broken bytecode for nullable generic methodsKT-17171ClassCaseExceptionin case of SAM conversion withoutvarianceKT-19399Incorrect bytecode generated for inline functions in some complex casesKT-21696Incorrect warning for use-site target on extension functionKT-22031Non-abstractexpect classes should not haveabstractmembersKT-22260Never flaginline suspend funwithNOTHING_TO_INLINEKT-22352Expect/actual checker can't handle properties and functions with the same nameKT-22652Interface with default overrides is not perceived as a SAMKT-22904Incorrect bytecode generated for withIndex iteration onArray<Int>KT-22906Invalid class name generated for lambda created from method reference in anonymous objectKT-23044Overriden public property with internal setter cannot be found in runtimeKT-23104Incorrect code generated for LHS of an intrinsifiedinoperator in case of generic type substituted withCharacterKT-23309Minor spelling errors in JVM internal error messagesKT-22001JS: compiler crashes on += with "complex" receiverKT-23239JS: Default arguments for non-final member function support is missing for MPPKT-17091Converting to SAM Java type appends non-deterministic hash to class nameKT-21521Compilation exception when trying to compile asuspendfunction withtailreckeywordKT-21605Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864Expect-actual matcher doesn't consider generic upper boundsKT-21906ACTUAL_MISSINGis reported for actual constructor of non-actual classKT-21939ImproveACTUAL_MISSINGdiagnostics messageKT-22513Flaky "JarURLConnection.getUseCaches" NPE during compilation when using compiler plugins
Libraries
KT-11208readLine()shouldn't use buffered reader
IDE
New Features
KT-10368Run Action for Kotlin Scratch FilesKT-16892Shortcut to navigate between header and implKT-23005Supportprefix/suffixattributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484KotlinBinaryClassCache retains a lot of memoryKT-23183ConfigureKotlinNotification.getNotificationString()scans modules with Kotlin files twiceKT-23380Improve IDE performance when working with Spring projects
Fixes
KT-15482KotlinNullPointerExceptionin IDE from expected class with nested classKT-15739Internal visibility across common and platform-dependent modulesKT-19025Not importedbuild.gradle.ktsis all redKT-19165IntelliJ should suggest to reload Gradle projects whenbuild.gradle.ktschangesKT-20282'Move statement up' works incorrectly for statement afterfinallyblock iftryblock contains closureKT-20521Kotlin Gradle script: validbuild.gradle.ktsis red and becomes normal only after reopening the projectKT-20592KotlinNullPointerException: nested class inside expect / actual interfaceKT-21013"Move statement up/down" fails for multiline declarationsKT-21420.gradle.ktseditor should do no semantic highlighting until the first successful dependency resolver responseKT-21683Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueriesKT-21745Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753Language injection: SpEL. Not injected for key in@CachingKT-21771All annotations inAnnotations.ktfrom kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831Opening class fromkotlin-stdlib-jdk8.jarfails with EE: "Stub list in ... length differs from PSI"KT-22229Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()KT-22817Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationExceptionKT-22851Apply button is always active on Kotlin compiler settings tabKT-22858Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873Common module-based light classes do not see JDKKT-22874Exception on surround with "if else" when resulting if should be wrapped with()KT-22925Unable to view Type Hierarchy from constructor call in expressionKT-22926Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097Enhance multiplatform project wizardKT-23271Warn about using kotlin-stdlib-jre* libs independencyManagementsection in Maven witheapanddevKotlin versionsKT-20672IDE can't resolve references to elements from files with@JvmPackageNameKT-23546Variable name auto-completion popup gets in the way
IDE. Gradle. Script
KT-23228Do not hig...
Kotlin 1.2.40 RC
Compiler
New Features
KT-22703Allow expect/actual annotation constructors to have default valuesKT-19159Supportcrossinlinelambda parameters ofsuspendfunction typeKT-21913Support default arguments for expected declarationsKT-19120Provide extra compiler arguments inScriptTemplateDefinitionKT-19415Introduce@JvmDefaultannotationKT-21515Restrict visibility of classifiers insidecompanion objects
Performance Improvements
KT-10057Uselcmpinstruction instead ofkotlin/jvm/internal/Intrinsics.compareKT-14258Suboptimal codegen for private fieldaccess to private field in companion objectKT-18731==between enums should use reference equality, notIntrinsics.areEqual().KT-22714Unnecessary checkcast to array of object from an array of specific typeKT-5177Optimize code generation forforloop withwithIndex()KT-19477Allow to implement several common modules with a single platform moduleKT-21347Add compiler warning about using kotlin-stdlib-jre7 or kotlin-stdlib-jre8 artifacts
Fixes
KT-16424Broken bytecode for nullable generic methodsKT-17171ClassCaseExceptionin case of SAM conversion withoutvarianceKT-19399Incorrect bytecode generated for inline functions in some complex casesKT-21696Incorrect warning for use-site target on extension functionKT-22031Non-abstractexpect classes should not haveabstractmembersKT-22260Never flaginline suspend funwithNOTHING_TO_INLINEKT-22352Expect/actual checker can't handle properties and functions with the same nameKT-22652Interface with default overrides is not perceived as a SAMKT-22904Incorrect bytecode generated for withIndex iteration onArray<Int>KT-22906Invalid class name generated for lambda created from method reference in anonymous objectKT-23044Overriden public property with internal setter cannot be found in runtimeKT-23104Incorrect code generated for LHS of an intrinsifiedinoperator in case of generic type substituted withCharacterKT-23309Minor spelling errors in JVM internal error messagesKT-22001JS: compiler crashes on += with "complex" receiverKT-23239JS: Default arguments for non-final member function support is missing for MPPKT-17091Converting to SAM Java type appends non-deterministic hash to class nameKT-21521Compilation exception when trying to compile asuspendfunction withtailreckeywordKT-21605Cross-inlined coroutine with captured outer receiver creates unverifiable codeKT-21864Expect-actual matcher doesn't consider generic upper boundsKT-21906ACTUAL_MISSINGis reported for actual constructor of non-actual classKT-21939ImproveACTUAL_MISSINGdiagnostics message
Libraries
KT-11208readLine()shouldn't use buffered reader
IDE
New Features
KT-10368Run Action for Kotlin Scratch FilesKT-16892Shortcut to navigate between header and implKT-23005Supportprefix/suffixattributes for language injection in Kotlin with annotations and comments
Performance Improvements
KT-19484KotlinBinaryClassCache retains a lot of memoryKT-23183ConfigureKotlinNotification.getNotificationString()scans modules with Kotlin files twiceKT-23380Improve IDE performance when working with Spring projects
Fixes
KT-15482KotlinNullPointerExceptionin IDE from expected class with nested classKT-15739Internal visibility across common and platform-dependent modulesKT-19025Not importedbuild.gradle.ktsis all redKT-19165IntelliJ should suggest to reload Gradle projects whenbuild.gradle.ktschangesKT-20282'Move statement up' works incorrectly for statement afterfinallyblock iftryblock contains closureKT-20521Kotlin Gradle script: validbuild.gradle.ktsis red and becomes normal only after reopening the projectKT-20592KotlinNullPointerException: nested class inside expect / actual interfaceKT-21013"Move statement up/down" fails for multiline declarationsKT-21420.gradle.ktseditor should do no semantic highlighting until the first successful dependency resolver responseKT-21683Language injection: JPAQL. Injection should be present for "query" parameter of@NamedNativeQueriesKT-21745Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in MavenKT-21746Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in GradleKT-21753Language injection: SpEL. Not injected for key in@CachingKT-21771All annotations inAnnotations.ktfrom kotlin-test-js module wrongly have ACTUAL_MISSINGKT-21831Opening class fromkotlin-stdlib-jdk8.jarfails with EE: "Stub list in ... length differs from PSI"KT-22229Kotlin local delegated property Import auto-removed with "Java: Optimize imports on the fly"KT-22724ISE: "psiFile must not be null" atKotlinNodeJsRunConfigurationProducer.setupConfigurationFromContext()KT-22817Hitting 'Propagate Parameters' in Change Signature throwsUnsupportedOperationExceptionKT-22851Apply button is always active on Kotlin compiler settings tabKT-22858Multiplatform: String constructor parameter is reported in Java file of jvm module on creation of a new instance of a class from common moduleKT-22865Support multiple expectedBy dependencies when importing project from Gradle or MavenKT-22873Common module-based light classes do not see JDKKT-22874Exception on surround with "if else" when resulting if should be wrapped with()KT-22925Unable to view Type Hierarchy from constructor call in expressionKT-22926Confusing behavior of Type Hierarchy depending on the caret position at superclass constructorKT-23097Enhance multiplatform project wizardKT-23271Warn about using kotlin-stdlib-jre* libs independencyManagementsection in Maven witheapanddevKotlin versionsKT-20672IDE can't resolve references to elements from files with@JvmPackageName
IDE. Gradle. Script
KT-23228Do not highlight.gradle.ktsfiles in non-Gradle projects
IDE. Inspections and Intentions
New Features
KT-16382Intention to convertexpr.unsafeCast<Type>()toexpr as Typeand vice versa- [`KT-2043...