492 KiB
CHANGELOG
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
KT-23973New compiler behavior lead to ambiguous mappings in Spring Boot temporarily reverted
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 variables completion listKT-19120Use script compiler options on script dependencies in the IDE as well
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 versaKT-20439Intentions to add/remove labeled return to last expression in a lambdaKT-22011Inspection to report the usage of Java Collections methods on immutable Kotlin CollectionsKT-22933Intention/inspection to convert Pair constructor totofunctionKT-19871Intentions for specifying use-site targets for an annotationKT-22971Inspection to highlight and remove unnecessary explicit companion object references
Fixes
KT-12226"Convert concatenation to template" does not process$sign as a CharKT-15858"Replace with aforeachfunction call" intention breaks codeKT-16332Add 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-17306Don't report package name mismatch if there's no Java code in the moduleKT-19730Quickfix for delegated properties boilerplate generation doesn't work on localsKT-21005"Missing KDoc inspection" is brokenKT-21082"Create actual declaration" of top-level subclass of expectedsealed classin 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 inwhenbranchKT-22428Create member function from usage shouldn't present type parameters as optionsKT-22492"Specify explicit lambda signature" intention is available only on lambda bracesKT-22719Incorrect warning 'Redundant semicolon' when having method call before lambda expressionKT-22861"Add annotation target" quickfix is not available on annotation with use site targetKT-22862"Add annotation target" quickfix does not process existent annotations with use site targetKT-22917Update order of containers forcreate classquickfixKT-22949NPE on conversion ofrun/applywith explicit lambda signature tolet/alsoKT-22950Convert stdlib extension function to scoping function works incorrectly in case of explicit lambda signatureKT-22954"Sort modifiers" quickfix works incorrectly when method is annotatedKT-22970Add explicit this intention/inspection missing for lambda invocationKT-23109"Remove redundant 'if' statement" inspection breaks code with labeled returnKT-23215"Add function to supertype" quickfix works incorrectlyKT-14270Intentions "Add/Remove braces" should be applied to the statement where caret is if there several nested statements one into anotherKT-21743Method reference not correctly moved into parenthesesKT-23045AE “Failed to create expression from text” on concatenating string with broken quote mark char literalKT-23046CCE ”KtBinaryExpression cannot be cast to KtStringTemplateExpression” on concatenating broken quote mark char literal with stringKT-23227"Add annotation target" quickfix is not suggested forfield:use-site target
IDE. Refactorings
Fixes
KT-13255Refactor / Rename: renaming local variable or class to existing name gives no warningKT-13284Refactor / Rename: superfluous imports and FQNs in Java using@JvmOverloadsfunctionsKT-13907Rename refactoring warns about name conflict if there is function with different signature but the same nameKT-13986Full qualified names of classes in comments should be changed after class Move, if comment contains backquotesKT-14671typealias: refactor/rename should propose to rename occurrences in commentsKT-15039Extra usage is found for a parameter in data class in destructuring constructionKT-15228Extract function from inline function should create public functionKT-15302Reference to typealias in SAM conversion is not foundKT-16510Can't rename quoted identifierisKT-17827Refactor / Move corrupts bound references when containing class of member element is changedKT-19561Name conflict warning when renaming method to a name matching an extension method with the same name existsKT-20178Refactor → Rename can't make companion object name emptyKT-22282Moving a Kotlin file to another package does not change imports in itselfKT-22482Rename refactoring insert qualifier for non related property callKT-22661Refactor/Move: top level field reference is not imported automatically after move to the source rootKT-22678Refactor / Copy: "Class uses constructor which will be inaccessible after move" when derived class has a protected constructorKT-22692Refactor/Move: unnecessary curly braces added on moving to a separate file a top level function with a top level field usageKT-22745Refactor/Move inserts FQ function name at the call site if there is a field same named as the functionKT-22747Moving top-level function to a different (existing) file doesn't update references from JavaKT-22751Refactor/Rename: type alias name clash is not reportedKT-22769Refactor/Move: there is no warning on moving sealed class or its inheritors to another fileKT-22771Refactor/Move: there is no warning on moving nested class to another class with stricter visibilityKT-22812Refactor/Rename extension functions incorrectly conflicts with other extension functionsKT-23065Refactor/Move: Specify the warning message on moving sealed class inheritors without moving the sealed class itself
IDE. Script
KT-22647Run script Action in IDE should use Kotlin compiler from the IDE pluginKT-18930IDEA is unstable With Gradle Kotlin DSLKT-21042Gradle Script Kotlin project is full-redKT-11618Running .kts file from IntelliJ IDEA doesn't allow to import classes in other files which are also part of the project
IDE. Debugger
KT-22205Breakpoints won't work for Kotlin testing with JUnit
JavaScript
KT-22019Fix wrong list sorting order
Tools. CLI
KT-22777Unstable language version setting has no effect when attached runtime has lower version
Tools. Gradle
KT-22824expectedBydependency should be expressed ascompiledependency in POMKT-15371Multiplatform: setting free compiler args can break buildKT-22864Allow multiple expectedBy configuration dependencies in GradleKT-22895'kotlin-runtime' library is missing in the compiler classpath sometimesKT-23085Use proper names for the Gradle task inputs/outputs added at runtimeKT-23694Fix parallel build in Kotlin IC – invalid KotlinCoreEnvironment disposal
Tools. Android
- Android Extensions: Support fragments from kotlinx package;
Tools. Incremental Compile
KT-20516"Unresolved reference" when project declares same class as its dependencyKT-22542"Source file or directory not found" for incremental compilation with KobaltKT-23165Incremental compilation is sometimes broken after moving one class
Tools. JPS
KT-16091Incremental compilation ignores changes in Java static fieldKT-22995EA-91869 - NA:LookupStorage.<init>
Tools. kapt
KT-21735Kapt cache was not cleared sometimes
Tools. REPL
KT-21611REPL: Empty lines should be ignored
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-22700Android Extensions bind views with dot in ID
Compiler
New Features
KT-17336Introduce suspendCoroutineUninterceptedOrReturn coroutine intrinsic functionKT-22766Imitate "suspend" modifier in 1.2.x by stdlib function
Performance Improvements
KT-16880Smarter detection of tail-suspending unit invocations
Fixes
KT-10494IAE in CheckMethodAdapter.checkInternalName when declaring classes inside method with non-standard nameKT-16079Internal error when using suspend operator plusKT-18522Internal compiler error with IndexOutOfBoundsException, "Exception while analyzing expression"KT-18578Compilation failure with @JsonInclude and default interface methodKT-19786Kotlin — unable to override a Java function with @Nullable vararg argumentKT-20466JSR305 false positive for elvis operatorKT-20705Tail suspend call optimization doesn't work in when blockKT-20708Tail suspend call optiomization doesn't work in some branchesKT-20855Unnecessary safe-call reported on nullable typeKT-21165Exception from suspending function is not caughtKT-21238Nonsensical warning "Expected type does not accept nulls in Java, but the value may be null in Kotlin"KT-21258Raw backing field value exposed via accessors?KT-21303Running on JDK-10-ea-31 leads to ArrayIndexOutOfBoundsExceptionKT-21642Back-end (JVM) Internal error: Couldn't transform method node on usingopenkeyword withsuspendfor a top-level functionKT-21759Compiler crashes on two subsequent return statements in suspend functionKT-22029Fold list to pair with destructuring assignment and inner when results in ExceptionKT-22345OOM in ReturnUnitMethodReplacerKT-22410invalid compiler optimization for nullable cast to reified typeKT-22577Compiler crashes when coroutineContext is used inside of inlined lambda
IDE
New Features
KT-8352Pasting Kotlin code into package could create .kt fileKT-16710Run configuration to run main() as a Node CLI appKT-16833Allow mixing Java and Kotlin code in "Analyze Data Flow..."KT-21531JS: add support for running specific test from the gutter icon with Jest testing framework
Performance Improvements
Fixes
KT-7316Go to declaration in Kotlin JavaScript project navigates to JDK source in some casesKT-8563Refactor / Rename inserts line breaks without reasonKT-11467Editor:varproperty in primary constructor is shown not underscored, same asvalKT-13509Don't show run line markers for top-level functions annotated with @TestKT-13971Kotlin Bytecode tool window: Decompile is available for incompilable code, CE at MemberCodegen.genFunctionOrProperty()KT-15000Do not spell check overridden declaration namesKT-15331"Kotlin not configured" notification always shown for common module in multiplatform projectKT-16333Cannot navigate to super declaration via shortcutKT-16976Introduce special SDK for Kotlin JS projects to avoid using JDKKT-18445multiplatform project: provide more comfortable way to process cases when there are missed method implemenation in the implementation classKT-19194Some Live Templates should probably be enabled also for "expressions" not only "statements"KT-20281multiplatform:Unresolved service JavaDescriptorResolver on a file with several header declarations and gutters not shownKT-20470IntelliJ indent guide/invisible brace matching hint tooltip doesn't show contextKT-20522Add "Build" action in "Before launch" block when create new JS run configuration (for test)KT-20915Add quickfix for ‘Implicit (unsafe) cast from dynamic type’KT-20971Cannot navigate to sources of compiled common dependencyKT-21115Incomplete actual class should still have navigation icon to expect classKT-21688UIdentifier violates JvmDeclarationElement contractKT-21874Unexpected IDE error "Unknown type [typealias ...]"KT-21958Support "Alternative source available" for Kotlin filesKT-21994Collapsed comments containing*get removed in the summary line.KT-22179For properties overridden in object literals, navigation to inherited properties is missing indication of a type they are overriddenKT-22214Front-end Internal error: Failed to analyze declarationKT-22230Reformatting code to Kotlin style indents top-level typealiases with commentsKT-22242Semantic highlighting uses different colors for the same 'it' variable and same color for different 'it'sKT-22301Don't require space after label for lambdaKT-22346Incorrect indentation for chained context extension functions (lambdas) when using Kotlin style guideKT-22356Update status of inspection "Kotlin JVM compiler configured but no stdlib dependency" after pom file update, not on re-importKT-22360MPP: with "Create separate module per source set" = NoexpectedBydependency is imported not transitivelyKT-22374"Join lines" works incorrectly in case of line containing more than one string literalKT-22473Regression in IntelliJ Kotlin Plugin 1.2.20, settings.gradle.kts script template is wrongKT-22508Auto-formatting should insert an indentation for default parameter valuesKT-22514IDE Freeze related to IdeAllOpenDeclarationAttributeAltererExtension.getAnnotationFqNames()KT-22557Dead 'Apply' button, when setting code styleKT-22565Cant doPsiAnchor.createon annotation in annotationKT-22570Can't add import in "Packages to Use Import with '*'" section on "Import" tab in Code Style -> KotlinKT-22593AE when invoking find usages on constructor in decompiled java fileKT-22641Auto-formatting adds extra indent to a closing square bracket on a separate lineKT-22734LinkageError: "loader constraint violation: when resolving method PsiTreeUtilKt.parentOfType()" at KotlinConverter.convertPsiElement$uast_kotlin()
IDE. Debugger
KT-20351Stepping over a line with two inline stdlib functions steps into the second functionKT-21312Confusing Kotlin (JavaScript) run configurationKT-21945Double stop on same line during step over if inline call is presentKT-22967Debugger: Evaluator fails on evaluating huge lambdas on Android
IDE. Inspections and Intentions
New Features
KT-18124Inspection to get rid of unnecessary ticks in referencesKT-22038Inspection to replace the usage of Java Collections methods on subtypes of MutableList with the methods from Kotlin stdlibKT-22152"Create Class" quickfix should support creating the class in a new file and selecting the package for that fileKT-22171Add Intention for single character substringKT-22303Inspection to detectType!.inlineWithNotNullReceiver()callsKT-22409Intention for changing property setter accessibility
Performance Improvements
KT-21137Kotlin instantiates something expensive via reflection when highlighting Java file
Fixes
KT-15176Remove "Create type alias" intention when called on java classKT-18007Inspection doesn't suggest Maven Plugin for kotlin-stdlib-jre8KT-18308'Remove braces from else statement' intention breaks codeKT-18912multiplatform project: Convert to enum class: header sealed class cannot convert nested objects to enum valuesKT-21114IOE: create actual members for expected with companionKT-21600suspendmodifier should go afteroverridein overridden suspend functionsKT-21881Replace "If" with safe access intention false positiveKT-22054Replace '!=' with 'contentEquals' should be replace '==' with 'contentEquals'KT-22097Redundant Unit inspection false positive for single expression functionKT-22159"Replace return with 'if' expression" should not place return before expressions of type NothingKT-22167"Add annotation target" quick fix does nothing and disappears from menuKT-22221QuickFix to remove unused constructor parameters shouldn't delete parenthesisKT-22335IOE from KotlinUnusedImportInspection.scheduleOptimizeImportsOnTheFlyKT-22339Remove setter parameter type: error while creating problem descriptorKT-22364Redundant setter is not reported for overridden fieldsKT-22484The warning highlight for redundant!ischeck for object types isn't extended to the full operatorKT-22538"Redundant type checks for object" inspection application breaks smart cast for an object's field or function
IDE. Refactorings
New Features
KT-17047Refactorings for related standard "scoping functions" conversion: 'let' <-> 'run', 'apply' <-> 'also'
Fixes
KT-12365Renaminginvokefunction should removeoperatormodifier and insert function call for implicit usagesKT-17977Move class to upper level creates file with wrong file nameKT-21719Actual typealias not renamed on expected declaration renameKT-22200Overriden function generated from completion is missing suspend modifierKT-22359Refactor / Rename file: Throwable at RenameProcessor.performRefactoring()KT-22461Rename doesn't work on private top-level members of multi-file partsKT-22476Renameitparameter fails after replacing for-each with mapNotNullKT-22564Rename doesn't warn for conflictsKT-22705Refactor/Rename: rename ofinvokefunction with lambda parameter togetbreaks an implicit callKT-22708Refactor/Rename function using some stdlib name leads to incompilable code
JavaScript
KT-20735JS: kotlin.test-js integration tests terminate build on failureKT-22638Function reference not working in js from extensionKT-22963KotlinJS - When statement can cause illegal break
Libraries
KT-22620Add support for TestNG in kotlin.testKT-16661Performance overhead in string splitting in Kotlin versus Java?KT-22042SuboptimalStrings#findAnyOfKT-21154kotlin-test-junit doesn't provide JUnitAsserter when test body is run in another thread
Tools
KT-22196kotlin-compiler-embeddable bundles outdated kotlinx.coroutines since 1.1.60KT-22549Service is dying during compilation
Tools. CLI
KT-19051Suppress Java 9 illegal access warnings
Tools. Gradle
KT-18462Add 'org.jetbrains.kotlin.platform.android' plugin.KT-18821Gradle plugin should not resolve dependencies at configuration time
Tools. Maven
KT-21581kotlin.compiler.incremental not copying resources
Tools. Incremental Compile
KT-22192Make precise java classes tracking in Gradle enabled by default
Tools. J2K
KT-21635J2K: create "inspection based post-processing"
Tools. REPL
KT-12037REPL crashes when trying to :load with incorrect filename
Tools. kapt
KT-22350kdoc comment preceding enum method causes compilation failureKT-22386kapt3 fails when project has class named SystemKT-22468Kapt fails to convert array type to anonymous array element typeKT-22469Kapt 1.2.20+ may fail to process classes with KDocKT-22493Kapt: NoSuchElementException in KotlinCliJavaFileManagerImpl if class first character is dollar signKT-22582Kapt: Enums inside enum values should be forbiddenKT-22711Deprecate original kapt (aka kapt1)
1.2.21
Fixes
KT-22349Android: creating new Basic activity fails with Throwable: "Inconsistent FILE tree in SingleRootFileViewProvider" at SingleRootFileViewProvider.checkLengthConsistency()KT-22459Remove .proto files from kotlin-reflect.jar
1.2.20
Android
KT-20085Android Extensions: ClassCastException after changing type of view in layout XMLKT-20235Error, can't use plugin kotlin-android-extensionsKT-20269Mark 'kapt.kotlin.generated' as a source root automatically in Android projectsKT-20545Parcelable: Migrate to canonical NEW-DUP-INVOKESPECIAL formKT-20742@Serializable and @Parcelize do not work togetherKT-20928@Parcelize. Verify Error for Android Api 19
Binary Metadata
KT-11586Support class literal annotation arguments in AnnotationSerializer
Compiler
New Features
KT-17944Allow 'expect' final member be implemented by 'actual' open memberKT-21982Recognize Checker Framework declaration annotationsKT-17609Intrinsic suspend val coroutineContext
Performance Improvements
Fixes
KT-4174Verify error on lambda with closure in local class super callKT-10473Inapplicable diagnostics for mixed JS / JVM projectsKT-12541VerifyError: Bad type on operand stack for local variable captured in local classKT-13454VerifyError on capture of outer class properties in closure inside inner class constructorKT-14148VerifyError: Bad type on operand stackfor anonymous type inheriting inner classKT-18254enumValueOf and enumValues throw UnsupportedOperationException when used within a non-inline function blockKT-18514IllegalStateException on compile object that inherits its inner interface or classKT-18639VerifyError: Bad type on operand stackKT-19188Nondeterministic method order in class files using DefaultImplsKT-19827Strange VerifyError in simple ExampleKT-19928Analyze / Inspect Code: ISE "Concrete fake override public final fun ()" at BridgesKt.findConcreteSuperDeclaration()KT-20433NPE during JVM code generationKT-20639Obsolete term "native" used in error messageKT-20802USELESS_CAST diagnostic in functions with expression bodyKT-20873False CAST_NEVER_SUCCEEDS when upcasting NothingKT-20903Method reference to expect function results in bogus resolution ambiguityKT-21105Compiler incorrectly optimize the operatorinwith a floating point type range with NaN bound.KT-21146ArrayIndexOutOfBoundsException at org.jetbrains.kotlin.codegen.MemberCodegen.generateMethodCallTo(MemberCodegen.java:841)KT-21267Report pre-release errors if pre-release compiler is run with a release language versionKT-21321for-in-array loop improvementsKT-21343Compound assignment operator compiles incorrectly when LHS is a property imported from objectKT-21354Inconsistent behavior of 'for-in-range' loop if range is an array variable modified in loop bodyKT-21532Enum constructor not foundKT-21535SAM wrapper is not created for a value of functional type in delegating or super constructor call in secondary constructorKT-21671Inline sam wrapper during inline in another moduleKT-21919Invalid MethodParameters attribute generated for "$DefaultImpls" synthetic class with javaParameters=trueKT-20429False-positive 'Unused return value of a function with lambda expression body' in enum constant constructorKT-21827SMAP problem during default lambda parameter inline
IDE
New Features
KT-4001Allow to set arguments indent to 1 tab (currently two and not customized)KT-13378Provide ability to configure highlighting for !! in expressions and ? in typesKT-17928Support code folding for primary constructorsKT-20591Show @StringRes/@IntegerRes annotations in parameter infoKT-20952"Navigate | Related symbol" should support expect/actual navigationKT-21229Make it possible to explicitly select "latest" language/API versionKT-21469Wrap property initializers after equals signKT-14670Support kotlinPackageName() macro in live templatesKT-14951Editor: navigate actions could be available in intention menu (as done in Java)KT-15320Live templates: Add function which returns the "outer" class nameKT-20067Return label hintsKT-20533Show "this" and "it" type hints in lambdas.KT-20614Change location of initial parameter type hint when parameters are on multiple linesKT-21949Please add a separate Color Scheme settings for properties synthesized from Java accessorsKT-21974Editor color scheme option for Kotlin typealias names
Performance Improvements
KT-17367Rebuild requested for index KotlinJavaScriptMetaFileIndexKT-21632Freezing on typingKT-21701IDEA 2017.3 high CPU usage
Fixes
KT-9562Wrong indent after Enter after an annotationKT-12176Formatter could reformat long primary constructorsKT-12862Formatting: Weird wrapping setting for long ?: operatorKT-15099Odd code formatting when chaining lambdas and splitting lines on operatorsKT-15254Use Platform icons for "Run" icon in gutterKT-17254Remove obsolete unfold-icons in structure viewKT-17838Can't report exceptions from the Kotlin plugin 1.1.4-dev-119 in IDEA #IU-171.4424.37KT-17843Don't show parameter name hints when calling Java methods with unknown parameter namesKT-17964Local variable type hints in editor for anonymous objectKT-17965Do not shown argument name hints for assertKT-18829Do not show parameter name hints for mapOfKT-18839Semantic highlighting not work for local variables in initKT-19012Data Flow from here: doesn't find template usagesKT-19017Data Flow from here doesn't find usage in range position of for cycleKT-19018Data Flow from here doesn't find any usages of for-variableKT-19036Data Flow from here: please find calls of extension tooKT-19039Data Flow from here: please find cases when an investigated variable is transferred as a parameter into a library functionKT-19087Data flow to here: usages with explicit receiver are not foundKT-19089Data Flow to here: assigned values are not found if an investigated property is a delegated oneKT-19104Data Flow from here: usage of parameter or variable not found when used as lambda receiver/parameterKT-19106Data Flow from here: show point of call of a function used as a parameter investigated parameter/variableKT-19112Data Flow to here for a function (or its return value) doesn't find shorten forms of assignmentsKT-19519Structure view is not updated properly for function classesKT-19727Code style: New line after '(' with anonymous object or multi-line lambda unexpected behaviorKT-19820Strange highlightning for enum constructorKT-19823Kotlin Gradle project import into IntelliJ: import kapt generated classes into classpathKT-19824Please provide a separate icon for a common libraryKT-19915TODO calls not blue highlighted in lambdas/DSLsKT-20096Kotlin Gradle script: SOE after beginning of Pair definition before some script sectionKT-20314Kotlin formatter does not respect annotations code style settingsKT-20329Multiplatform: gutter "Is subclassed by" should show expect subclass from the common moduleKT-20380Configure Kotlin plugin updates dialog does not open without opened projectKT-20521Kotlin Gradle script: valid build.gradle.kts is red and becomes normal only after reopening the projectKT-20603Facet import: when API version > language version, set API version = language version, not to 1.0KT-20782Non-atomic trees updateKT-20813SAM with receiver: call with SAM usage is compiled with Gradle, but not with JPSKT-20880Add documentation quick fix should create multiline comment and place caret in right placeKT-20883Provide more information in "Missing documentation" inspection messageKT-20884Functions with receivers should allow [this] in KDocKT-20937Exception thrown on RMB click on folder in Kotlin projectKT-20938IDE: kotlinc.xml with KotlinCommonCompilerArguments/freeArgs: XSE: "Cannot deserialize class CommonCompilerArguments$DummyImpl" at BaseKotlinCompilerSettings.loadState()KT-20953"Choose actual" popup shows redundant informationKT-20985Additional reimport is required in 2017.3/2018.1 idea after creating or importing mp projectKT-20987(PerModulePackageCache miss) ISE: diagnoseMissingPackageFragmentKT-21002"Highlight usages of identifier under caret" should work for "it"KT-21076Recursive Companion.ivoke() call should be marked with according iconKT-21132containsKey() in SoftValueMap considered pointlessKT-21150Do not infer compiler version from build.txtKT-21200Improve Structure-view for Kotlin filesKT-21214Fix funcion selection in kotlinKT-21275Don't show argument name hints in calls of methods on 'dynamic' typeKT-21318Highlighting of function exit points does not work if the function is a getter for propertyKT-21363IDE: kotlinc.xml with KotlinCommonCompilerArguments: build fails with UOE: "Operation is not supported for read-only collection" at EmptyList.clear()KT-21409UAST: Super-call arguments are not modeled/visitedKT-21418Gradle based project in IDEA 181: Kotlin facets are not createdKT-21441Folding multiline strings adds a space at the start if there is not one.KT-21546java.lang.IllegalArgumentException: Unexpected container fatal IDE errorKT-21575Secondary constructor call body is missingKT-21645Weird parameter hint positionKT-21733Structure view is not updatedKT-21756Find Usages for "type" in ts2kt provokes exceptionKT-21770Pastingthis into an interpolated string shouldn't escapeKT-21833Type hints shown when destructing triple with type parametersKT-21852Custom API version is lost when settings are reopen after restarting IDEKT-11503cmd+shift+enter action in .kt files does not work on empty linesKT-17217Navigate to symbol: hard to choose between a lot of extension overloadsKT-18674Join Lines should join stringsKT-19524"Local variable type hints" should respect static importsKT-21010Gutter "Is subclassed by" should show actual subclass from the all platform modules in IDEA 2017.3/2018.1KT-21036Throwable “Access is allowed from event dispatch thread only.” after creating nine similar classes with functions.KT-21213Multiline kdoc - intellij joins lines together without spaceKT-21592-Xjsr305=strict not taken into account during the kotlin files compilation in Idea (maven)KT-22050Redundant parameter type hint on SAMKT-22071Formatter insists on increasing indentation in forEach lambdaKT-22093Unnecessary line wrap with new Kotlin code styleKT-22111Error while indexing PsiPlainTextFileImpl cannot be cast to KtFileKT-22121Enter in empty argument list should apply normal indent if "Continuation indent for argument list" is offKT-21702KtLightAnnotationcan't be converted to UASTKT-19900IntelliJ does not recognise no-arg "invokeInitializers" set in pom.xml
IDE. Completion
KT-13220Completion for non-primary-constructor properties should suggest names with types instead of typesKT-12797Code completion does not work for inner in base classKT-16402AssertionError on completing expression after template in string literalKT-20166Completion: property declaration completion should be greedy iftabpressedKT-20506Second smart completion suggests the same value recursively
IDE. Debugger
KT-17514Debugger, evaluate value: cannot find local variable error on attempt to evaluate outer variableKT-20962NullPointerException because of nullable location in debuggerKT-21538"Step into" method doesn't work after adding lambda parameter to the callKT-21820Debugger: Evaluation fails for instance properties (older Android SDKs)
IDE. Inspections and Intentions
New Features
KT-4580Intention + inspection to convert between explicit and implicit 'this'KT-11023Inspection to highlight usages of Collections.sort() and replace them with .sort() method from Kotlin stdlibKT-13702Issue a warning when equals is called recursively within itselfKT-18449Multiplatform project: provide a quick fix "Implement methods" for a impl classKT-18828Provide an intention action to move a companion object member to top levelKT-19103Inspection to remove unnecessary suspend modifierKT-20484Add quick fix to add required target to annotation used on a typeKT-20492Offer "Simplify" intention for 'when' expression where only one branch is known to be trueKT-20615Inspection to detect usages of values incorrectly marked by Kotlin as const from Java codeKT-20631Inspection to detect use of Unit as a standalone expressionKT-20644Warning for missing const paired with val modifier for primitives and stringsKT-20714Inspection for self-assigment of propertiesKT-21023Inspection to highlight variables / functions with implicitNothing?typeKT-21510Add inspection to add/remove this to/from bound callableKT-21560Inspection to sort modifiersKT-21573Code Style Inspection:to -> Pairfunction used not in infix formKT-16260Add intention to specify all types explicitly in destructuring assignmentKT-21547Allow separate regex for test class and function names in IDE inspectionKT-21741Inspection to detect is checks for object typesKT-21950Enable quick-fixes for annotator-reported problems in "Inspect Code"KT-22103SortModifiersInspection should report annotations after modifiers
Fixes
KT-15941"Convert to secondary constructor" produces invalid code for generic property with default valueKT-16340"Unused receiver parameter" for invoke operator on companion objectKT-17161IDE suggest to replace a for loop withforEachto aggresivelyKT-17332Intention to replace forEach with a 'for' loop should convert return@forEach to continueKT-17730Incorrect suggestion to replace loop with negation toany{}KT-18816IDEA suggests replacing for-in-range with stdlib operationsKT-18881Invalid "Loop can be replaced with stdlib operations" warning when class hasadd()functionKT-19560Do not warn about receiver parameter not used for companion objectKT-19977Convert Lambda to reference produces red code when wrong implicit receiver is in scopeKT-20091"Convert object literal to class" should create inner class if necessaryKT-20300"Variable can be inlined" should not be suggested if there's a variable with the same name in nested scopeKT-20349Convert lambda to reference for trailing lambda inserts parameter names for all arguments if at least one named argument was passedKT-20435False "function is never used" warningKT-20622Don't propose “Remove explicit type specification” when it can change semantic?KT-20763Wrong resulting code for "add star projection" quick-fix for inner class with generic outer oneKT-20887Missing documentation warning shouldn't be triggered for a member of a private classKT-20888Documentation should be inherited from Map.Entry typeKT-20889Members of anonymous objects should be treated as private and not trigger "Missing documentation" warningKT-20894"Add type" quick fix does not take into accountvarargmodifierKT-20901IntelliJ autocorrect to add parameter to data class constructor should make the parameter a valKT-20981False positive for "redundant super" in data classKT-21025Kotlin UAST violatesJvmDeclarationUElementcontract by employingJavaUAnnotationKT-21061Cant work with UElement.kt in IDEA with 1.2.0-rc-39: "Stub index points to a file without PSI"KT-21104Do not propose to make local lateinit var immutableKT-21122QuickFix to create member for expect class shouldn't add bodyKT-21159Fix signature invoked from Java breaks Kotlin codeKT-21179Remove empty class body on companion object breaks codeKT-21192Confusing "unused expression"KT-21237ReplaceWith incorrectly removes property assignmentKT-21332Create from usage: do not propose to create abstract function in non-abstract classKT-21373'Remove redundant let' quickfix does not work withinKT-21497Inspection considers if block to be a lambdaKT-21544"Add type" quick fix incorrectly processesvarargmodifier with primitive type array initializerKT-21603"Join declaration and assignment" should remove 'lateinit' for 'var'KT-21612The "Remove redundant getter" inspection removes the type specifierKT-21698Create interfaceshouldn't suggest to declare it inside a class which implements itKT-21726"arrayOf can be replaced with literal" inspection quick fix produces incompilable result in presence of spread operatorKT-21727"Redundant spread operator" inspection does not report array literalKT-12814Specify type explicitly produces erroneous code when platform type overrides not-null typeKT-15180Incorrect quickfix 'Specify type explicitly'KT-17816"Replace elvis with if" produce nasty code when safe casts are involvedKT-18396Bad quickfix for wrong nested classes in inner classKT-19073No-op quick fix for "Convert lambda to reference" IDE suggestionKT-19283Kotlin KProperty reference cannot be converted to lambdaKT-19736Rephrase text in the unconventional property name inspectionKT-19771Preserve old "Convert to expression body" rangeKT-20437Naming convetions inspection: Add separate inspection for top-level and object propertiesKT-20620Replace operator with function call breaks codeKT-21414OverridersSearch attempts to create nameless fake light methodKT-21780Wrong redundant setter inspectionKT-21837Don't require documentation on tests and test classesKT-21929Inappropriate quick fix for a sealed class instantiationKT-21983Do not suggest to remove explicit Unit type for expression bodyKT-16619Incorrect 'accessing non-final property in constructor' warning
IDE. Refactorings
New Features
KT-20095Allow conversion of selected companion methods to methods with @JvmStatic
Fixes
KT-15840Introduce type alias: don't change not-nullable type with nullable typealiasKT-17212Refactor / Inline Function: with 1 occurrence both "Inline all" and "Inline this only" are suggestedKT-18594Refactor / Extract (Functional) Parameter are available for annotation arguments, but fail with AE: "Body element is not found"KT-20146IAE “parameter 'name' of NameUtil.splitNameIntoWords must not be null” at renaming classKT-20335Refactor → Extract Type Parameter: “AWT events are not allowed inside write action” after processing duplicatesKT-20402Throwable “PsiElement(IDENTIFIER) by KotlinInplaceParameterIntroducer” on calling Refactor → Extract Parameter for default valuesKT-20403AE “Body element is not found” on calling Refactor → Extract Parameter for default values in constructor of class without bodyKT-20790Refactoring extension function/property overagressiveKT-20766Typealias end-of-line is removed when moving function and typealias to new fileKT-21071Cannot invoke move refactoring on a typealiasKT-21162Adding parameters to kotlin data class leads to compilation errorKT-21288Change Signature refactoring fails to change signature of overridersKT-21334Extract variable doesn't take into account the receiver of a bound callable referenceKT-21371Rename refactoring sometimes erases identifier being renamed when popping up name proposalsKT-21530KNPE in introduce variableKT-21508java.lang.AssertionError: PsiLiteralExpressionon property safe delete in Idea 173KT-21536Rename refactoring sometimes doesn't quite workKT-21604Rename package missing titleKT-21963Refactor / Inline Property: "null" in place of number of occurrences of local variable referencesKT-21964Refactor / Inline: on declaration of element with one usage "Inline and keep" choice is not suggestedKT-21965Refactor / Inline: wording in dialog could be unified
JavaScript
New Features
KT-20210[JS] Ultra-fast builds for development
Performance Improvements
KT-2218JS: Optimise in checks for number rangesKT-20932JS: Make withIndex() on arrays intrinsicKT-21160JS: generate switch statement for when statement when possible
Fixes
KT-7653JS: TypeError when try to access to "simple" property (w/o backing field at runtime)KT-18963javascript project: No output directory found for Module 'xxx_test' production on JPS compilingKT-19290JS integer overflow for unaryMinusKT-19826JS: don't remove debugger statement from suspend functionsKT-20580JS: JSON.stringify could improve 'replacer' argument handlingKT-20694JS: add missed parts to JS DateKT-20737JS: cache KProperty instances that used to access to delegated propertyKT-20738JS: remove useless calls to constructor of KProperty* (PropertyMetadata) when it generated for access to delegated propertyKT-20854valparameters of typekotlin.Chararen't boxedKT-20898JS: inline js withforwithout initializer causes compiiler to crashKT-20905JS: compiler crashes on invalid inline JavaScript code instead of reporting errorKT-20908JS frontend crashes on uncompleted call to function with reified parametersKT-20978JS: inline doesn't work for Array's constructor when it called through typealiasKT-20994JS extension property in interface problemKT-21004JS: don't use short-circuit operators when translating Boolean.and/or(Boolean)KT-21026JS: wrong code generated for suspend fun that calls inline suspend fun as a tail call.KT-21041'TypeError: ... is not a function' for lambda with closure passed as an argument to super type constructorKT-21043JS: inlining coroutine from other module sometimes causes incorrect code generatedKT-21093Kotlin.JS doesnt escape ‘in’ identifier and conflicts with in keywordKT-21245JS: interface function with default parameter, overridden by other interface indirectly cannot be found at runtimeKT-21307JS DCE does not remap paths to sourcesKT-21309JS: incorrect source map generated for inline lambda when it's last expression is a statement-like expression (e.g. when or try/catch)KT-21317JS: safe call to suspend function returning Unit causes incorrectKT-21421JS: accesors of overridden char properties with backing fields aren't boxedKT-21468JS: don't use enum entry's name for when over external enumsKT-21850JS: support nested tests
Language design
KT-10532ISE by ThrowingLexicalScope at compile time with specific override chain
Libraries
KT-20864ProvideReadOnlyandMutableannotations to control java collection mutability in kotlinKT-18789Delegating val to out-projectedMutableMapresulted in NPE due to cast toNothingKT-21828JS: The List produced by theIntArray.asListfunction caused weird resultsKT-21868Eliminate potential data race inSafePublicationLazyImplKT-21918MaketoTypedArray()implementation more efficient and thread-safeKT-22003JS: ReplaceRegexconstructor-like functions with secondary constructors- JS:
VolatileandSynchornizedannotations are moved tokotlin.jvmpackage with the migration type aliases provided KT-16348ProvideString.toBoolean()conversion in JS and common platforms- Add missing declarations to kotlin-stdlib-common, those that are already supported in both platforms
KT-20968Improve docs for String.format and String.Companion.format
Reflection
KT-20875Support Void.TYPE as underlying Class object for KClassKT-21453NPE in TypeSignatureMappingKt#computeInternalName
Tools
KT-20298Lint warning when using @Parcelize with delegated propertiesKT-20299Android non-ASCII TextView Id Unresolved Reference BugKT-20717@Parcelize Creator.newArray method is generated incorrectlyKT-20751kotlin-spring compiler plugin does not open @Validated classesKT-21171_$_findViewCache and _$_findCachedViewById are created in Activity subclass without Kotlin Android Extensions.KT-21628Can't find referenced class kotlin.internal.annotations.AvoidUninitializedObjectCopyingCheckKT-21777RMI "Connection refused" errors with daemonKT-21992@Transient warning for lazy property
Tools. Gradle
KT-20892Support module name option in K2MetadataCompilerArgumentsKT-17621Incremental compilation is very slow when Java file is modifiedKT-14125Android-extensions don't track xml changes wellKT-20233Kapt: using compiler in-process w/ gradle leads to classloader conflictKT-21009Running Gradle build withcleanpreventsKotlinCompiletasks from loading from cacheKT-21596Improve Kapt Gradle Plugin to be more friendly for Kotlin-DSLKT-15753Support cacheable tasksKT-17656Kotlin and Kotlin Android plugin not using available build cachesKT-20017Support local (non-relocatable) Gradle build cacheKT-20598Missing input annotations on AbstractKotlinCompileToolKT-20604Kotlin plugin breaks relocatability and compile avoidance for Java compile tasksKT-21203Kotlin gradle plugin does not create proper Ivy metadata for dependenciesKT-21261Gradle plugin 1.1.60 creates "build-history.bin" outside project.buildDirKT-21805Gradle plugin does not work with JDK 1.7 (KaptGradleModel)KT-21806Gradle Plugin: Using automatic dependency versions with 'maven-publish' plugin does not include dependency version in generated publication POMs
Tools. Incremental Compile
KT-20840Multiplatform IC fails if expected or actual file is modified separatelyKT-21622Make IC work more accurately with changes of Android layouts xml filesKT-21699JS IC produces different source maps when enum usage is compiled separatelyKT-20633Class is not recompiled
Tools. J2K
KT-21502Inspection to convert map.put(k, v) into map[k] = vKT-19390Character and string concatenation in Java is converted to code with multiple type errors in KotlinKT-19943Redundant 'toInt' after converting explicit Integer#intValue call
Tools. JPS
KT-21574JPS build: API version in project settings is ignoredKT-21841JPS throws exception creating temporary file for moduleKT-21962Source file dependencies (lookups) are not tracked in JPS when Kotlin daemon is used
Tools. Maven
KT-20816Repeated Maven Compiles With Kapt Fail
Tools. REPL
KT-17561Embedding kotlin-script-utils may cause version conflicts e.g. with guavaKT-17921The JSR 223 scripting engine fails to eval anything after encountering an unresolved referenceKT-21075KotlinJsr223JvmLocalScriptEngineFactory does not well with kotlin-compiler-embeddableKT-21141Kotlin script: KotlinJsr223JvmLocalScriptEngine.state.history.reset() seems not clearing the compiler cache
Tools. kapt
Fixes
KT-18791Kapt: Constants from R class should not be inlinedKT-19203Kapt3 generator doesn't seem to print log level lower to Mandatory WarningKT-19402kapt.correctErrorTypesmakes typealias not work.KT-19505Kapt doesn't always stub classes about to be generated.KT-19518Kapt: Support 'correctErrorTypes' option in annotationsKT-20257Kapt is incompatible with compiler pluginsKT-20749Kapt: Support Java 9KT-21144Kapt: Compilation error with maven plugin (Java 9 compatibility)KT-21205KDoc unavailable via javax.lang.model.util.Elements#getDocComment(Element e)KT-21262Kapt: Remove artificial KaptError exception on errors from annotation processorKT-21264Kapt: -Xmaxerrs javac option is not propagated properlyKT-21358Kapt: Support import directive with aliases (correctErrorTypes)KT-21359Kapt: Filter out non-package imports whenever possible (correctErrorTypes)KT-21425kapt warning when assembling unit testsKT-21433Annotations on enum constants are not kept on the generated stubKT-21483Kapt: Loading resources doesn't work without restarting the gradle daemonKT-21542Kapt: Report additional info about time spent in each annotation processorKT-21565Kapt, Maven: Support passing arguments for annotation processorsKT-21566Kapt, Maven: Support passing Javac optionsKT-21729Error message says "androidProcessor" should be "annotationProcessor"KT-21936Kapt 1.2.20-eap: cannot find symbol @KaptSignatureKT-21735Kapt cache not clearedKT-22056Applying Kapt plugin causes RuntimeException on Gradle import: "Kapt importer for generated source roots failed, source root name: debug" at KaptProjectResolverExtension.populateAndroidModuleModelIfNeeded()KT-22189ISE from com.sun.tools.javac.util.Context.checkState when switching from 1.2.10 to 1.2.20-eap-33
1.2.10
Compiler
KT-20821Error while inlining function reference implicitly applied to thisKT-21299Restore adding JDK roots to the beginning of the classpath list
IDE
KT-21180Project level api/language version settings are erroneously used as default during Gradle importKT-21335Fix exception on Project Structure view openKT-21610Fix "Could not determine the class-path for interface KotlinGradleModel" on Gradle sync- Optimize dependency handling during import of Gradle project
JavaScript
KT-21493Losing lambda defined in inline function after incremental recompilation
Tools. CLI
KT-21495Bash scripts in Kotlin v1.2 compiler have Windows line terminatorsKT-21537javac 7 do nothing when kotlin-compiler(-embeddable) is in classpath
Libraries
- Unify docs wording of 'trim*' functions
- Improve cover documentation page of kotlin.test library
- Provide summary for kotlin.math package
- Fix unresolved references in the api docs
1.2
Android
KT-20974NSME "AndroidModuleModel.getMainArtifact" on Gradle refreshKT-20975IAE "Missing extension point" on Gradle refresh
Compiler
KT-6359Provide the way to share code with different targets(JVM, JS)
IDE
KT-21300IDEA slow down in Kotlin + Spring projectKT-20450Exception in UAST during function inliningKT-20789Can't navigate to inline call/inline use site when runner is delegated to GradleKT-21236New project button doesn't work with Kotlin plugin enabled and Gradle plugin disabledKT-21263"Configure Kotlin Plugin Updates" suggests incompatible plugin for AS 3.0
Tools. JPS
KT-20757Rebuild when language/api version is changed
1.2-RC2
Compiler
KT-20844VerifyError on Android after upgrading to 1.2.0-beta-88KT-20895NPE in Kotlin 1.2-beta88 PseudocodeVariablesData.kt:337KT-21377Create fallback flag for "Illegal smart cast is allowed after assignment in try block"
IDE
KT-18719Configure Kotlin in Gradle project to 1.2-Mx: add repository mavenCentral() to buildscriptKT-20782Exception when working with routing in ktor (non-atomic trees update)KT-20966ISE: Facade class not found from Kotlin test filesKT-20967Kotlin plugin upgrade breaks Gradle refreshKT-20990String literal in string template causes ISEKT-21028Add kotlin-stdlib-jre7/8 instead of kotlin-stdlib-jdk7/8 for Kotlin versions below 1.2KT-21383Unsupported method: Library.getProject()when importing Anko project- Downgrade "use expression body" inspection to INFORMATION default level
IDE. Debugger
KT-20962NullPointerException because of nullable location in debugger
IDE. Inspections and Intentions
KT-20803Create actual declaration in the same source root as expect declaration
IDE. Refactorings
KT-20979Move class refactoring doesn't work anymore
Libraries
- Remove deprecated
pairwisefunction
Tools. Gradle
KT-21395“Unable to load class 'kotlin.collections.CollectionsKt'” on creating gradle project in IDEA 2016.3.7
Tools. kapt
- Add
kotlin-annotation-processing-embeddableartifact (compatible withkotlin-compiler-embeddable) - Return
kotlin-annotation-processingartifact back (compatible with CLI Kotlin compiler)
1.2-RC
Compiler
Fixes
KT-20774"::foo.isInitialized" for lateinit member properties produces incorrect bytecodeKT-20826Can't compile Ultimate Idea with Kotlin 1.2KT-20879Compiler problem in when-expressionsKT-20959Regression: Unexpected diagnostic NINITIALIZED_ENUM_COMPANION reported in 1.1.60 & 1.2.0-rcKT-20651Don't know how to generate outer expression" for enum-values with non-trivial self-closures
IDE
New Features
KT-20286"Configure Kotlin in project" should add kotlin-stdlib-jdk7/8 instead of kotlin-stdlib-jre7/8 starting from Kotlin 1.2
Fixes
KT-19599No indentation for multiline collection literalKT-20346Can't build tests in common code due to missing org.jetbrains.kotlin:kotlin-test-js testCompile dependency in JSKT-20550Spring: "Navigate to autowired candidates" gutter action is missed (IDEA 2017.3)KT-20566Spring: "Navigate to the spring beans declaration" gutter action for@ComponentScanis missed (IDEA 2017.3)KT-20843Kotlin TypeDeclarationProvider may stop other declarations providers executionKT-20906Find symbol by name doesn't workKT-20920UAST: SOE Thrown in JavaColorProviderKT-20922Couldn't match ClsMethodImpl from Kotlin test filesKT-20929Import Project from Gradle wizard: the same page is shown twiceKT-20833MP project: add dependency to kotlin-test-annotation-common to common module
IDE. Completion
KT-18458Spring: code completion does not suggest bean names inside@Qualifierbefore function parameter
IDE. Inspections and Intentions
KT-20899Code Cleanup fails to convert Circlet codebase to 1.2KT-20949CCE from UAST (File breadcrumbs don't update when file tree does)
IDE. Refactorings
KT-20251Kotlin Gradle script: Refactor → Inline works incorrect when you need to inline all function occurrences
JavaScript
KT-2976Suggestion for cleaner style to implement !! operatorKT-5259JS: RTTI may be break by overwriting constructor fieldKT-17475JS: object and companion object named "prototype" cause exceptionsKT-18095JS: Wrong behavior of fun named "constructor"KT-18105JS: inner class "length" cause runtime exceptionKT-20625JS: Interface function with default parameter, overridden by other interface cannot be found at runtimeKT-20820JS: IDEA project doesn't generate paths relative to .map
Libraries
KT-4900Finalize math operation parameter names
Tools. JPS
KT-20852IllegalArgumentException: URI has an authority component on attempt to jps compile the gradle project with javascript module
Tools. kapt
KT-20877Butterknife: UninitializedPropertyAccessException: "lateinit property has not been initialized" for field annotated with@BindView.
1.2-Beta2
Multiplatform projects
New Features
KT-20616Compiler options forKotlinCompileCommontaskKT-15522Treat expect classes without explicit constructors as not having constructors at allKT-16099Do not require obvious override of super-interface methods in non-abstract expect classKT-20618RenameimplementtoexpectedByin gradle module dependency
Fixes
KT-16926'implement' dependency is not transitive when importing gradle project to IDEAKT-20634False error about platform project implementing non-common projectKT-19170Forbid private expected declarationsKT-20431Prohibit inheritance by delegation in 'expect' classesKT-20540Report errors about incompatible constructors of actual classKT-20398Do not highlight declarations with not implemented implementations with red during typingKT-19937Support "implement expect class" quickfix for nested classesKT-20657Actual annotation with all parameters that have default values doesn't match expected annotation with no-arg constructorKT-20680No actual class member: inconsistent modality checkKT-18756multiplatform project: compilation error on implementation of extension property in javascript client moduleKT-17374Too many "expect declaration has no implementation" inspection in IDE in a multi-platform projectKT-18455Multiplatform project: show gutter Navigate to implementation on expect side of method in the expect classKT-19222Useless tooltip on a gutter icon for expect declarationKT-20043multiplatform: No H gutter if a class has nested/inner classes inherited from itKT-20164expect/actual navigation does not work when actual is a typealiasKT-20254multiplatform: there is no link between expect and actual classes, if implementation has a constructor when expect doesn'tKT-20309multiplatform: ClassCastException on mouse hovering on the H gutter of the actual secondary constructorKT-20638Context menu in common module: NSEE: "Collection contains no element matching the predicate." at KotlinRunConfigurationProducerKt.findJvmImplementationModule()KT-18919multiplatform project: expect keyword is lost on converting to objectKT-20008multiplatform: Create expect class implementation should add actual keyword at secondary constructorsKT-20044multiplatform: Create expect class implementation should add actual constructor at primary constructorKT-20135"Create expect class implementation" should open created class in editorKT-20163multiplatform: it should be possible to create an implementation for overloaded method if for one method implementation is present alreadyKT-20243multiplatform: quick fix Create expect interface implementation should add actual keyword at interface membersKT-20325multiplatform: Quick fix Create actual ... should specify correct classifier name for object, enum class and annotation class
Compiler
New Features
KT-16028Allow to have different bodies of inline functions inlined depending on apiVersion
Performance Improvements
KT-20462Don't create an array copy for '*(...)'
Fixes
KT-13644Information from explicit cast should be used for type inferenceKT-14697Use-site targeted annotation is not correctly loaded from class fileKT-17981Type parameter for catch parameter possible when exception is nested in generic, but fails in runtimeKT-19251Stack spilling in constructor arguments breaks QuasarKT-20387Wrong argument generated for accessor call of a protected generic 'operator fun get/set' from base class with primitive type as type parameterKT-20491Incorrect synthetic accessor generated for a generic base class function specialized with primitive typeKT-20651"Don't know how to generate outer expression" for enum-values with non-trivial self-closuresKT-20752Do not register new kinds of smart casts for unstable values
IDE
New Features
KT-19146Parameter hints could be shown for annotation
Fixes
KT-19207"Configure Kotlin in project" should add "requires kotlin.stdlib" to module-info for Java 9 modulesKT-19213Formatter/Code Style: space between type parameters andwhereis not insertedKT-19216Parameter name hints should not be shown for functional type invocationKT-20448Exception in UAST during reference search in J2KKT-20543java.lang.ClassCastException on usage of array literals in Spring annotationKT-20709Loop in parent structure when converting a LITERAL_STRING_TEMPLATE_ENTRY
IDE. Completion
KT-17165Support array literals in annotations in completion
IDE. Debugger
KT-18775Evaluate expression doesn't allow access to properties of private nested objects, including companion
IDE. Inspections and Intentions
New Features
KT-20108Support "add requires directive to module-info.java" quick fix on usages of non-required modules in Kotlin sourcesKT-20410Add inspection for listOf().filterNotNull() to replace it with listOfNotNull()
Fixes
KT-16636Remove parentheses after deleting the last unused constructor parameterKT-18549"Add type" quick fix adds non-primitive Array type for annotation parametersKT-18631Inspection to convert emptyArray() to empty literal does not workKT-18773Disable "Replace camel-case name with spaces" intention for JS and common projectsKT-20183AE “Classifier descriptor of a type should be of type ClassDescriptor” on adding element to generic collection in functionKT-20315"call chain on collection type may be simplified" generates code that does not compile
JavaScript
Fixes
KT-8285JS: don't generate tmp when only need one componentKT-8374JS: some Double values converts to Int differently on JS and JVMKT-14549JS: Non-local returns from secondary constructors don't workKT-15294JS: parse error injs()functionKT-17629JS: Equals function (==) returns true for all primitive numeric typesKT-17760JS: Nothing::class throws errorKT-17933JS: toString, hashCode method and simplename property of KClass return senseless results for some classesKT-18010JS: JsName annotation in interfaces can cause runtime exceptionKT-18063Inlining does not work properly in JS for suspend functions from another moduleKT-18548JS: wrong string interpolation with generic or Any parametersKT-19772JS: wrong boxing behavior for open val and final fun inside open classKT-19794runtime crash with empty object (Javascript)KT-19818JS: generate paths relative to .map file by default (unless "-source-map-prefix" is used)KT-19906JS: rename compiler option "-source-map-source-roots" to avoid misleading since sourcemaps have field called "sourceRoot"KT-20287Functions don't actually return Unit in Kotlin-JS -> unexpected null problems vs JDK versionKT-20451KotlinJs - interface function with default parameter, overridden by implementor, can't be found at runtimeKT-20527JS: use prototype chain to check that object implements kotlin interfaceKT-20650JS: compiler crashes in Java 9 with NoClassDefFoundErrorKT-20653JS: compiler crashes in Java 9 with TranslationRuntimeException
Language design
KT-20171Deprecate assigning single elements to varargs in named form
Libraries
KT-19696Provide a way to write multiplatform testsKT-18961Closeable.use should call addSuppressedKT-2460PR-1300shuffleandfillextensions for MutableList now also available in JSPR-1230Add assertSame and assertNotSame methods to kotlin-test
Tools. Gradle
KT-20553RenamewarningsAsErrorscompiler option toallWarningsAsErrorsKT-20217src/main/javaandsrc/test/javasource directories are no longer included by default in Kotlin/JS and Kotlin/Common projects
Tools. Incremental Compile
KT-20654AndroidStudio: NSME “PsiJavaModule.getName()Ljava/lang/String” on calling simple Kotlin functions like println(), listOf()
Binary Metadata
KT-20547Write pre-release flag into class files if language version > LATEST_STABLE
1.2-Beta
Android
New Features
KT-20051Quickfixes to support @Parcelize
Fixes
KT-19747Android extensions + Parcelable: VerifyError in case of RawValue annotation on a type when it's unknown how to parcel itKT-19899Parcelize: Building with ProGuard enabledKT-19988[Android Extensions] inner class LayoutContainer causes NoSuchMethodErrorKT-20002Parcelize explodes on LongArrayKT-20019Parcelize does not propogate flags argument when writing nested ParcelableKT-20020Parcelize does not use primitive array read/write methods on ParcelKT-20021Parcelize does not serialize Parcelable enum as ParcelableKT-20022Parcelize should dispatch directly to java.lang.Enum when writing an enum.KT-20034Application installation failed (INSTALL_FAILED_DEXOPT) in Android 4.3 devices if I use ParcelizeKT-20057Parcelize should use specialized write/create methods where available.KT-20062Parceler should allow otherwise un-parcelable property types in enclosing class.KT-20170UAST: Getting the location of a UIdentifier is tricky
Compiler
KT-4565Support smart casting of safe cast's subject (and also safe call's receiver)KT-8492Null check should work after save call with elvis in conditionKT-9327Need a way to check whether a lateinit property was assignedKT-14138Allow lateinit local variablesKT-15461Allow lateinit top level propertiesKT-7257NPE when accessing properties of enum from inner lambda on initializationKT-9580Report an error if 'setparam' target does not make sense for a parameter declarationKT-16310Nested classes inside enum entries capturing outer membersKT-20155Confusing diagnostics on a nested interface in inner class
IDE
KT-14175Surround with try ... catch (... finally) doesn't work for expressionsKT-20308New Gradle with Kotlin DSL project wizardKT-18353Support UAST for .kts filesKT-19823Kotlin Gradle project import into IntelliJ: import kapt generated classes into classpathKT-20185Stub and PSI element type mismatch for "var nullableSuspend: (suspend (P) -> Unit)? = null"
Language design
KT-14486Allow smart cast in closure if a local variable is modified only before it (and not after or inside)KT-15667Support "::foo" as a short-hand syntax for bound callable reference to "this::foo"KT-16681kotlin allows mutating the field of read-only property
Libraries
KT-19258Java 9: module-info.java withrequires kotlin.stdlibcauses compiler to fail: "module reads package from both kotlin.reflect and kotlin.stdlib"
Tools
KT-19692kotlin-jpa plugin doesn't support @MappedSuperclass annotationKT-20030Parcelize can directly reference writeToParcel and CREATOR for final, non-Parcelize Parcelable types in same compilation unit.KT-19742[Android extensions] Calling clearFindViewByIdCache causes NPEKT-19749Android extensions + Parcelable: NoSuchMethodError on attempt to pack into parcel a serializable objectKT-20026Parcelize overrides describeContents despite being already implemented.KT-20027Parcelize uses wrong classloader when reading parcelable type.KT-20029Parcelize should not directly reference parcel methods on types outside compilation unitKT-20032Parcelize does not respect type nullability in case of Parcelize parcelables
Tools. CLI
KT-10563Support a command line argument -Werror to treat warnings as errors
Tools. Gradle
KT-20212Cannot access internal components from test code
Tools. kapt
KT-17923Reference to Dagger generated class is highlighted redKT-18923Kapt: Do not use the Kotlin error message collector to issue errors from kaptKT-19097Request: Decent support ofkapt.kotlin.generatedon Intellij/Android StudioKT-20001kapt generate stubs Gradle task does not depend on the compilation of sub-project kapt dependencies
1.1.60
Android
New Features
KT-20051Quickfixes to support @Parcelize
Fixes
KT-19747Android extensions + Parcelable: VerifyError in case of RawValue annotation on a type when it's unknown how to parcel itKT-19899Parcelize: Building with ProGuard enabledKT-19988[Android Extensions] inner class LayoutContainer causes NoSuchMethodErrorKT-20002Parcelize explodes on LongArrayKT-20019Parcelize does not propogate flags argument when writing nested ParcelableKT-20020Parcelize does not use primitive array read/write methods on ParcelKT-20021Parcelize does not serialize Parcelable enum as ParcelableKT-20022Parcelize should dispatch directly to java.lang.Enum when writing an enum.KT-20034Application installation failed (INSTALL_FAILED_DEXOPT) in Android 4.3 devices if I use ParcelizeKT-20057Parcelize should use specialized write/create methods where available.KT-20062Parceler should allow otherwise un-parcelable property types in enclosing class.
Compiler
Performance Improvements
KT-20462Don't create an array copy for '*(...)'
Fixes
KT-14697Use-site targeted annotation is not correctly loaded from class fileKT-17680Android Studio and multiple tests in single fileKT-19251Stack spilling in constructor arguments breaks QuasarKT-19592Apply JSR 305 default nullability qualifiers with to generic type arguments if they're applicable for TYPE_USEKT-20016JSR 305: default nullability qualifiers are ignored in TYPE_USE and PARAMETER positionsKT-20131Support @NonNull(when = NEVER) nullability annotationKT-20158Preserve flexibility for Java types annotated with @NonNull(when = UNKNOWN)KT-20337No multifile class facade is generated for files with type aliases onlyKT-20387Wrong argument generated for accessor call of a protected generic 'operator fun get/set' from base class with primitive type as type parameterKT-20418Wrong code generated for literal long range with mixed integer literal endsKT-20491Incorrect synthetic accessor generated for a generic base class function specialized with primitive typeKT-20651"Don't know how to generate outer expression" for enum-values with non-trivial self-closuresKT-20707Support when by enum in kotlin scriptsKT-20879Compiler problem in when-expressions
IDE
New Features
KT-14175Surround with try ... catch (... finally) doesn't work for expressionsKT-15769Join lines could "convert to expression body"KT-19134IntelliJ Color Scheme editor - allow changing color of colons and double colonsKT-20308New Gradle with Kotlin DSL project wizard
Fixes
KT-15932Attempt to rename private property finds unrelated usagesKT-18996After Kotlin compiler settings change: 'Apply' button doesn't workKT-19458Resolver for 'completion/highlighting in ScriptModuleInfo for build.gradle.kts / JVM' does not know how to resolve LibraryInfoKT-19474Kotlin Gradle Script: highlighting fails on unresolved referencesKT-19823Kotlin Gradle project import into IntelliJ: import kapt generated classes into classpathKT-19958Android: kotlinOptions from build.gradle are not imported into facetKT-19972AssertionError “Resolver for 'completion/highlighting in ModuleProductionSourceInfo(module=Module: 'kotlin-pure_main') for files dummy.kt for platform JVM' does not know how to resolve SdkInfo“ on copying Kotlin file with kotlin.* imports from other projectKT-20112maven dependency type test-jar with scope compile notKT-20185Stub and PSI element type mismatch for "var nullableSuspend: (suspend (P) -> Unit)? = null"KT-20199Cut action is not available during indexingKT-20331Wrong EAP repositoryKT-20346Can't build tests in common code due to missing org.jetbrains.kotlin:kotlin-test-js testCompile dependency in JSKT-20419Android Studio plugin 1.1.50 show multiple gutter icon for the same itemKT-20519Error “Parameter specified as non-null is null: method ModuleGrouperKt.isQualifiedModuleNamesEnabled” on creating Gradle (Kotlin DSL) project from scratchKT-20550Spring: "Navigate to autowired candidates" gutter action is missed (IDEA 2017.3)KT-20566Spring: "Navigate to the spring beans declaration" gutter action for@ComponentScanis missed (IDEA 2017.3)KT-20621Provide automatic migration from JetRunConfigurationType to KotlinRunConfigurationTypeKT-20648Do we need a separate ProjectImportProvider for gradle kotlin dsl projects?KT-20782Non-atomic trees updateKT-20789Can't navigate to inline call/inline use site when runner is delegated to GradleKT-20843Kotlin TypeDeclarationProvider may stop other declarations providers executionKT-20929Import Project from Gradle wizard: the same page is shown twice
IDE. Completion
KT-16383IllegalStateException: Failed to create expression from text: '' on choosing ByteArray from completion listKT-18458Spring: code completion does not suggest bean names inside@Qualifierbefore function parameterKT-20256java.lang.Throwable “Invalid range specified” on editing template inside string literal
IDE. Inspections and Intentions
New Features
KT-14695Simplify comparison intention produces meaningless statement for assert()KT-17204AddAssign to property quickfixKT-18220Add data modifier to a class quickfixKT-18742Add quick-fix for CANNOT_CHECK_FOR_ERASEDKT-19735Add quickfix for type mismatch that converts Sequence/Array/ListKT-20259Show warning if arrays are compared by '!='
Fixes
KT-10546Wrong "Unused property" warning on using inline object syntaxKT-16394"Convert reference to lambda" generates wrong codeKT-16808Intention "Remove unnecessary parantheses" is erroneously proposed for elvis operator on LHS ofinoperator if RHS of elvis is return with valueKT-17437Class highlighted as unused even if Companion methods/fields really usedKT-19377Inspections are run for Kotlin Gradle DSL sourcesKT-19420Kotlin Gradle script editor: suggestion to import required class from stdlib fails with AE: ResolverForProjectImpl.descriptorForModule()KT-19626(Specify type explicitly) Descriptor was not found for VALUE_PARAMETERKT-19674'Convert property initializer to getter' intention fails on incompilable initializer with AssertionError at SpecifyTypeExplicitlyIntention$Companion.addTypeAnnotationWithTemplate()KT-19782Surround with if else doesn't work for expressionsKT-20010'Replace safe access expression with 'if' expression' IDEA Kotlin plugin intention may failedKT-20104"Recursive property accessor" reports false positive when property reference is used in the assignmentKT-20218AE on calling intention “Convert to secondary constructor” for already referred argumentKT-20231False positive 'Redundant override' when delegated member hides super type overrideKT-20261Incorrect "Redundant Unit return type" inspection for Nothing-typed expressionKT-20315"call chain on collection type may be simplified" generates code that does not compileKT-20333Assignment can be lifted out of try is applied too broadlyKT-20366Code cleanup: some inspections are brokenKT-20369Inspection messages with INFORMATION highlight type are shown in Code InspectKT-20409useless warning "Remove curly braces" for Chinese characterKT-20417Converting property getter to block body doesn't insert explicit return type
IDE. Refactorings
Performance Improvements
KT-18823Move class to a separate file is very slow in 'kotlin' projectKT-20205Invoke MoveKotlinDeclarationsProcessor.findUsages() under progress
Fixes
KT-15840Introduce type alias: don't change not-nullable type with nullable typealiasKT-17949Rename private fun should not search it out of scopeKT-18196Refactor / Copy: the copy is formattedKT-18594Refactor / Extract (Functional) Parameter are available for annotation arguments, but fail with AE: "Body element is not found"KT-19439Kotlin introduce parameter causes exceptionKT-19909copy a kotlin class removes imports and other modificationsKT-19949AssertionError „Resolver for 'project source roots and libraries for platform JVM' does not know how to resolve ModuleProductionSourceInfo“ through MoveConflictChecker.getModuleDescriptor() on copying Kotlin file from other projectKT-20092Refactor / Copy: copy of .kt file removes all the blank lines and 'hanging' commentsKT-20335Refactor → Extract Type Parameter: “AWT events are not allowed inside write action” after processing duplicatesKT-20402Throwable “PsiElement(IDENTIFIER) by KotlinInplaceParameterIntroducer” on calling Refactor → Extract Parameter for default valuesKT-20403AE “Body element is not found” on calling Refactor → Extract Parameter for default values in constructor of class without body
JavaScript
Fixes
KT-8285JS: don't generate tmp when only need one componentKT-14549JS: Non-local returns from secondary constructors don't workKT-15294JS: parse error injs()functionKT-17450PlatformDependent members of collections are compiled in JSKT-18010JS: JsName annotation in interfaces can cause runtime exceptionKT-18063Inlining does not work properly in JS for suspend functions from another moduleKT-18548JS: wrong string interpolation with generic or Any parametersKT-19794runtime crash with empty object (Javascript)KT-19818JS: generate paths relative to .map file by default (unless "-source-map-prefix" is used)KT-19906JS: rename compiler option "-source-map-source-roots" to avoid misleading since sourcemaps have field called "sourceRoot"KT-20287Functions don't actually return Unit in Kotlin-JS -> unexpected null problems vs JDK versionKT-20451KotlinJs - interface function with default parameter, overridden by implementor, can't be found at runtimeKT-20650JS: compiler crashes in Java 9 with NoClassDefFoundErrorKT-20653JS: compiler crashes in Java 9 with TranslationRuntimeExceptionKT-20820JS: IDEA project doesn't generate paths relative to .map
Libraries
KT-20596'synchronized' does not allow non-local return in Kotlin JSKT-20600Typo in POMs for kotlin-runtime
Tools
KT-19692kotlin-jpa plugin doesn't support @MappedSuperclass annotationKT-20030Parcelize can directly reference writeToParcel and CREATOR for final, non-Parcelize Parcelable types in same compilation unit.KT-19742[Android extensions] Calling clearFindViewByIdCache causes NPEKT-19749Android extensions + Parcelable: NoSuchMethodError on attempt to pack into parcel a serializable objectKT-20026Parcelize overrides describeContents despite being already implemented.KT-20027Parcelize uses wrong classloader when reading parcelable type.KT-20029Parcelize should not directly reference parcel methods on types outside compilation unitKT-20032Parcelize does not respect type nullability in case of Parcelize parcelables
Tools. Gradle
KT-3463Gradle plugin ignores kotlin compile options changesKT-16299Gradle build does not recompile annotated classes on changing compiler's plugins configurationKT-16764Kotlin Gradle plugin should replicate task dependencies of Java source directoriesKT-17564Applying Kotlin's Gradle plugin results in src/main/java being listed twice in sourceSets.main.allSourceKT-17674Test code is not compiled incrementally when main is changedKT-18765Move incremental compilation message from Gradle's warning to info logging levelKT-20036Gradle tasks up-to-date-ness
Tools. J2K
KT-19565Java code using Iterator#remove converted to red codeKT-19651Java class with static-only methods can contain 'protected' members
Tools. JPS
KT-20082Java 9: incremental build reports bogus error for reference to Kotlin sourceKT-20671Kotlin plugin compiler exception when compiling under JDK9
Tools. Maven
KT-20064Maven + Java 9: compile task warns about module-info in the output pathKT-20400Do not output module name, version and related information by default in Maven builds
Tools. REPL
KT-20167JDK 9unresolved supertypes: Objectwhen working with Kotlin Scripting API
Tools. kapt
KT-17923Reference to Dagger generated class is highlighted redKT-18923Kapt: Do not use the Kotlin error message collector to issue errors from kaptKT-19097Request: Decent support ofkapt.kotlin.generatedon Intellij/Android StudioKT-20877Butterknife: UninitializedPropertyAccessException: "lateinit property has not been initialized" for field annotated with@BindView.
1.1.50
Android
KT-14800Kotlin Lint:@SuppressLintannotation on local variable is ignoredKT-16600False positive "For methods, permission annotation should specify one ofvalue,anyOforallOf"KT-16834Android Lint: Bogus warning on @setparam:StringResKT-17785Kotlin Lint: "Incorrect support annotation usage" does not pick the value of const valKT-18837Android Lint: Collection.removeIf is not flagged when used on RealmListKT-18893Android support annotations (ColorInt, etc) cannot be used on properties: "does not apply for type void"KT-18997KLint: False positive "Could not find property setter method setLevel on java.lang.Object" if using elvis with return on RHSKT-19671UAST: Parameter annotations not provided for val parameters
Compiler
Performance Improvements
KT-17963Unnecessary boxing in case of primitive comparison to objectKT-18589'Equality check can be used instead of elvis' produces code that causes boxingKT-18693Optimize in-expression with optimizable range in RHSKT-18721Improve code generation for if-in-primitive-literal expression ('if (expr in low .. high)')KT-18818Optimize null cases inwhenstatement to avoid Intrinsics usageKT-18834Do not create ranges for 'x in low..high' where type of x doesn't match range element typeKT-19029Use specialized equality implementations for 'when'KT-19149Use 'for-in-until' loop in intrinsic array constructorsKT-19252Use 'for-in-until' loop for 'for-in-rangeTo' loops with constant upper bounds when possibleKT-19256Destructuring assignment generates redundant code for temporary variable nullificationKT-19457Extremely slow analysis for file with deeply nested lambdas
Fixes
KT-10754Bogus unresolved extension functionKT-11739Incorrect error message on getValue operator with KProperty parameterKT-11834INAPPLICABLE_LATEINIT_MODIFIER is confusing for a generic type parameter with nullable (default) upper boundKT-11963Exception: recursive call in a lazy value under LockBasedStorageManagerKT-12737Confusing error message when calling extension function with an implicit receiver, passing value parameter of wrong typeKT-12767Too much unnecessary information in "N type arguments expected" error messageKT-12796IllegalArgumentException on referencing inner class constructor on an outer class instanceKT-12899Platform null escapes if passed as an extension receiver to an inline functionKT-13665Generic componentN() functions should provide better diagnostics when type cannot be inferredKT-16223Confusing diagnostic for local inline functionsKT-16246CompilationException caused by intersection type overload and wrong type parameterKT-16746DslMarker doesn't work with typealiasesKT-17444Accessors generated for private file functions should respect @JvmNameKT-17464Calling super constructor with generic function call in arguments fails at runtimeKT-17725java.lang.VerifyError when both dispatch receiver and extension receiver have smart castsKT-17745Unfriendly error message on creating an instance of interface via typealiasKT-17748Equality for class literals of primitive types is not preserved by reificationKT-17879Comparing T::class from a reified generic with a Class<> and KClass<> variable in when statement is brokenKT-18356Argument reordering in super class constructor call for anonymous object fails with VerifyErrorKT-18819JVM BE treats 'if (a in low .. high)' as 'if (a >= low && a <= high)', so 'high' can be non-evaluatedKT-18855Convert "Remove at from annotation argument" inspection into compiler error & quick-fixKT-18858Exception within typealias expansion with dynamic used as one of type argumentsKT-18902NullPointerException when using provideDelegate with properties of the base class at runtimeKT-18940REPEATED_ANNOTATION is reported on wrong location for typealias argumentsKT-18944Type annotations are lost for dynamic typeKT-18966Report full package FQ name in compilation errors related to visibilityKT-18971Missing non-null assertion for platform type passed as a receiver to the member extension functionKT-18982NoSuchFieldError on access to imported object property from the declaring object itselfKT-18985Too large highlighting range for UNCHECKED_CASTKT-19058VerifyError: no CHECKAST on dispatch receiver of the synthetic property defined in Java interfaceKT-19100VerifyError: missing CHECKCAST on extension receiver of the extension propertyKT-19115Report warnings on usages of JSR 305-annotated declarations which rely on incorrect or missing nullability informationKT-19128java.lang.VerifyError with smart cast to String from AnyKT-19180Bad SAM conversion of Java interface causing ClassCastException: [...] cannot be cast to kotlin.jvm.functions.Function1KT-19205Poor diagnostic message for deprecated class referenced through typealiasKT-19367NSFE if property with name matching companion object property name is referenced within lambdaKT-19434Object inheriting generic class with a reified type parameter looses method annotationsKT-19475AnalyserException in case of combination ofwhile (true)+ stack-spilling (coroutines/try-catch expressions)KT-19528Compiler exception on inline suspend function inside a generic classKT-19575Deprecated typealias is not marked as such in access to companion objectKT-19601UPPER_BOUND_VIOLATED reported on type alias expansion in a recursive upper bound on a type parameterKT-19814Runtime annotations for open suspend function are not generated correctlyKT-19892Overriding remove method on inheritance from TreeSetKT-19910Nullability assertions removed when inlining an anonymous object in crossinline lambdaKT-19985JSR 305: nullability qualifier of Java function return type detected incorrectly in case of using annotation nickname
IDE
New Features
KT-6676Show enum constant ordinal in quick doc like in JavaKT-12246Kotlin source files are not highlighted in Gradle build output in IntelliJ
Performance Improvements
KT-19670When computing argument hints, don't resolve call if none of the arguments are unclear expressions
Fixes
KT-9288Call hierarchy ends on function call inside local val initializer expressionKT-9669Join Lines should add semicolon when joining statements into the same lineKT-14346IllegalArgumentException on attempt to call Show Hierarchy view on lambdaKT-14428AssertionError in KotlinCallerMethodsTreeStructure. on attempt to call Hierarchy viewKT-19466Kotlin based Gradle build not recognized when added as a moduleKT-18083IDEA: Support extension main functionKT-18863Formatter should add space after opening brace in a single-line enum declarationKT-19024build.gradle.kts is not supported as projectKT-19124Creating source file with directory/package throws AE: "Write access is allowed inside write-action only" at NewKotlinFileAction$Companion.findOrCreateTarget()KT-19154Completion and auto-import does not suggest companion object members when inside an extension functionKT-19202Applying 'ReplaceWith' fix in type alias can change program behaviourKT-19209"Stub and PSI element type mismatch" in when receiver type is annotated with @receiverKT-19277Optimize imports on the fly should not work in test data filesKT-19278Optimize imports on the fly should not remove incomplete import while it's being typedKT-19322Script editor: Move Statement Down/Up can't move one out of top level lambdaKT-19451"Unresolved reference" with Kotlin Android Extensions when layout defines the Android namespace as something other than "android"KT-19492Java 9: references from unnamed module to not exported classes of named module are compiled, but red in the editorKT-19493Java 9: references from named module to classes of unnamed module are not compiled, but green in the editorKT-19843Performance warning: LineMarker is supposed to be registered for leaf elements onlyKT-19889KotlinGradleModel : Unsupported major.minor version 52.0KT-19885200% CPU for some time on Kotlin sources (PackagePartClassUtils.hasTopLevelCallables())KT-19901KotlinLanguageInjector#getLanguagesToInject can cancel any progress in which it was invokedKT-19903Copy Reference works incorrectly for const valKT-20153Kotlin facet: Java 9-Xadd-modulessetting produces more and more identical sub-elements of<additionalJavaModules>in .iml file
IDE. Completion
KT-8848Code completion does not support import aliasesKT-18040There is no auto-popup competion after typing "$x." anymoreKT-19015Smart completion: parameter list completion is not available when some of parameters are already written
IDE. Debugger
KT-19429Breakpoint appears in random place during debug
IDE. Inspections and Intentions
New Features
KT-4748Remove double negation for boolean expressions intention + inspectionKT-5878Quickfix for "variable initializer is redundant" (VARIABLE_WITH_REDUNDANT_INITIALIZER)KT-11991Kotlin should have an inspection to suggest the simplified format for a no argument lambdaKT-12195Quickfix @JvmStatic on main() method in an objectKT-12233"Package naming convention" inspection could show warning in .kt sourcesKT-12504Intention to make open class with only private constructors sealedKT-12523Quick-fix to removewhenwith onlyelseKT-12613"Make abstract" on member of open or final class should make abstract both member and classKT-16033Automatically static import the enum value name when "Add remaining branches" on an enum from another class/fileKT-16404Create from usage should allow generating nested classesKT-17322Intentions to generate a getter and a setter for a propertyKT-17888Inspection to warn about suspicious combination of == and ===KT-18826INAPPLICABLE_LATEINIT_MODIFIER should have a quickfix to remove initializerKT-18965Add quick-fix for USELESS_IS_CHECKKT-19126Add quickfix for 'Property initializes are not allowed in interfaces'KT-19282Support "flip equals" intention for String.equals extension from stdlibKT-19428Add inspection for redundant overrides that only call the super methodKT-19514Redundant getter / setter inspection
Fixes
KT-13985"Add remaining branches" action does not use back-ticks correctlyKT-15422Reduce irrelevant reporting of Destructure inspectionKT-17480Create from usage in expression body of override function should take base type into accountKT-18482"Move lambda argument to parenthesis" action generate uncompilable codeKT-18665"Use destructuring declaration" must not be suggested for invisible propertiesKT-18666"Use destructuring declaration" should not be reported on a variable used in destructuring declaration onlyKT-18978Intention Move to class body generates incorrect code for vararg val/varKT-19006Inspection message "Equality check can be used instead of elvis" is slightly confusingKT-19011Unnecessary import for companion object property with extension function type is automatically insertedKT-19299Quickfix to correct overriding function signature keeps java NotNull annotationsKT-19614Quickfix for INVISIBLE_MEMBER doesn't offer to make member protected if referenced from subclassKT-19666ClassCastException in IfThenToElvisIntentionKT-19704Don't remove braces in redundant cascade ifKT-19811Internal member incorrectly highlighted as unusedKT-19926Naming convention inspections: pattern is validated while edited, PSE at Pattern.error()KT-19927"Package naming convention" inspection checks FQN, but default pattern looks like for simple name
IDE. Refactorings
KT-17266Refactor / Inline Function: reference to member of class containing extension function is inlined wrongKT-17776Inline method of inner class adds 'this' for methods from enclosing classKT-19161Safe delete conflicts are shown incorrectly for local declarations
JavaScript
Performance Improvements
KT-18329JS: for loop implementation depends on parentheses
Fixes
KT-12970Empty block expression result is 'undefined' (expected: 'kotlin.Unit')KT-13930Safe call for a function returning 'Unit' result is 'undefined' or 'null' (instead of 'kotlin.Unit' or 'null')KT-13932'kotlin.Unit' is not materialized in some functions returning supertype of 'Unit' ('undefined' returned instead)KT-16408JS: Inliner loses imported values when extending a class from another moduleKT-17014Different results in JVM and JavaScript on Unit-returning functionsKT-17915JS: 'kotlin.Unit' is not materialized as result of try-catch block expression with empty catchKT-18166JS: Delegated property named with non-identifier symbols can crash in runtime.KT-18176JS: dynamic type should not allow methods and properties with incorrect identifier symbolsKT-18216JS: Unit-returning expression used in loop can cause wrong behaviorKT-18793Kotlin Javascript compiler null handling generates if-else block where else is always takenKT-19108JS: Inconsistent behaviour from JVM code when modifying variable whilst calling run on itKT-19495JS: Wrong compilation of nested conditions with if- and when-clausesKT-19540JS: prohibit to use illegal symbols on call siteKT-19542JS: delegate field should have unique name otherwise it can be accidentally overwrittenKT-19712KotlinJS - providing default value of lambda-argument produces invalid js-codeKT-19793build-crash with external varargs (Javascript)KT-19821JS remap sourcemaps in DCEKT-19891Runtime crash with inline function with reified type parameter and object expression: "T_0 is not defined" (JavaScript)KT-20005Invalid source map with option sourceMapEmbedSources = "always"
Libraries
KT-19133Specializeanyandnonefor CollectionKT-18267Deprecate CharSequence.size extension function on the JS sideKT-18992JS: Missing MutableMap.iterator()KT-19881Expand doc comment of @PublishedApi
Tools. CLI
KT-18859Strange error message when kotlin-embeddable-compiler is run without explicit -kotlin-homeKT-19287Common module compilation: K2MetadataCompiler ignores coroutines state
Tools. Gradle
KT-17150Support 'packagePrefix' option in Gradle pluginKT-19956Support incremental compilation to JS in GradleKT-13918Cannot access internal classes/methods in androidTest source set in an Android library moduleKT-17355UsearchivesBaseNameinstead ofproject.namefor module names, get rid of_mainformainsource setKT-18183Kotlin gradle plugin uses compile task output as "friends directory"KT-19248Documentation suggested way to enable coroutines (gradle) doesn't workKT-19397local.properties file not closed by KotlinProperties.kt
Tools. Incremental Compile
KT-19580IC does not detect non-nested sealed class addition
Tools. J2K
KT-103750xFFFFFFFFFFFFFFFFL conversion issueKT-13552switch-to-when conversion creates broken codeKT-17379Converting multiline expressions creates dangling operationsKT-18232Kotlin code converter misses annotationsKT-18786Convert Kotlin to Java generates error: Variable cannot be initialized before declarationKT-19523J2K produce invalid code when convert some numbers
Tools. JPS
KT-17397Kotlin JPS Builder can mark dirty files already compiled in roundKT-19176Java 9: JPS build fails for Kotlin source referring exported Kotlin class from another module: "unresolved supertypes: kotlin.Any"KT-19833Cannot access class/superclass from SDK on compilation of JDK 9 module together with non-9 module
Tools. REPL
KT-11369REPL: Ctrl-C should interrupt the input, Ctrl-D should quit
Tools. kapt
KT-19996Error with 'kotlin-kapt' plugin and dagger2, clean project required
1.1.4-3
KT-18062SamWithReceiver compiler plugin not used by IntelliJ for .kt filesKT-18497Gradle Kotlin Plugin does not work with the gradle java-library pluginKT-19276Console spam when opening idea-community project in debug IDEAKT-19433[Coroutines + Kapt3] Assertion failed in ClassClsStubBuilder.createNestedClassStubKT-19680kapt3 & Parcelize: Compilation errorKT-19687Kotlin 1.1.4 noarg plugin breaks with sealed classesKT-19700Kapt error after updating to 1.1.4 - stub adds type parameters where there are noneKT-19713Mocking of final named suspend methods with mockito failsKT-19729kapt3: not always including argument to @javax.inject.Named in generated stubsKT-19759"Convert to expression body" is not shown in 162 / AS23 branches for multi-linersKT-19767NPE caused by Map<String, Boolean>?.getKT-19769PerModulePackageCacheService calls getOrderEntriesForFile() for every file, even those that can't affect Kotlin resolveKT-19774Provide an opt-out flag for separate classes directories (Gradle 4.0+)KT-19847if an imported library already exists it should be redetected during gradle import
1.1.4-2
KT-19679CompilationException: Couldn't inline method call 'methodName' into...KT-19690Lazy field in interface default method leads to ClassFormatErrorKT-19716QuickdocCtrl+Qbroken while browsing code completion listCtrl-SpaceKT-19717Library kind incorrectly detected for vertx-web in Kotlin projectKT-19723"Insufficient maximum stack size" during compilation
1.1.4
Android
New Features
KT-11048Android Extensions: cannot evaluate expression containing generated properties
Performance Improvements
KT-10542Android Extensions: No cache for ViewsKT-18250Android Extensions: Allow to use SparseArray as a View cache
Fixes
KT-11051Android Extensions: completion of generated properties is unclear for ambiguous idsKT-14086Android-extensions not generated using flavors dimensionKT-14912Lint: "Code contains STOPSHIP marker" ignores suppress annotationKT-15164Kotlin Lint: problems in delegate expression are not reportedKT-16934Android Extensions fails to compile when importing synthetic properties for layouts in other modulesKT-17641Problem with Kotlin Android Extensions and Gradle syntaxKT-17783Kotlin Lint: quick fixes to add inapplicable @RequiresApi and @SuppressLint make code incompilableKT-17786Kotlin Lint: "Surround with if()" quick fix is not suggested for single expressionget()KT-17787Kotlin Lint: "Add @TargetApi" quick fix is not suggested for top level property accessorKT-17788Kotlin Lint: "Surround with if()" quick fix corrupts code in case of destructuring declarationKT-17890[kotlin-android-extensions] Renaming layout file does not rename importKT-18012Kotlin Android Extensions generates@NotNullproperties for views present in a configuration and potentially missing in anotherKT-18545Accessing to synthetic properties on smart casted Android components crashed compiler
Compiler
New Features
KT-10942Support meta-annotations from JSR 305 for nullability qualifiersKT-14187Redundant "is" check is not detectedKT-16603Supportinline suspendfunctionKT-17585Generate state machine for named functions in their bodies
Performance Improvements
KT-3098Generate efficient comparisonsKT-6247Optimization for 'in' and '..'KT-7571Don't box Double instance to call hashCode on Java 8KT-9900Optimize range operations for 'until' extension from stdlibKT-11959Unnceessary boxing/unboxing due to Comparable.compareToKT-12158Optimize away boxing when comparing nullable primitive type value to primitive valueKT-13682Reuse StringBuilder for concatenation and string interpolationKT-14323IntelliJ lockup when using Apache Spark UDFKT-14375Kotlin compiler failure with spark when creating a flexible type for scala.Function22KT-15235Escaped characters in template strings are generating inefficient implementationsKT-17280Inline constant expressions in string templatesKT-17903Generate 'for-in-indices' as a precondition loopKT-18157Optimize out trivial INSTANCEOF checksKT-18162Do not check nullability assertions twice for effectively same valueKT-18164Do not check nullability for values that have been already checked with !!KT-18478Unnecessary nullification of bound variablesKT-18558Flatten nested string concatenationKT-18777Unnecessary boolean negation generated for 'if (expr !in range)'
Fixes
KT-1809Confusing diagnostics when wrong number of type arguments are specified and there are several callee candiatesKT-2007Improve diagnostics when + in not resolved on a pair of nullable intsKT-5066Bad diagnostic message for ABSTRACT_MEMBER_NOT_IMPLEMENTED for (companion) objectKT-5511Inconsistent handling of inner enumKT-7773Disallow to explicitly extend Enum classKT-7975Unclear error message when redundant type arguments suppliedKT-8340vararg in a property setter must be an errorKT-8612Incorrect error message for var extension property without getter or setterKT-8829Type parameter of a class is not resolved in the constructor parameter's default valueKT-8845Bogus diagnostic on infix operation "in"KT-9282Improve diagnostic on overload resolution ambiguity when a nullable argument is passed to non-null parameterKT-10045Not specific enough compiler error message in case of trying to call overloaded private methodsKT-10164Incorrect error message for external inline methodKT-10248Smart casts: Misleading error on overloaded function callKT-10657Confusing diagnostic when trying to invoke value as a functionKT-10839Weird diagnostics on callable reference of unresolved classKT-11119Confusing error message when overloaded method is called on nullable receiverKT-12408Generic information lost for override valuesKT-12551Report "unused expression" on unused bound double colon expressionsKT-13749Error highlighting range for no 'override' modifier is bigger than neededKT-14598Do not report "member is final and cannot be overridden" when overriding something from final classKT-14633"If must have both main and else branches" diagnostic range is too highKT-14647Confusing error message "'@receiver:' annotations could be applied only to extension function or extension property declarations"KT-14927TCE in QualifiedExpressionResolverKT-15243Report deprecation on usages of type alias expanded to a deprecated classKT-15804Prohibit having duplicate parameter names in functional typesKT-15810destructuring declarations don't work in scripts on the top levelKT-15931IllegalStateException: ClassDescriptor of superType should not be null: T by aKT-16016Compiler failure with NO_EXPECTED_TYPEKT-16448Inline suspend functions with inlined suspend invocations are miscompiled (VerifyError, ClassNotFound)KT-16576Wrong code generated with skynet benchmarkKT-17007Kotlin is not optimizing away unreachable code based on const valsKT-17188Do not propose to specify constructor invocation for classes without an accessible constructorKT-17611Unnecessary "Name shadowed" warning on parameter of local function or local class memberKT-17692NPE in compiler when calling KClass.java on function result of type UnitKT-17820False "useless cast" when target type is flexibleKT-17972Anonymous class generated from lambda captures its outer and tries to set nonexistent this$0 field.KT-18029typealias not working in .kts filesKT-18085Compilation Error:Kotlin: [Internal Error] kotlin.TypeCastException: null cannot be cast to non-null type com.intellij.psi.PsiElementKT-18115Generic inherited classes in different packages with coroutine causes java.lang.VerifyError: Bad local variable typeKT-18189Incorrect generic signature generated for implementation methods overriding special built-insKT-18234Top-level variables in script aren't local variablesKT-18413Strange compiler error - probably incremental compilerKT-18486Superfluos generation of suspend function state-machine because of inner suspension of different coroutineKT-18598Report error on access to declarations from non-exported packages and from inaccessible modules on Java 9KT-18698java.lang.IllegalStateException: resolveToInstruction: incorrect index -1 for label L12 in subroutineKT-18702Proguard warning with Kotlin 1.2-M1KT-18728Integer method reference application fails with CompilationException: Back-end (JVM) Internal errorKT-18845Exception on building gradle project with collection literalsKT-18867Getting constant "VerifyError: Operand stack underflow" from Kotlin pluginKT-18916Strange bytecode generated for 'null' passed as SAM adapter for Java interfaceKT-18983Coroutines: miscompiled suspend for loop (local variables are not spilled around suspension points)KT-19175Compiler generates different bytecode when classes are compiled separately or togetherKT-19246Using generic inline function inside inline extension function throws java.lang.VerifyError: Bad return typeKT-19419Support JSR 305 meta-annotations in libraries even when JSR 305 JAR is not on the classpath
IDE
New Features
KT-2638Inline property (with accessors) refactoringKT-7107Rename refactoring for labelsKT-9818Code style for method expression bodiesKT-11994Data flow analysis support for Kotlin in IntelliJKT-14126Code style wrapping options for enum constantsKT-14929Deprecated ReplaceWith for type aliasesKT-14950Code Style: Wrapping and Braces / "Local variable annotations" setting could be supportedKT-14965"Configure Kotlin in project" should support build.gradle.ktsKT-15504Add code style options to limit number of blank linesKT-16558Code Style: Add Options for "Spaces Before Parentheses"KT-18113Add new line options to code style for method parametersKT-18605Option to not use continuation indent in chained callsKT-18607Options to put blank lines between 'when' branches
Performance Improvements
KT-14606Code completion calculates decompiled text when building lookup elements for PSI from compiled classesKT-17751Kotlin slows down java inspections big timeKT-1783510s hang on IDEA project openKT-18842Very slow typing in certain files of Kotlin projectKT-18921Configure library kind explicitly
Fixes
KT-6610Language injection doesn't work with String InterpolationKT-8893Quick documentation shows type for top-level object-type elements, but "no name provided" for local onesKT-9359"Accidental override" error message does not mention class (type) namesKT-10736Highlighting usages doesn't work for synthetic properties created by the Android ExtensionsKT-11980Spring: Generate Constructor, Setter Dependency in XML for Kotlin class: IOE at LightElement.add()KT-12123Formatter: always indent after newline in variable initializationKT-12910spring: create init-method/destroy-method from usage results in IOEKT-13072Kotlin struggles to index JDK 9 classesKT-13099formatting in angle brackets ignored and not fixedKT-14083Formatting of where clasusesKT-14271Value captured in closure doesn't always get highlightedKT-14561Use regular indent for the primary constructor parametersKT-14974"Find Usages" hangs in ExpressionsOfTypeProcessorKT-15093Navigation to library may not work if there's another module in same project that references same jar via a different libraryKT-15270Quickfix to migrate from @native***KT-16352Create from usage inserts extra space in first stepKT-16725Formatter does not fix spaces before square bracketsKT-16999"Parameter info" shows duplicates on toStringKT-17357BuiltIns for module build with project LV settings, not with facet module settingsKT-17394Core formatting is wrong for expression body propertiesKT-17759Breakpoints not working in JSKT-17771Kotlin IntelliJ plugin should resolve Gradle script classpath asynchronouslyKT-17818Formatting of long constructors is inconsistent with Kotlin code conventionsKT-17849Automatically insert trimMargin() or trimIndent() on enter in multi-line stringsKT-17855Main function is shown as unusedKT-17894StringtrimIndentsupport inserts wrong indent in some casesKT-17942Enter in multiline string with injection doesn't add a proper indentKT-17956Type hints for properties that only consist of constructor calls don't add much valueKT-18006Copying part of string literal with escape sequences converts this sequences to special charactersKT-18030Parameters hints:kotlin.arrayOf(elements)should be on the blacklist by defaultKT-18059Kotlin Lint: False positive error "requires api level 24" for interface method with bodyKT-18149PIEAE "Element class CompositeElement of type REFERENCE_EXPRESSION (class KtNameReferenceExpressionElementType)" at PsiInvalidElementAccessException.createByNode()KT-18151Do not import jdkHome from Gradle/Maven modelKT-18158Expand selection should select the comment after expression getter on the same lineKT-18186Create function from usage should infer expected return typeKT-18221AE at org.jetbrains.kotlin.analyzer.ResolverForProjectImpl.descriptorForModuleKT-18269Find Usages fails to find operator-style usages ofinvoke()defined as extensionKT-18298spring: strange menu at "Navige to the spring bean" gutterKT-18309Join lines breaks codeKT-18373Facet: can't change target platform between JVM versionsKT-18376Maven import fails with NPE at ArgumentUtils.convertArgumentsToStringList() ifjvmTargetsetting is absentKT-18418Generate equals and hashCode should be available for classes without propertiesKT-18429Android strings resources folding false positivesKT-18444Type hints don't work for destructuring declarationsKT-18475Gradle/IntelliJ sync can result in IntelliJ modules getting gradle artifacts added to the classpath, breaking compilationKT-18479Can't find usages of invoke operator with vararg parameterKT-18501Quick Documentation doesn't show when @Supress("unused") is above the javadocKT-18566Long find usages for operators when there are several operators for the same typeKT-18596"Generate hashCode" produces poorly formatted codeKT-18725Android:kotlin-languagefacet disappears on reopening the projectKT-18974Type hints shouldn't appear for negative literalsKT-19054Lags in typing in string literalKT-19062Member navigation doesn't work in expression bodies of getters with inferred property typeKT-19210Command line flags like -Xload-jsr305-annotations have no effect in IDEKT-19303Project language version settings are used to analyze libraries, disabling module-specific analysis flags like -Xjsr305-annotations
IDE. Completion
KT-8208Support static member completion with not-imported-yet classesKT-12104Smart completion does not work with "invoke" when receiver is expressionKT-17074Incorrect autocomplete suggestions for contexts affected by @DslMarkerKT-18443IntelliJ not handling default constructor argument from companion object wellKT-19191Disable completion binding context caching by default
IDE. Debugger
KT-14845Evaluate expression freezes debugger while evaluating filter, for time proportional to number of elements in collection.KT-17120Evaluate expression: cannot find local variableKT-18453Support 'Step over' and 'Force step over' action for suspended callsKT-18577Debug: Smart Step Into does not enter functions passed as variable or parameter: "Method invoke() has not been called"KT-18632Debug: Smart Step Into does not enter functions passed as variable or parameter when signature of lambda and parameter doesn't matchKT-18949Can't stop on breakpoint after call to inline in Android StudioKT-1940330s complete hangs of application on breakpoints stop attempt
IDE. Inspections and Intentions
New Features
KT-12119Intention to replace .addAll() on a mutable collection with +=KT-13436Replace 'when' with return: handle case when all branches jump out (return Nothing)KT-13458Cascade "replace with return" for if/when expressionsKT-13676Add better quickfix for 'let' and 'error 'only not null or asserted calls are allowed'KT-14648Add quickfix for @receiver annotation being applied to extension member instead of extension typeKT-14799Add inspection to simplify successive null checks into safe-call and null checkKT-14900"Lift return out of when/if" should work with control flow expressionsKT-15257JS: quickfix to migrate from @native to externalKT-15368Add intention to convert Boolean? == true to ?: false and vice versaKT-15893"Array property in data class" inspection could have a quick fix to generateequals()andhashcode()KT-15958Inspection to inline "unnecessary" variablesKT-16063Inspection to suggest converting block body to expression bodyKT-17198Inspection to replace filter calls followed by functions with a predicate variantKT-17580Add remaning branches intention should be available for sealed classesKT-17583Support "Declaration access can be weaker" inspection for kotlin propertiesKT-17815Quick-fix "Replace with safe call & elvis"KT-17842Add quick-fix for NO_CONSTRUCTOR errorKT-17895Inspection to replace 'a .. b-1' with 'a until b'KT-17919Add "Simplify if" intention/inspectionKT-17920Add intention/inspection removing redundant spread operator for arrayOf callKT-17970Intention actions to format parameter/argument list placing each on separate lineKT-18236Add inspection for potentially wrongly placed unary operatorsKT-18274Add inspection to replace map+joinTo with joinTo(transform)KT-18386Inspection to detect safe calls of orEmpty()KT-18438Add inspection for empty ranges with start > endInclusiveKT-18460Add intentions to apply De Morgan's laws to conditionsKT-18516Add inspection to detect & remove redundant UnitKT-18517Provide "Remove explicit type" inspection for some obvious casesKT-18534Quick-fix to add empty brackets after primary constructorKT-18540Add quickfix to create data class property from usage in destructuring declarationKT-18615Inspection to replace if with three or more options with whenKT-18749Inspection for useless operations on collection with not-null elementsKT-18830"Lift return out of try"
Fixes
KT-11906Spring: "Create getter / setter" quick fixes cause IOE at LightElement.add()KT-12524Wrong "redundant semicolon" for semicolon inside an enum class before the companion object declarationKT-13870Wrong caption "Change to property access" for Quick Fix to convert class instantiation to object referenceKT-13886Unused variable intention should remove constant initializerKT-14092"Make " intention inserts modifier between annotation and class keywordsKT-14093"Make " intention available only on modifier when declaration already have a visibility modifierKT-14643"Add non-null asserted call" quickfix should not be offered on literal null constantsKT-15242Create type from usage should include constraints into base typesKT-16046Globally unused typealias is not marked as suchKT-16069"Simplify if statement" doesn't work in specific caseKT-17026"Replace explicit parameter" should not be shown on destructuring declarationKT-17092Create function from usage works incorrectly with ::class expressionKT-17353"Create type parameter from usage" should not be offered for unresolved annotationsKT-17537Create from Usage should suggest Boolean return type if function is used in if conditionKT-17623"Remove explicit type arguments" is too conservative sometimesKT-17651Create property from usage should make lateinit varKT-17726Nullability quick-fixes operate incorrectly with implicit nullable receiverKT-17740CME at MakeOverriddenMemberOpenFix.getText()KT-18506Inspection on final Kotlin spring components is false positiveKT-17823Intention "Make private" and friends should respect modifier orderKT-17917Superfluos suggestion to add replaceWith for DeprecationLevel.HIDDENKT-17954Setting error severity on "Kotlin | Function or property has platform type" does not show up as error in IDEKT-17996Android Studio Default Constructor Command Removes Custom SetterKT-18033Do not suggest to cast expression to non-nullable type when it's the same as !!KT-18035Quickfix for "CanBePrimaryConstructorProperty" does not work correctly with vararg constructor propertiesKT-18044"Move to class body" intention: better placement in the bodyKT-18074Suggestion in Intention 'Specify return type explicitly' doesn't support generic type parameterKT-18120Recursive property accessor gives false positivesKT-18148Incorrect, not working quickfix - final and can't be overriddenKT-18160Circular autofix actions between redundant modality and non-final variable with allopen pluginKT-18194"Protected in final" inspection works incorrectly with all-openKT-18195"Redundant modality" is not reported with all-openKT-18197Redundant "make open" for abstract class member with all-openKT-18253Wrong location of "Redundant 'toString()' call in string template" quickfixKT-18347Nullability quickfixes are not helpful when using invoke operatorKT-18368"Cast expression x to Type" fails for expression inside argument listKT-18375Backticked function name is suggested to be renamed to the same nameKT-18385Spring: Generate Dependency causes Throwable "AWT events are not allowed inside write action"KT-18407"Move property to constructor" action should not appear on properties declared in interfacesKT-18425Make intention inserts modifier at wrong position for sealed classKT-18529Add '!!' quick fix applies to wrong expression on operation 'in'KT-18642Remove unused parameter intention transfers default value to another parameterKT-18683Wrong 'equals' is generated for Kotlin JS projectKT-18709"Lift assignment out of if" changes semanticsKT-18711"Lift return out of when" changes semantics for functional typeKT-18717Report MemberVisibilityCanBePrivate on visibility modifier if presentKT-18722Correct "before" sample in description for intention Convert to enum classKT-18723Correct "after" sample for intention Convert to applyKT-18852"Lift return out of when" does not work for exhaustive when without elseKT-18928In IDE, "Replace 'if' expression with safe access expression incorrectly replace expression when using propertyKT-18954Kotlin plugin updater activates in headless modeKT-18970Do not report "property can be private" on JvmField propertiesKT-19232Replace Math.min with coerceAtMost intention is brokenKT-19272Do not report "function can be private" on JUnit 3 test methods
IDE. Refactorings
New Features
KT-4379Support renaming import aliasKT-8180Copy ClassKT-17547Refactor / Move: Problems Detected / Conflicts in View: only referencing file is mentioned
Fixes
KT-9054Copy / pasting a Kotlin file should bring up the Copy Class dialogKT-13437Change signature replaces return type with Unit when it's not requestedKT-15859Renaming variables or functions with backticks removes the backticksKT-16180Opened decompiled editor blocks refactoring of involved elementKT-17062Field/property inline refactoring works incorrectly with Kotlin & Java usagesKT-17128Refactor / Rename in the last position of label name throws Throwable "PsiElement(IDENTIFIER) by com.intellij.refactoring.rename.inplace.MemberInplaceRenamer" at InplaceRefactoring.buildTemplateAndStart()KT-17489Refactor / Inline Property: cannot inline val with the following plusAssignKT-17571Refactor / Move warns about using private/internal class from Java, but this is not related to the moveKT-17622Refactor / Inline Function loses type argumentsKT-18034Copy Class refactoring replaces all usages of the class with the new one!KT-18076Refactor / Rename on alias of Java class suggests to select between refactoring handlersKT-18096Refactor / Rename on import alias usage of a class member element tries to rename the element itselfKT-18098Refactor / Copy can't generate proper import if original code uses import alias of java memberKT-18135Refactor: no Problems Detected for Copy/Move source using platform type to another platform's moduleKT-18200Refactor / Copy is enabled for Java source selected with Kotlin file, but not for Java source selected with Kotlin classKT-18241Refactor / Copy (and Move) fails for chain of lambdas and invoke()'s with IllegalStateException: "No selector for PARENTHESIZED" at KtSimpleNameReference.changeQualifiedName()KT-18325Renaming a parameter name in one implementation silently rename it in all implementationsKT-18390Refactor / Copy called for Java class opens only Copy File dialogKT-18699Refactor / Copy, Move loses necessary parenthesesKT-18738Misleading quick fix message for an 'open' modifier on an interface memberKT-19130Refactor / Inline val: "Show inline dialog for local variables" setting is ignored
JavaScript
Performance Improvements
KT-18331JS: compilation performance degrades fast when inlined nested labels are used
Fixes
KT-4078JS sourcemaps should contain relative path. The relative base & prefix should be set from project/module preferencesKT-8020JS: String? plus operator crashes on runtimeKT-13919JS: Source map weirdnessKT-15456JS: inlining doesn't work for array constructor with size and lambdaKT-16984KotlinJS - 1 > 2 > false causes unhandled javascript exceptionKT-17285JS: wrong result when call function with default parameter overridden by delegation by function from another interfaceKT-17445JS: minifier for Kotlin JS appsKT-17476JS: Some symbols in identifiers compile, but are not legalKT-17871JS: spread vararg call doesn't work on functions imported with @JsModuleKT-18027JS: Illegal symbols are possible in backticked labels, but cause crash in runtime and malformed js codeKT-18032JS: Illegal symbols are possible in backticked package names, but cause crash in runtime and malformed js codeKT-18169JS: reified generic backticked type name containing non-identifier symbols causes malformed JS and runtime crashKT-18187JS backend does not copy non-abstract method of interface to implementing class in some casesKT-18201JS backend generates wrong code for inline function which calls non-inline function from another moduleKT-18652JS: Objects from same package but from different libraries are incorrectly accessed
Libraries
KT-18526Small typo in documentation for kotlin-stdlib / kotlin.collections / retainAllKT-18624JS: Bad return type for Promise.allKT-18670Incorrect documentation of MutableMap.valuesKT-18671Provide implementation for CoroutineContext.Element functions.
Reflection
KT-15222Support reflection for local delegated propertiesKT-14094IllegalAccessException when try to get members annotated by private annotation with parameterKT-16399Embedded Tomcat fails to load Class-Path: kotlin-runtime.jar from kotlin-reflect-1.0.6.jarKT-16810Do not include incorrect ExternalOverridabilityCondition service file into kotlin-reflect.jarKT-18404“KotlinReflectionInternalError: This callable does not support a default call” when function or constructor has more than 32 parametersKT-18476KClass<*>.superclasses does not contain Any::classKT-18480Kotlin Reflection unable to call getter of protected read-only val with custom getter from parent class
Tools
KT-18245NoArg: IllegalAccessError on instantiating sealed class child via Java reflectionKT-18874Crash during compilation after switching to 1.1.3-release-IJ2017.2-2KT-19047Private methods are final event if used with the all-open-plugin.
Tools. CLI
KT-17297Report error when CLI compiler is not being run under Java 8+KT-18599Support -Xmodule-path and -Xadd-modules arguments for modular compilation on Java 9KT-18794kotlinc-jvm prints an irrelevant error message when a JVM Home directory does not existKT-3045Report error instead of failing with exception on "kotlinc -script foo.kt"KT-18754Rename CLI argument "-module" to "-Xbuild-file"KT-18927run kotlin app crashes eclipse
Tools. Gradle
KT-10537Gradle plugin doesn't pick up changed project.buildDirKT-17031JVM crash on in-process compilation in Gradle with debugKT-17035Gradle Kotlin Plugin can not compile tests calling source internal fields/variables if compileJava dumps classes to a different directory and then copied classes are moved to sourceSets.main.output.classesDir by a different taskKT-17197Gradle Kotlin plugin does not wire task dependencies correctly, causing compilation failuresKT-17618Pass freeCompilerArgs to compiler unchangedKT-18262kotlin-spring should also open @SpringBootTest classesKT-18647Kotlin incremental compile cannot be disabled.KT-18832Java version parsing error with Gradle Kotlin plugin + JDK 9
Tools. J2K
KT-10762J2K removes empty lines from Doc-commentsKT-13146J2K goes into infinite loop with anonymous inner class that references itselfKT-15761Converting Java to Kotlin corrupts string which includes escaped backslashKT-16133Converting switch statement inserts dead code (possibly as a false positive for fall-through)KT-16142Kotlin Konverter produces empty line in KdocKT-18038Java to Kotlin converter messes up empty lines while converting from JavaDoc to KDocKT-18051Doesn't work the auto-convert Java to Kotlin in Android Studio 3.0KT-18141J2K changes semantic when while does not have a bodyKT-18142J2K changes semantics whenifdoes not have a bodyKT-18512J2K Incorrect null parameter conversion
Tools. JPS
KT-14848JPS: invalid compiler argument causes exception (see also EA-92062)KT-16057Provide better error message when the same compiler argument is set twiceKT-19155IllegalArgumentException: Unsupported kind: PACKAGE_LOCAL_VARIABLE_LIST in incremental compilation
Tools. Maven
KT-18022kotlin maven plugin - adding dependencies overwrites arguments.pluginClassPath preventing kapt goal from runningKT-18224Maven compilation with JDK 9 fails with InaccessibleObjectException
Tools. REPL
KT-5620REPL: Support destructuring declarationsKT-12564Kotlin REPL Doesn't Perform Many ChecksKT-15172REPL: function declarations that contain empty lines throw errorKT-18181REPL: support non-headless execution for Swing codeKT-18349REPL: do not show warnings when there are errors
Tools. kapt
KT-18682Kapt: Anonymous class types are not rendered properly in stubsKT-18758Kotlin 1.1.3 / Kapt fails with gradleKT-18799Kapt3, IC: Kapt does not generate annotation value for constant values in documented typesKT-19178Kapt: Build dependencies from 'kapt' configuration should go into the 'kaptCompile' task dependenciesKT-19179Kapt: Gradle silently skips 'kotlinKapt' task sometimesKT-19211Kapt3: Generated classes output is not synchronized with Java classes output in pure Java projects (Gradle 4+)
1.1.3-2
Fixes
- Noarg compiler plugin reverted to 1.1.2 behavior: by default, it will not run any initialization code
from the generated default constructor. If you want to run initializers, you need to enable
the corresponding option as described in the documentation.
Note that if a @noarg class has initializers that depend on constructor parameters, you will get incorrect
compiler behavior, so you shouldn't enable this option if you have such classes in your project.
This resolves
KT-18667andKT-18668. KT-18689Incorrect bytecode generated when passing a bound member reference to an inline function with default argument valuesKT-18377Syntax error while generating kapt stubsKT-18411Slow debugger step-in into inlined functionKT-18687Deadlock in resolve with Kotlin 1.1.3KT-18726Frequent UI hangs in 2017.2 EAPs
1.1.3
Android
New Features
KT-12049Kotlin Lint: "Missing Parcelable CREATOR field" could suggest "Add implementation" quick fixKT-16712Show warning in IDEA when using Java 1.8 api in AndroidKT-16843Android: provide gutter icons for resources like colors and drawablesKT-17389Implement Intention "Add Activity / BroadcastReceiver / Service to manifest"KT-17465Add intentions Add/Remove/Redo parcelable implementation
Fixes
KT-14970ClassCastException: butterknife.lint.LintRegistry cannot be cast to com.android.tools.klint.client.api.IssueRegistryKT-17287Configure kotlin in Android Studio: don't show menu Choose Configurator with single choiceKT-17288Android Studio: please remove menu item Configure Kotlin (JavaScript) in ProjectKT-17289Android Studio: Hide "Configure Kotlin" balloon if Kotlin is configured from a kt file bannerKT-17291Android Studio 2.4: Cannot get property 'metaClass' on null object error after Kotlin configuringKT-17610"Unknown reference: kotlinx"
Compiler
New Features
KT-11167Support compilation against JRE 9KT-17497Warn about redundant else branch in exhaustive when
Performance Improvements
KT-7931Optimize iteration over strings/charsequences on JVMKT-10848Optimize substitution of inline function with default parametersKT-12497Optimize inlined bytecode for functions with default parametersKT-17342Optimize control-flow for case of many variablesKT-17562Optimize KtFile::isScript
Fixes
KT-4960Redeclaration is not reported for type parameters of interfacesKT-5160No warning when a lambda parameter hides a variableKT-5246is check fails on cyclic type parameter boundsKT-5354Wrong label resolution when label name clash with fun nameKT-7645Prohibit default value forcatch-block parameterKT-7724Can never import private memberKT-7796Wrong scope for default parameter value resolutionKT-7984Unexpected "Unresolved reference" in a default value expression in a local functionKT-7985Unexpected "Unresolved reference to a type parameter" in a default value expression in a local functionKT-8320It should not be possible to catch a type parameter typeKT-8877Automatic labeling doesn't work for infix callsKT-9251Qualified this does not work with labeled function literalsKT-9551False warning "No cast needed"KT-9645Incorrect inspection: No cast NeededKT-9986'null as T' should be unchecked castKT-10397java.lang.reflect.GenericSignatureFormatError when generic inner class is mentioned in function signatureKT-11474ISE: Requested A, got foo.A in JavaClassFinderImpl on Java file with package not matching directoryKT-11622False "No cast needed" when ambiguous call because of smart castKT-12245Code with annotation that has an unresolved identifier as a parameter compiles successfullyKT-12269False "Non-null type is checked for instance of nullable type"KT-12683A problem withisoperator and non-reified type-parametersKT-12690USELESS_CAST compiler warning may break code when fix is appliedKT-13348Report useless cast on safe cast from nullable type to the same not null typeKT-13597No check for accessing final field in local object in constructorKT-13997Incorrect "Property must be initialized or be abstract" error for property with external accessorsKT-14381Possible val reassignment not detected inside init blockKT-14564java.lang.VerifyError: Bad local variable typeKT-14801Invoke error message if nested class has the same name as a function from base classKT-14977IDE doesn't warn about checking null value of variable that cannot be nullKT-15085Label and function naming conflict is resolved in unintuitive wayKT-15161False warning "no cast needed" for array creationKT-15480Cannot destruct a list when "if" has an "else" branchKT-15495Internal typealiases in the same module are inaccessible on incremental compilationKT-15566Object member imported in file scope used in delegation expression in object declaration should be a compiler errorKT-16016Compiler failure with NO_EXPECTED_TYPEKT-16426Return statement resolved to function instead of property getterKT-16813Anonymous objects returned from private-in-file members should behave as for private class membersKT-16864Local delegate + ad-hoc object leads to CCEKT-17144Breakpoint insidewhenKT-17149Incorrect warning "Kotlin: This operation has led to an overflow"KT-17156No re-parse after lambda was converted to blockKT-17318Typo in DSL Marker messagecantKT-17384break/continue expression in inlined function parameter argument causes compilation exceptionKT-17457Suspend + LongRange couldn't transform method node issue in Kotlin 1.1.1KT-17479val reassign is allowed via explicit this receiverKT-17560Overload resolution ambiguity on semi-valid class-files generated by ScalaKT-17572try-catch expression in inlined function parameter argument causes compilation exceptionKT-17573try-finally expression in inlined function parameter argument fails with VerifyErrorKT-17588Compiler error while optimizer tries to get rid of captured variableKT-17590conditional return in inline function parameter argument causes compilation exceptionKT-17591non-conditional return in inline function parameter argument causes compilation exceptionKT-17613'this' expression referring to deprecated class instance is highlighted as deprecated in IDEKT-18358Keep smart pointers instead of PSI elements in JavaElementImpl and its descendants
IDE
New Features
KT-7810Separate icon for abstract classKT-8617Recognize TODO method usages and highlight them same as TODO-commentKT-12629Add rainbow/semantic-highlighting for local variablesKT-14109support parameter hints in idea pluginKT-16645Support inlay type hints for implicitly typed vals, properties, and functionsKT-17807Add Smart Enter processor for object expessions
Performance Improvements
KT-16995Typing during in-place refactorings is impossibly laggyKT-17331Frequent long editor freezesKT-17383Slow editing in Kotlin files If breadcrumbs are enabled in module with many dependenciesKT-17495Much time spent in LibraryDependenciesCache.getLibrariesAndSdksUsedWith
Fixes
KT-7848When you paste text into a string literal special symbols should be escapedKT-7954'Go to symbol' doesn't show containing declaration for local symbolsKT-9091Sometimes backticks of the method name with spaces are highlighted with rose backgroundKT-10577Refactor / Move Kotlin + Java files adds wrong import in very specific caseKT-12856Import fold region is not updated to include imports added while editing fileKT-14161Navigate to symbol doesn't see local named functionsKT-14601Formatter inserts unnecessary indent before 'else'KT-14639Incorrect name of code style setting: Align in columns 'case' branchesKT-15029"Go to symbol" action doesn't find properties declared in primary constructorsKT-15255Move cursor to a better place when creating a new Kotlin fileKT-15273Kotlin IDE plugin addsimport java.lang.Stringwith "Optimize Imports", making project brokenKT-16159Wrong "Constructor call" highlighting if operator is called on newly created objectKT-16392Gradle/Maven java module: Add framework support/ Kotlin (Java or JavaScript) adds nothingKT-16423Show expression type doesn't work when selecting from the middle of expression with "Expand Selection"KT-16635Do not show kotlin-specific live templates macros for all context typesKT-16755No "Is sublassed by" icon for sealed classKT-16775Rewrite at slice CLASS key: OBJECT_DECLARATION while writing code in IDEKT-16803Suspending iteration is not marked in the gutter by IDEA as suspending invocationKT-17037Editor suggests to importEmptyCoroutineContext.plusfor any unresolved+KT-17046Kotlin facet, Compiler plugins: last line is shown empty when not selectedKT-17088Settings: Kotlin Compiler: "Destination directory" should be enabled if "Copy library runtime files" is on on the dialog openingKT-17094Kotlin facet, additional command line parameters dialog: please provide a titleKT-17138Configure Kotlin in Project: Choose Configurator popup: names could be unifiedKT-17145Kotlin facet: IllegalArgumentException on attempt to show settings common for several javascript kotlin facets with different moduleKindKT-17223Absolute path to Kotlin compiler plugin in IMLKT-17293Project Structure dialog is opened too slow for a project with a lot of empty gradle modulesKT-17304IDEA shows wrong type for expressionsKT-17439Kotlin: 'autoscroll from source' doesn't work in Structure viewKT-17448Regression: Sample ResolveKT-17482Set jvmTarget to 1.8 by default when configuring a project with JDK 1.8KT-17492-jvm-target is ignored by IntelliJKT-17505LazyLightClassMemberMatchingError from collection implementationKT-17517Compiler options specified as properties are not handled by Maven importerKT-17521Quickfix to enable coroutines should work for Maven projectsKT-17525IDE: KNPE at KotlinAddImportActionKt.createSingleImportActionForConstructor() on invalid reference to inner class constructorKT-17578Throwable: "Reported element PsiIdentifier:AnnotationConfiguration is not from the file 'PsiFile:InSource.kt' the inspection 'ImplicitSubclassInspection'"KT-17638ISE in KotlinElementDescriptionProvider.renderShortKT-17698Unknown library format - prevents IDEA from configuring Kotlin JSKT-17714UAST inspection on non-physical elementKT-17722IntelliJ plugin uses wrong JVM target when Kotlin Facet is not configuredKT-17770Kotlin IntelliJ plugin fails to re-index Gradle script classpath after change to thepluginsblockKT-17777Logger$EmptyThrowable: "Facet Kotlin (app) [kotlin-language] not found" at FacetModelImpl.removeFacet()KT-17810Exception from unused import inspection leads to code analysis hangsKT-17821In Kotlin's plugin KotlinJsMetadataVersionIndex loads file with VfsUtilCore.loadTextKT-17840Show expression type onthisshows bogus disambiguationKT-17845Searching for usages of override property in primary constructor doesn't suggest base property searchKT-17847Kotlin facet: strange warning if API version = 1.2KT-17857Java should see classes affected by "allopen" plugin as openKT-17861Setting 'kotlin.experimental.coroutines "enable"' doesn't work for Android projectsKT-17875New Project/Module with Kotlin: on attempt to use libraries from plugin IDE suggests to rewrite themKT-17876New Project/Module with Kotlin: with "Copy to" option only part of jars are copiedKT-17899Navigate to symbol: vararg signatures are indistinguishable from non-vararg onesKT-18070KtLightModifierList.hasExplicitModifier("default") is true for interface method with body
IDE. Completion
New Features
KT-11250Auto-completion for convention function names in 'operator fun' definitionsKT-12293Autocompletion should proposelateinit varin addition tolateinitKT-13673Add 'companion { ... }' code completion opsion
Performance Improvements
KT-10978Kotlin + JOOQ + Intellij performance is unusableKT-16715Typing is very slow since 1.1KT-16850UI freeze for several seconds during inserting selected completion variant
Fixes
KT-13524Completing the keyword 'constructor' before a primary constructor wrongly inserts parenthesesKT-14665No completion for "else" keywordKT-15603Annoying completion when making a primary constructor privateKT-16161Completion of 'onEach' inserts unneeded angular bracketsKT-16856Code completion optimization
IDE. Debugger
KT-15823Breakpoints not work inside crossinline from init of object passed into collectionKT-15854Debugger not able to evaluate internal member functionsKT-16025Step into suspend functions stops at the function endKT-17295Can't stop in kotlin.concurrent.timer lambda parameter
IDE. Inspections and Intentions
New Features
KT-10981Quickfix for INAPPLICABLE_JVM_FIELD to replace with 'const' when possibleKT-14046Add intention to add inline keyword if a function has parameter with noinline and/or crossinline modifierKT-14137Add intention to convert top level val with object expression to objectKT-15903QuickFix to add/remove suspend in hierarchiesKT-16786Intention to add "open" modifier to a non-private method or property in an open classKT-16851Quickfix adding qualifier@callto unallowed 'return' in closuresKT-17053Inspection to detect use of callable reference as a lambda bodyKT-17054Intention/ inspection to convert 'if' with 'is' check to 'as?' with safe callKT-17191Intention to name anonymous (_) parameterKT-17221Inspection for recursive calls in property accessorsKT-17520Quickfix to update language/API version should work for Maven projectsKT-17650Add quickfix inserting 'lateinit' modifier for not-initialized propertyKT-17660Inspection: data class copy without named argument(s)
Fixes
KT-10211"Replace infix call with ordinary call" appears both as a quickfix and as an intention in the pop-upKT-11003Invalid quickfix in companion object for open propertiesKT-12805False positive redundant semicolon after while without block expressionKT-14335Unexpected range of "convert lambda to reference" intentionKT-14435"Use destructuring declaration" should be available as intention even without usagesKT-14443IDEA intention suggest to make a method in an interface finalKT-14820Convert function to property shouldn't insert explicit type if it was inferred previouslyKT-15076Replace if with elvis inspection should not be reported in some complex casesKT-15543"Convert receiver to parameter" refactoring breaks codeKT-15942"Convert to secondary constructor" intention is available for data classKT-16136Wrong type parameter variance suggested if type parameter is used in nested anonymous objectKT-16339Incorrect warning: 'protected' visibility is effectively 'private' in a final classKT-16577"Redundant semicolon" is not reported for semicolon after package statement in file with no importsKT-17079Kotlin: Bad conversion of double comparison to range check if bounds have mixed typesKT-17372Specify explicit lambda signature handles anonymous parameters incorrectlyKT-17404Editor: attempt to pass type parameter as reified argument causes AE "Classifier descriptor of a type should be of type ClassDescriptor" at DescriptorUtils.getClassDescriptorForTypeConstructor()KT-17408"Convert to secondary constructor" intention is available for annotation parametersKT-17503Intention "To raw string literal" should handle string concatenationsKT-17599"Make primary constructor internal" intention is available for annotation classKT-17600"Make primary constructor private" intention is available for annotation classKT-17707"Final declaration can't be overridden at runtime" inspection reports Kotlin classes non final due to compiler pluginKT-17708"Move to class body" intention is available for annotation parametersKT-17762'Convert to range' intention generates inequivalent code for doubles
IDE. Refactorings
Performance Improvements
KT-17234Refactor / Inline on library property is rejected after GUI freeze for a whileKT-17333KotlinChangeInfo retains 132MB of the heap
Fixes
KT-8370"Can't move to original file" should not be an errorKT-8930Refactor / Move preivew: moved element is shown as reference, and its file as subjectKT-9158Refactor / Move preview mentions the package statement of moved class as a usageKT-13192Refactor / Move: to another class: "To" field code completion suggests facade and Java classesKT-13466Refactor / Move: class to upper level: the package statement is not updatedKT-15519KDoc comments for data class values get removed by Change SignatureKT-17211Refactor / Move several files: superfluous FQN is inserted into reference to same file's elementKT-17213Refactor / Inline Function: parameters of lambda as call argument turn incompilableKT-17272Refactor / Inline Function: unused String literal in parameters is kept (while unsed Int is not)KT-17273Refactor / Inline Function: PIEAE: "Element: class org.jetbrains.kotlin.psi.KtCallExpression because: different providers" at PsiUtilCore.ensureValid()KT-17296Refactor / Inline Function: UOE at ExpressionReplacementPerformer.findOrCreateBlockToInsertStatement() for call of multi-statement function in declarationKT-17330Inline kotlin function causes an infinite loopKT-17395Refactor / Inline Function: arguments passed to lambda turns code to incompilableKT-17496Refactor / Move: calls to moved extension function type properties are updated (incorrectly)KT-17515Refactor / Move inner class to another class, Move companion object: disabled in editor, but available in Move dialogKT-17526Refactor / Move: reference to companion member gets superfluous companion name in certain casesKT-17538Refactor / Move: moving file with import alias removes alias usage from codeKT-17545Refactor / Move: false Problems Detected on moving class using parent's protected class, objectKT-18018F5 (for Copy) does not work for Kotlin files anymoreKT-18205Moving multiple classes causes imports to be converted to fully qualified class names
Infrastructure
KT-14988Support running the Kotlin compiler on Java 9KT-17112IncompatibleClassChangeError on invoking Kotlin compiler daemon on JDK 9
JavaScript
Fixes
KT-12926JS: use # instead of @ when linking to sourcemap from generated codeKT-13577Double.hashCode is zero for big numbersKT-15135JS: support friend modulesKT-15484JS: (node): println with object /number argument leads to "TypeError: Invalid data, chunk must be a string or buffer, not object/number"KT-16658JS: Suspend function with default param value in interfaceKT-16717KotlinJs - copy() on data class doesn't work with when there is a secondary constructorKT-16745JS: initialize enum fields before calling companion objects's initializerKT-16951JS: coroutine suspension point is not inserted when inlining suspend function with tail call to another suspend functionKT-16979Kotlin.js : Intellij test and productions sources produce a AMD module with the same nameKT-17067JS: suspendCoroutine not working as expectedKT-17219Hexadecimal literals in js(...) argument are replaced by wrong decimal constantsKT-17281JS: wrong code generated for a recursive call in suspend functionKT-17446JS: incorrect code generated for call tosuspendCoroutineOrReturnwhen the same function calls another suspend functionKT-17540Incorrect inlining optimization ofalso/applyfunctionKT-17700Wrong code generated for 'str += (nullableChar ?: break)'KT-17966JS: Char literal inside of string template
Libraries
KT-17453Array iterators throw IndexOutOfBoundsException instead of NoSuchElementExceptionKT-17635Document String#toIntOfNull may throw an exceptionKT-17686takeLast(n) incorrectly performs drop(n) for Lists without random accessKT-17704Update JavaDoc for ReentrantReadWriteLock.write to put more stress on the fact that to upgrade to write lock, read lock is first released.KT-17853JS: Confusing parameter names in 'Math.atan2`KT-18092Issue using kotlin-reflect with proguard: missing annotations Mutable and ReadOnlyKT-18210JS String::match(regex) should have nullable return type
Reflection
KT-17055NPE in hashCode and equals of kotlin.jvm.internal.FunctionReference (on local functions)KT-17594Cache the result of val Class.kotlin: KClassKT-18494KNPE from Kotlin reflection (sometimes) in UtilKt.toJavaClass
Tools
KT-16692No-Arg-Constructor plugin should generate code to initialize delegates
Tools. CLI
KT-17696Allow kotlinc to take friend modules as .jar filesKT-17697Allow kotlinc to take .java files as argumentsKT-9370not possible to pass an argument that starts with "-" to a script using kotlincKT-17100"kotlin" launcher script: do not add current working directory to classpath if explicit "-classpath" is specifiedKT-17140Warning "classpath entry points to a file that is not a jar file" could just be disabledKT-17264Change the format of advanced CLI arguments ("-X...") to require value after "=", not a whitespaceKT-18180Modules not exported by java.se are not readable when compiling against JRE 9
Tools. Gradle
KT-15151Kapt3: Support incremental compilation of Java stubsKT-16298Gradle: IOException "Parent file doesn't exist:/.../artifact-difference.tab.len" on non-incremental clean after incremental buildKT-17681Support the new API of Android Gradle plugin (2.4.0+)KT-17936Circular dependency between gradle tasks dataBindingExportBuildInfoDebug and compileDebugKotlinKT-17960Improve test of memory leak with Gradle daemonKT-18047Gradle kotlin options should use unset value as default for languageVersion and apiVersion
Tools. J2K
KT-16754J2K: Apply quick-fixes from EDT thread onlyKT-16816Java To Kotlin bug: if + chained assignment doesn't include bracketsKT-17230J2K DeadlockKT-17712Exception in J2K during InlineCodegen convertion: com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to com.intellij.psi.PsiJavaFile
Tools. JPS
KT-16568modulesWhoseInternalsAreVisible in ModuleDependencies are not filled in for JS projectsKT-17387When compiling in the IDE, progress tracker says "configuring the compilation environment" when it clearly isn'tKT-17665JPS: Kotlin: The '-d' option with a directory destination is ignored because '-module' is specifiedKT-17801Unresolved supertypes from JRE on JDK 9 in JPS
Tools. Maven
KT-17093Import from maven: please provide a special tag for coroutine optionKT-10028Support parallel builds in mavenKT-15050Random build failures using maven 3 (multi-thread) + bambooKT-15318Intermitent Kotlin compilation errorsKT-16283Maven compiler plugin warns, "Source root doesn't exist"KT-16743Update configuration options in Kotlin Maven pluginKT-16762Maven: JS compiler option main is missing
Tools. REPL
KT-5822Exception on package directive in REPLKT-10060REPL: Cannot execute more than 255 linesKT-17365REPL crash when referencing a variable whose definition threw an exception
Tools. kapt
KT-17245Kapt: Javac compiler arguments can't be specified in GradleKT-17418"The following options were not recognized by any processor: '[kapt.kotlin.generated]'" warning from Javac shouldn't be shown even if no processor supports the generated annotationKT-17456kapt3: NoClassDefFound com/sun/tools/javac/util/ContextKT-17567Kapt (1.1.2-eap-77) generates invalid Java stub for internal classKT-17620Kapt3 IC: avoid running AP when API is not changedKT-17959Kapt3 doesn't preserve method parameter names for abstract methodsKT-17999Cannot use KAPT3 1.1.2-4 in Android Studio java libs (null TypeCastException to WrappedVariantData<*> on Gradle Sync)
1.1.2
Compiler
Front-end
KT-16113Support destructuring parameters of suspend lambda with suspend componentXKT-3805Report error on double constants out of rangeKT-6014Wrong ABSTRACT_MEMBER_NOT_IMPLEMENTED for toString implemented by delegationKT-8959Missing diagnostic when trying to call inner class constructor qualificated with outer class nameKT-12477Do not report 'const' inapplicability on property of error typeKT-11010NDFDE for local object with type parametersKT-12881Descriptor wasn't found for declaration TYPE_PARAMETERKT-13342Unqualified super call should not resolve to a method of supertype overriden in another supertypeKT-14236Allow to use emptyArray in annotationKT-14536IllegalStateException: Type parameter T not found for lazy class Companion at LazyDeclarationResolver visitTypeParameterKT-14865Throwable exception at KotlinParser parseLambdaExpression on typing { inside a string inside a lambdaKT-15516Compiler error when passing suspending extension-functions as parameter and casting stuff to AnyKT-15802Java constant referenced using subclass is not considered a constant expressionKT-15872Constant folding is mistakenly triggered for user functionKT-15901Unstable smart cast target after type checkKT-15951Callable reference to class constructor from object is not resolvedKT-16232Prohibit objects inside inner classesKT-16233Prohibit inner sealed classesKT-16250Import methods from typealias to object throws compiler exception "Should be class or package: typealias"KT-16272Missing deprecation and SinceKotlin-related diagnostic for variable as function callKT-16278Public member method can't be used for callable reference because of private static with the same nameKT-16372'mod is deprecated' warning should not be shown when language version is 1.0KT-16484SimpleTypeImpl should not be created for error type: ErrorScopeKT-16528Error: Loop in supertypes when using Java classes with type parameters having raw interdependent supertypesKT-16538No smart cast when equals is presentKT-16782Enum entry is incorrectly forbidden on LHS of '::' with language version 1.0KT-16815Assertion error from compiler: unexpected classifier: class DeserializedTypeAliasDescriptorKT-16931Compiler cannot see inner class when for outer class exist folder with same nameKT-16956Prohibit using function calls inside default parameter values of annotationsKT-8187IAE on anonymous object in the delegation specifier listKT-8813Do not report unused parameters for anonymous functionsKT-12112Do not consider nullability of error functions and properties for smart castsKT-12276No warning for unnecessary non-null assertion after method call with generic return typeKT-13648Spurious warning: "Elvis operator (?:) always returns the left operand of non-nullable type (???..???)"KT-16264Forbid usage of _ without backticksKT-16875Decrease severity of unused parameter in lambda to weak warningKT-17136ModuleDescriptorImpl.allImplementingModules should be evaluated lazilyKT-17214Do not show warning about useless elvis for error function typesKT-13740Plugin crashes at accidentally wrong annotation argument typeKT-17597Pattern::compile resolves to private instance method in 1.1.2
Back-end
KT-8689NoSuchMethodError on local functions inside inlined lambda with variables captured from outer contextKT-11314Abstract generic class with Array<Array> parameter compiles fine but fails at runtime with "Bad type on operand stack" VerifyErrorKT-12839Two null checks are generated when manually null checking platform typeKT-14565Cannot pop operand off empty stack when compiling enum classKT-14566Make kotlin.jvm.internal.Ref$...Ref classes serializableKT-14567VerifyError: Bad type on operand stack (generics with operator methods)KT-14607Incorrect class name "ava/lang/Void from AsyncTask extension functionKT-14811Unecessary checkcast generated in parameterized functions.KT-14963unnecessary checkcast java/lang/ObjectKT-15105Comparing Chars in a Pair results in ClassCastExceptionKT-15109Subclass from a type alias with named parameter in constructor will produce compiler exceptionKT-15192Compiler crashes on certain companion objects: "Error generating constructors of class Companion with kind IMPLEMENTATION"KT-15424javac crash when calling Kotlin function having generic varargs with default and @JvmOverloadsKT-15574Can't instantiate Array through Type AliasKT-15594java.lang.VerifyError when referencing normal getter in @JvmStatic getters inside an objectKT-15759tailrec suspend function fails to compileKT-15862Inline generic functions can unexpectedly box primitivesKT-15871Unnecessary boxing for equality operator on inlined primitive valuesKT-15993Property annotations are stored in private fields and killed by obfuscatorsKT-15997Reified generics don't work properly with crossinline functionsKT-16077Redundant private getter for private var in a class within a JvmMultifileClass annotated fileKT-16194Code with unnecessary safe call contains redundant boxing/unboxing for primitive valuesKT-16245Redundant null-check generated for a cast of already non-nullable valueKT-16532Kotlin 1.1 RC - Android cross-inline synchronized won't runKT-16555VerifyError: Bad type on operand stackKT-16713Insufficient maximum stack sizeKT-16720ClassCastException during compilationKT-16732Type 'java/lang/Number' (current frame, stack[0]) is not assignable to 'java/lang/CharacterKT-16929VerifyErrorwhen using bound method reference on generic propertyKT-16412Exception from compiler when try call SAM constructor where argument is callable reference to nested class inside objectKT-17210Smartcast failure results in "Bad type operand on stack" runtime error
Tools
KT-15420Maven, all-open plugin: in console the settings of all-open are always reported as emptyKT-11916Provide incremental compilation for MavenKT-15946Kotlin-JPA plugin support for @EmbeddableKT-16627Do not make private members open in all-open pluginKT-16699Script resolving doesn't work with custom templates located in an external jarKT-16812import in .kts file does not worksKT-16927UsingKotlinJsr223JvmLocalScriptEngineFactorycauses multiple warningsKT-15562Service is dyingKT-17125> Failed to apply plugin [id 'kotlin'] > For input string: “”
Kapt
KT-12432Dagger 2 does not generate Component which was referenced from Kotlin file.KT-8558KAPT only works with service-declared annotation processorsKT-16753kapt3 generates invalid stubs when IC is enabledKT-16458kotlin-kapt / kapt3: "cannot find symbol" error for companion object with same name as enclosing classKT-14478Add APT / Kapt support to the maven pluginKT-14070Kapt3: kapt doesn't compile generated Kotlin files and doesn't use the "kapt.kotlin.generated" folder anymoreKT-16990Kapt3: java.io.File cannot be cast to java.lang.StringKT-16965Error:Kotlin: Multiple values are not allowed for plugin option org.jetbrains.kotlin.kapt:outputKT-16184AbstractMethodError in Kapt3ComponentRegistrar while compiling from IntelliJ 2016.3.4 using Kotlin 1.1.0-beta-38
Gradle
KT-15084Navigation into sources of gradle-script-kotlin doesn't workKT-16003Gradle Plugin Fails When Run From Jenkins On Multiple NodesKT-16585Kotlin Gradle Plugin makes using Gradle Java incremental compiler not workKT-16902Gradle plugin compilation on daemon fails on Linux ARMKT-14619Gradle: The '-d' option with a directory destination is ignored because '-module' is specifiedKT-12792Automatically configure standard library dependency and set its version equal to compiler version if not specifiedKT-15994Compiler arguments are not copied from the main compile task to kapt taskKT-16820Changing compileKotlin.destinationDir leads to failure in :copyMainKotlinClasses task due to an NPEKT-16917First connection to daemon after start timeouts when DNS is slowKT-16580Kotlin gradle plugin cannot resolve the kotlin compiler
Android support
KT-16624Implement quickfix "Add TargetApi/RequiresApi annotation" for Android api issuesKT-16625Implement quickfix "Surround with if (VERSION.SDK_INT >= VERSION_CODES.SOME_VERSION) { ... }" for Android api issuesKT-16840Kotlin Gradle plugin fails with Android Gradle plugin 2.4.0-alpha1KT-16897Gradle plugin 1.1.1 duplicates all main classes into Android instrumentation test APKKT-16957Android Extensions: Support Dialog classKT-15023Androidgradle installDebugAndroidTestfails unless you first callgradle assembleDebugAndroidTestKT-12769"Name for method must be provided" error occurs on trying to use spaces in method name in integration tests in AndroidKT-12819Kotlin Lint: False positive for "Unconditional layout inflation" when using elvis operatorKT-15116Kotlin Lint: problems in property accessors are not reportedKT-15156Kotlin Lint: problems in annotation parameters are not reportedKT-15179Kotlin Lint: problems inside local function are not reportedKT-14870Kotlin Lint: problems inside local class are not reportedKT-14920Kotlin Lint: "Android Lint for Kotlin | Incorrect support annotation usage" inspection does not report problemsKT-14947Kotlin Lint: "Calling new methods on older versions" could suggest specific quick fixesKT-12741Android Extensions: Enable IDE plugin only if it is enabled in the build.gradle fileKT-13122Implement '@RequiresApi' intention for android and don't report warning on annotated classesKT-16680Stack overflow in UAST containsLocalTypes()KT-15451Support "Android String Reference" folding in Kotlin filesKT-16132Renaming property provided by kotlinx leads to renaming another membersKT-17200Unable to build an android projectKT-13104Incorrect resource name in Activity after renaming ID attribute value in layout fileKT-17436Refactor | Rename android:id corrupts R.id references in kotlin codeKT-17255Kotlin 1.1.2 EAP is broken with 2.4.0-alpha3KT-17610"Unknown reference: kotlinx"
IDE
KT-6159Inline Method refactoringKT-4578Intention to move property between class body and constructor parameterKT-8568Provide a QuickFix to replace typeArray<Int>in annotation withIntArrayKT-10393Detect calls to functions returning a lambda from expression body which ignore the return valueKT-11393Inspection to highlight and warn on usage of internal members in other module from JavaKT-12004IDE inspection that destructuring variable name matches the other name in data classKT-12183Intention converting several calls with same receiver to 'with'/apply/runKT-13111Support bound references in lambda-to-reference intention / inspectionKT-15966Create quickfix for DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDEKT-16074Introduce a quick-fix adding noinline modifier for a value parameter of suspend function typeKT-16131Add quickfix for: Cannot access member: it is invisible (private in supertype)KT-16188Add create class quickfixKT-16258Add intention to add missing components to destructuring assignmentKT-16292Support "Reference to lambda" for bound referencesKT-11234Debugger won't hit breakpoint in nested lambaKT-12002Improve completion for closure parameters to work in more placesKT-15768It would be nice to show in Kotlin facet what compiler plugins are on and their optionsKT-16022Kotlin facet: provide UI to navigate to project settingsKT-16214Do not hide package kotlin.reflect.jvm.internal from auto-import and completion, inside package "kotlin.reflect"KT-16647Don't create kotlinc.xml if the settings don't differ from the defaultsKT-16649All Gradle related classes should be moved to optional dependency section of plugin.xmlKT-16800Autocomplete for closure with single arguments
Bug fixes
KT-16316IDE: don't show Kotlin Scripting section when target platform is JavaScriptKT-16317IDE: some fields stay enabled in an facet when use project settings was chosenKT-16596Hang in IntelliJ while scanning zipsKT-16646The flag to enable coroutines does not sync from gradle file in Android StudioKT-16788Importing Kotlin Maven projects results in invalid .imlKT-16827kotlin javascript module not recognized by gradle sync when an android module is presentKT-16848Regression: completion after dot in string interpolation expression doesn't work if there are no curly bracesKT-16888"Multiple values are not allowed for plugin option org.jetbrains.kotlin.android:package" when rebuilding projectKT-16980Accessing language version settings for a module performs runtime version detection on every access with no cachingKT-16991Navigate to receiver from this in extension functionKT-16992Navigate to lambda start from auto-generated 'it' parameterKT-12264AssertionError: Resolver for 'completion/highlighting in LibrarySourceInfo for platform JVM' does not know how to resolve ModuleProductionSourceInfoKT-13734Annotated element search is slowKT-14710Sample references aren't resolved in IDEKT-16415Dependency leakage with Kotlin IntelliJ plugin, using gradle-script-kotlin, and the gradle-intellij-pluginKT-16837Slow typing in Kotlin file because of ImportFixBaseKT-16926'implement' dependency is not transitive when importing gradle project to IDEAKT-17141Running test from gutter icon fails in AS 2.4 Preview 3KT-17162Plain-text Java copy-paste to Kotlin file results in exceptionKT-16714J2K: Write access is allowed from event dispatch thread onlyKT-14058Unexpected error MISSING_DEPENDENCY_CLASSKT-9275Unhelpful IDE warning "Configure Kotlin"KT-15279'Kotlin not configured message' should not be displayed while gradle sync is in progressKT-11828Configure Kotlin in Project: failure for Gradle modules without build.gradle (IDEA creates them)KT-16571Configure Kotlin in Project does not suggest just published versionKT-16590Configure kotlin warning popup after each sync gradleKT-16353Configure Kotlin in Project: configurators are not suggested for Gradle module in non-Gradle project with separate sub-modules for source setsKT-16381Configure Kotlin dialog suggests modules already configured with other platformsKT-16401Configure Kotlin in the project adds incorrect dependency kotlin-stdlib-jre8 to 1.0.x languageKT-12261Partial body resolve doesn't resolve anything in object literal used as an expression body of a methodKT-13013"Go to Type Declaration" doesn't work for extension receiver and implict lambda parameterKT-13135IDE goes in an infinite indexing loop if a .kotlin_module file is corruptedKT-14129for/iter postfix templates should be applied for string, ranges and mutable collectionsKT-14134Allow to apply for/iter postfix template to mapKT-14871Idea and Maven is not in sync with ModuleKind for Kotlin projectsKT-14986Disable postfix completion when typing package statementsKT-15200Show implementation should show inherited classes if a typealias to base class/interface is usedKT-15398Annotations find usages in annotation instance siteKT-15536Highlight usages: Class with primary constructor isn't highlighted when caret is on constructor invocationKT-15628Change error message if both KotlinJavaRuntime and KotlinJavaScript libraries are present in the module dependenciesKT-15947Kotlin facet: Target platform on importing from a maven project should be filled the same way for different artifactsKT-16023Kotlin facet: When "Use project settings" is enabled, respective fields should show values from the project settingsKT-16698Kotlin facet: modules created from different gradle sourcesets have the same module optionsKT-16700Kotlin facet: jdkHome path containing spaces splits into several additional args after importKT-16776Kotlin facet, import from maven: free arguments from submodule doesn't override arguments from parent moduleKT-16550Kotlin facet from Maven: provide error messages if additional command line parameters are set several timesKT-16313Kotlin facet: unify filling up information about included AllOpen/NoArg plugins on importing from Maven and GradleKT-16342Kotlin facet: JavaScript platform is not detected if there are 2 versions of stdlib in dependenciesKT-16032Kotlin code formatter merges comment line with non-comment lineKT-16038UI blocked on pasting java code into a kotlin fileKT-16062Kotlin breakpoint doesn't work in some lambda in Rider project.KT-15855Can't evaluate expression in @JvmStatic methodKT-16667Kotlin debugger "smart step into" fail on method defined in the middle of class hierarchyKT-16078Formatter puts empty body braces on different lines when KDoc is presentKT-16265Parameter info doesn't work with type alias constructorKT-14727Wrong samples for some postfix templates
Inspections / Quickfixes
KT-17002Make "Lambda to Reference" inspection off by defaultKT-14402Inspection "Use destructuring declaration" for lambdas doesn't work when parameter is of type PairKT-16857False "Remove redundant 'let'" suggestionKT-16928Surround with null check quickfix works badly in case of qualifierKT-15870Move quick fix of "Package name does not match containing directory" inspection: Throwable "AWT events are not allowed inside write action"KT-16128'Add label to loop' QF proposed when there's already a labelKT-16828Don't suggest destructing declarations if not all components are usedKT-17022Replace deprecated in the whole project may miss some usages in expression body
Refactorings, Intentions
KT-7516Rename refactoring doesn't rename related labelsKT-7520Exception when try rename label from usageKT-8955Refactor / Move package: KNPE at KotlinMoveDirectoryWithClassesHelper.postProcessUsages() with not matching package statementKT-11863Refactor / Move: moving referred file level elements to another package keeps reference to old FQNKT-13190Refactor / Move: no warning on moving class containing internal member to different moduleKT-13341Convert lambda to function reference intention is not available for object member callsKT-13755When (java?) class is moved redundant imports are not removedKT-13911Refactor / Move: "Problems Detected" dialog is not shown on moving whole .kt fileKT-14401Can't rename implicit lambda parameter 'it' when caret is placed right after the last characterKT-14483"Argument of NotNull parameter must be not null" in KotlinTryCatchSurrounder when using "try" postfix templateKT-15075KNPE in "Specify explicit lambda signature"KT-15190Refactor / Move: false Problems Detected on moving class using parent's protected memberKT-15250Convert anonymous object to lambda is shown when conversion not possible due implicit calls on thisKT-15339Extract Superclass is enabled for any element: CommonRefactoringUtil$RefactoringErrorHintException: "Superclass cannot be extracted from interface" at ExtractSuperRefactoring.performRefactoring()KT-15559Kotlin: Moving classes to different packages breaks references to companion object's propertiesKT-15556Convert lambda to reference isn't proposed for parameterless constructorKT-15586ISE during "Move to a separate file"KT-15822Move class refactoring leaves unused importsKT-16108Cannot rename class on the companion object referenceKT-16198Extract method refactoring should order parameters by first usageKT-17006Refactor / Move: usage of library function is reported as problem on move between modules with different library versionsKT-17032Refactor / Move updates references to not moved class from the same fileKT-11907Move to package renames file to temp.ktKT-16468Destructure declaration intention should be applicable for PairKT-16162IAE for destructuring declaration entry from KotlinFinalClassOrFunSpringInspectionKT-16556Move refactoring shows Refactoring cannot be performed warning.KT-16605NPE caused by Rename Refactoring of backing field when caret is after the last characterKT-16809Move refactoring fails badlyKT-16903"Convert to primary constructor" doesn't update supertype constructor call in supertypes list in case of implicit superclass constructor call
JS
KT-6627JS: test sources doesn't compile from IDEKT-13610JS: boxed Double.NaN is not equal to itselfKT-16012JS: prohibit nested declarations, except interfaces inside external interfaceKT-16043IDL: mark inline helper function as InlineOnlyKT-16058JS: getValue/setValue don't work if they are declared as suspendKT-16164JS: Bad getCallableRef in suspend functionKT-16350KotlinJS - wrong code generated when temporary variables generated for RHS of&&operationKT-16377JS: losing declarations of temporary variables in secondary constructorsKT-16545JS: ::class crashes at runtime for primitive types (e.g. Int::class, or Double::class)KT-16144JS: inliner can't find function called through inheritor ("fake" override) from another module
Reflection
KT-9453ClassCastException: java.lang.Class cannot be cast to kotlin.reflect.KClassKT-11254Make callable references Serializable on JVMKT-11316NPE in hashCode of KProperty object created for delegated propertyKT-12630KotlinReflectionInternalError on referencing some functions from stdlibKT-14731When starting application from test source root, kotlin function reflection fails in objects defined in sources
Libraries
KT-16922buildSequence/Iterator: Infinite sequence terminates prematurelyKT-16923Progression iterator doesn't throw after completionKT-16994Classify sequence operations as stateful/stateless and intermediate/terminalKT-9786String.trimIndent doc is misleadingKT-16572Add links to Mozilla Developer Network to kdocs of classes that we generate from IDLKT-16252IDL2K: Add ItemArrayLike interface implementation to collection-like classes
1.1.1
IDE
KT-16714J2K: Write access is allowed from event dispatch thread only
Compiler
KT-16801Accessors of@PublishedApiproperty gets mangledKT-16673Potentially problematic code causes exception when work with SAM adapters
Libraries
KT-16557CorrectSinceKotlin(1.1)for all declarations inkotlin.reflect.full
1.1.1-RC
IDE
KT-16481Kotlin debugger & bytecode fail on select statement blocks (IllegalStateException: More than one package fragment)
Gradle support
KT-15783Gradle builds don't use incremental compilation due to an error: "Could not connect to kotlin daemon"KT-16434Gradle plugin does not compile androidTest sources when Jack is enabledKT-16546Enable incremental compilation in gradle by default
Compiler
KT-16184AbstractMethodError in Kapt3ComponentRegistrar while compiling from IntelliJ using Kotlin 1.1.0KT-16578Fix substitutor for synthetic SAM adaptersKT-16581VerifyError when calling default value parameter with jvm-target 1.8KT-16583Cannot access private file-level variables inside a class init within the same file if a secondary constructor is presentKT-16587AbstractMethodError: Delegates not generated correctly for private interfacesKT-16598Incorrect error: The feature "bound callable references" is only available since language version 1.1KT-16621Kotlin compiler doesn't report an error if a class implements Annotation interface but doesn't implement annotationType methodKT-16441NoSuchFieldError: $$delegatedPropertieswhen delegating throughprovideDelegatein companion object
JavaScript support
- Prohibit function types with receiver as parameter types of external declarations
- Remove extension receiver for function parameters in
jQuerydeclarations
1.1
Compiler exceptions
KT-16411Exception from compiler when try to inline callable reference to class constructor inside objectKT-16412Exception from compiler when try call SAM constructor where argument is callable reference to nested class inside objectKT-16413When we create sam adapter for java.util.function.Function we add incorrect null-check for argument
Standard library
KT-6561Drop java.util.Collections package from js stdlibjavaClassextension property is no more deprecated due to migration problems
IDE
KT-16329Inspection "Calls to staic methods in Java interfaces..." always reports warning undependent of jvm-target
1.1-RC
Reflection
KT-16358Incompatibility between kotlin-reflect 1.0 and kotlin-stdlib 1.1 fixed
Compiler
Coroutine support
KT-15938Changed error message for calling suspend function outside of suspendable contextKT-16092Backend crash fixed: "Don't know how to generate outer expression" for destructuring suspend lambdaKT-16093Annotations are retained during reading the binary representation of suspend functionsKT-16122java.lang.VerifyError fixed in couroutines: (String, null, suspend () -> String)KT-16124Marked as UNSUPPORTED: suspension points in default parametersKT-16219Marked as UNSUPPORTED: suspend get/set, in/!in operators forKT-16145Beta-2 coroutine regression fixed (wrong code generation)
Kapt3
KT-15524Fix javac error reporting in Kotlin daemonKT-15721JetBrains nullability annotations are now returned from Element.getAnnotationMirrors()KT-16146Fixed work in verbose modeKT-16153Ignore declarations with illegal Java identifiersKT-16167Fixed compilation error with kapt arguments in build.gradleKT-16170Stub generator now adds imports for corrected error types to stubsKT-16176javac's finalCompiler log is now used to determine annotation processing errors
Backward compatibility
KT-16017More graceful error message for disabled featuresKT-16073Improved backward compatibility mode with version 1.0 on JDK dependent built-insKT-16094Compiler considers API availability when compiling language features requiring runtime supportKT-16171Fixed regression "Unexpected container error on Kotlin 1.0 project"KT-16199Do not import "kotlin.comparisons.*" by default in language version 1.0 mode
Various issues
KT-16225enumValues non-reified stub implementation references nonexistent method no moreKT-16291Smart cast works now when getting class of instanceKT-16380Show warning when running the compiler under Java 6 or 7
JavaScript backend
KT-16144Fixed inlining of functions called through inheritor ("fake" override) from another moduleKT-16158Error is not reported now when library path contains JAR file without JS metadata, report warning insteadKT-16160Companion object dispatch receiver translation fixed
Standard library
KT-7858Add extension functiontakeUnlessjavaClassextension property is deprecated, useinstance::class.javainstead- Massive deprecations are coming in JS standard library in
kotlin.domandkotlin.dom.buildpackages
IDE
Configuration issues
KT-15899Kotlin facet: language and api version for submodule setup for 1.0 are filled now as 1.0 tooKT-15914Kotlin facet works now with multi-selected modules in Project Settings tooKT-15954Does not suggest to configure kotlin for the module after each new kt-file creationKT-16157freeCompilerArgs are now imported from Gradle into IDEAKT-16206Idea no more refuses to compile a kotlin project defined as a maven projectKT-16312Kotlin facet: import from gradle: don't import options which are set implicitly alreadyKT-16325Kotlin facet: correct configuration after upgrading the IDE pluginKT-16345Kotlin facet: detect JavaScript if the module has language 1.0kotlin-js-librarydependency
Coroutine support
KT-16109Error fixed: The -Xcoroutines can only have one valueKT-16251Fix detection of suspend calls containing extracted parameters
Intention actions, inspections and quick-fixes
2017.1 compatibility
KT-15870"Package name does not match containing directory" inspection: fixed throwable "AWT events are not allowed inside write action"KT-15924Create Test action: fixed throwable "AWT events are not allowed inside write action"
Bug fixes
KT-14831Import statement and FQN are not added on converting lambda to reference for typealiasKT-15545Inspection "join with assignment" does not change now execution order for propertiesKT-15744Fix: intention to importsleepwrongly suggestsThread.sleepKT-16000Inspection "join with assignment" handles initialization with 'this' correctlyKT-16009Auto-import for JDK classes in .kts filesKT-16104Don't insert modifiers (e.g. suspend) before visibility
Completion
KT-16076Completion does not insert more FQN kotlin.text.StringKT-16088Completion does not insert more FQN forkotlinpackageKT-16110Keyword 'suspend' completion inside generic argumentsKT-16243Performance enhanced after variable of typeArrayList
Various issues
KT-15291'Find usages' now does not report property access as usage of getter method in Java class with parameterKT-15647Exception fixed: KDoc link to member of class from different package and moduleKT-16071IDEA deadlock fixed: when typing "parse()" in .kt fileKT-16149Intellij Idea 2017.1/Android Studio 2.3 beta3 and Kotlin plugin 1.1-beta2 deadlock fixed
Coroutine libraries
KT-15716Introduced startCoroutineUninterceptedOrReturn coroutine intrinsicKT-15718createCoroutine now returns safe continuationKT-16155Introduced createCoroutineUnchecked intrinsic
Gradle support
KT-15829Gradle Kotlin JS plugin: removed false "Duplicate source root:" warning for kotlin filesKT-15902JS: gradle task output is now considered as source set outputKT-16174Error fixed during IDEA-Gradle synchronization for Kotlin JSKT-16267JS: fixed regression in 1.1-beta2 for multi-module gradle projectKT-16274Kotlin JS Gradle unexpected compiler error / absolute path to output fileKT-16322Circlet project Gradle import issue fixed
REPL
KT-15861Use windows line separator in kotlin's JSR implementationKT-16126ProperjvmTargetfor REPL compilation
1.1-Beta2
Language related changes
KT-7897Do not require to call enum constructor for each entry if all parameters have default valuesKT-8985Support T::class.java for T with no non-null upper boundKT-10711Type inference works now on generics for callable referencesKT-13130Support exhaustive when for sealed treesKT-15898Cannot use type alias to qualify enum entryKT-16061Smart type inference on callable references in 1.1 mode only
Reflection
KT-8384Access to the delegate object for a KProperty
Compiler
Coroutine support
KT-15016VerifyError with coroutine: fix processing of uninitialized instancesKT-15527Coroutine compile error: wrong code generated for safe qualified suspension pointsKT-15552Accessor implementation of suspended function produces AbstractMethodErrorKT-15715Coroutine generate invalid invokeKT-15820Coroutine Internal Error regression with dispatcher + this@KT-15821Coroutine internal error regression: Could not inline method call applyKT-15824Coroutine iterator regression: Object cannot be cast to java.lang.BooleanKT-15827Show Kotlin Bytecode shows wrong bytecode for suspending functionsKT-15907Bogus error about platform declaration clash with private suspend functionsKT-15933Suspend getValue/setValue/provideDelegate do not work properlyKT-15935Private suspend function in file causes UnsupportedOperationException: Context does not have a "this"KT-15963Coroutine: runtime error if returned object "equals" does not like comparison to SUSPENDED_MARKERKT-16068Prohibit inline lambda parameters of suspend function type
Diagnostics
KT-1560Report diagnostic for a declaration of extension function which will be always shadowed by member functionKT-12846Forbid vararg of NothingKT-13227NO_ELSE_IN_WHEN in when by sealed class instance if is-check for base sealed class is usedKT-13355Type mismatch on inheritance is not reported on abstract classKT-15010Missing error on an usage of non-constant property in annotation default argumentKT-15201Compiler is complaining about when statement without null condition even if null is checked before.KT-15736Report an error on type alias expanded to a nullable type on LHS of a class literalKT-15740Report error on expression of a nullable type on LHS of a class literalKT-15844Do not allow to access primary constructor parameters from property with custom getterKT-15878Extension shadowed by member should not be reported for infix/operator extensions when member is non-infix/operatorKT-16010Do not highlight lambda parameters as unused in 1.0 compatibility mode
Kapt
KT-15675Kapt3 does not generate classes annotated with AutoValueKT-15697If an annotation with AnnotationTarget.PROPERTY is tagged on a Kotlin property, it breaks annotation processingKT-15803Kotlin 1.0.6 broke DaggerKT-15814Regression: Kapt is not working in 1.0.6 / 1.1-M04 / 1.1-BetaKT-15838kapt3 1.1-beta: KaptError: Java file parsing errorKT-158411.1-Beta + kapt3 fails to build the project with StackOverflowErrorKT-15915Kapt: Kotlin class target directory is cleared before compilation (and after kapt task)KT-16006Cannot determine if type is an error type during annotation processing
Exceptions / Errors
KT-8264Internal compiler error: java.lang.ArithmeticException: BigInteger: modulus not positiveKT-14547NoSuchElementException when compiling callable reference without stdlib in the classpathKT-14966Regression: VerifyError on access super implementation from delegateKT-15017Throwing exception in the end of inline suspend-functions lead to internal compiler errorKT-15439Resolved call is not completed for generic callable reference in if-expressionKT-15500Exception passing freeCompilerArgs to gradle pluginKT-15646InconsistentDebugInfoException when stepping overthrowKT-15726Kotlin compiles invalid bytecode for nested try-catch with returnKT-15743Overloaded Kotlin extensions annotates wrong parameters in javaKT-15868NPE when comparing nullable doubles for equalityKT-15995Can't build project with DataBinding using Kotlin 1.1: incompatible language versionKT-16047Internal Error: org.jetbrains.kotlin.util.KotlinFrontEndException while analyzing expression
Type inference issues
KT-10268Wrong type inference related to captured typesKT-11259Wrong type inference for Java 8 Stream.collect.KT-12802Type inference failed when irrelevant method reference is usedKT-12964Support type inference for callable references from parameter types of an expected function type
Smart cast issues
KT-13468Smart cast is broken after assignment of 'if' expressionKT-14350Make smart-cast work as it does in 1.0 when -language-version 1.0 is usedKT-14597When over smartcast enum is broken and breaks all other "when"KT-15792Wrong smart cast after y = x, x = null, y != null sequence
Various issues
KT-15236False positive: Null can not be a value of a non-null typeKT-15677Modifiers and annotations are lost on a (nullable) parenthesized typeKT-15707IDEA unable to parallel compile different projectsKT-15734Nullability is lost during expansion of a type aliasKT-15748Type alias constructor return type should have a corresponding abbreviationKT-15775Annotations are lost on value parameter types of a function typeKT-15780Treat Map.getOrDefault overrides in Java the same way as in 1.0.x compiler with language version 1.0KT-15794Refine backward compatibility mode for additional built-ins members from JDKKT-15848Implement additional annotation processing in theKotlinScriptDefinitionFromAnnotatedTemplatefor SamWithReceiver pluginKT-15875Operation has lead to overflow for 'mod' with negative first operandKT-15945Feature Request: Andrey Breslav to grow a beard.
JavaScript backend
Coroutine support
KT-15834JS: Local delegate in suspend functionKT-15892JS: safe call of suspend functions causes compiler to crash
Diagnostics
KT-14668Do not allow declarations in 'kotlin' package or subpackages in JSKT-15184JS: prohibit..operation withdynamicon left-hand sideKT-15253JS: no error when use class external class with JsModule in type context when compiling with plain module kindKT-15283JS: additional restrictions on dynamicKT-15961Could not implement external open class with function with optional parameter
Language feature support
KT-14035JS: support implementing CharSequenceKT-14036JS: use Int16 for Char when it possible and box to our Char otherwiseKT-14097Wrong code generated for enum entry initialization using non-primary no-argument constructorKT-15312JS: map kotlin.Throwable to JS ErrorKT-15765JS: support callable references on built-in and intrinsic functions and propertiesKT-15900JS: Support enum entry with empty initializer with vararg constructor
Standard library support
KT-4141JS: wrong return type for Date::getTimeKT-4497JS: add String.toInt, String.toDouble etc extension functions,parseIntandparseFloatare deprecated in favor of these new onesKT-15940JS: rename all js standard library artifacts (both in maven and in compiler distribution) tokotlin-stdlib-js.jar- Add
Promise<T>external declaration to the standard library - Types like
Date,Math,Console,Promise,RegExp,Jsonrequire explicit import fromkotlin.jspackage
External declarations
KT-15144JS: renamenoImpltodefinedExternallyKT-15306JS: allow to usedefinedExternallyonly inside a body of external declarationsKT-15336JS: allow to inherit external classes from kotlin.ThrowableKT-15905JS: add a way to control qualifier for external declarations inside file- Deprecate
@nativeannotation, to be removed in 1.1 release.
Exceptions / Errors
KT-10894Infinite indexing at projects with JS modulesKT-14124AssertionError: strings file not found on K2JS serialized data
Various issues
KT-8211JS: generate dummy init for properties w/o initializer to avoid to have different hidden classes for different instancesKT-12712JS: Json should not be a classKT-13312JS: can't use extension lambda where expected lambda and vice versaKT-13632Add template kotlin js project under gradle in "New Project" windowKT-15278JS: don't treat property access through dynamic as side effect freeKT-15285JS: take into account as many characteristics from the signature as possible when manglingKT-15678JS: Generated local variable named 'element' clashes with actual local variable named 'element'KT-15755JS compiler produces a lot of empty kotlin_file_table files for irrelevant packagesKT-15770Name clash between recursive local functions with same nameKT-15797JS: wrong code for accessing nested class inside js moduleKT-15863JS: Extension function reference shifts parameters loosing the receiverKT-16049JS: drop "-kjsm" command line option, merge the logic into "-meta-info"KT-16083JS: rename "-library-files" argument to "-libraries" and change separator from comma to system file separator
Standard Library
KT-13353Add Map.minus(key) and Map.minus(keys)KT-13826Add parameter names in function types used in the standard libraryKT-14279Make String.matches(Regex) and Regex.matches(String) infixKT-15399Iterable.average() now returns NaN for an empty collectionKT-15975Move coroutine-related runtime parts tokotlin.coroutines.experimentalpackageKT-16030Move bitwise operations on Byte and Short tokotlin.experimentalpackageKT-16026Classes compiled in 1.1 in 1.0-compatibility mode may contain references to CloseableKt class from 1.1
IDE
Configuration issues
KT-15621Copy compiler options values from project settings on creating a kotlin facet for Kotlin (JVM) projectKT-15623Copy compiler options values from project settings on creating a kotlin facet for Kotlin (JavaScript) projectKT-15624Set option "Use project settings" in newly created Kotlin facetKT-15712Configuring a project with Maven or Gradle should automatically use stdlib-jre7 or stdlib-jre8 instead of standard stdlibKT-15772Facet does not pick up api version from mavenKT-15819It would be nice if compileKotlin options are imported into Kotlin facet from gradle/mavenKT-16015Prohibit api-version > language-version in Facet and Project Settings
Coroutine support
KT-14704Extract Method should work in coroutinesKT-15955Quick-fix to enable coroutines through Gradle project configurationKT-16018Hide coroutines intrinsics from import and completionKT-16075Error:Kotlin: The -Xcoroutines can only have one value
Backward compatibility issues
KT-15134Do not suggest using destructuring lambda if this will result in "available since 1.1" errorKT-15918Quick fix "Set module language level to 1.1" should also set API version to 1.1KT-15969Replace operator with function should use either rem or mod for % depending on language versionKT-15978Type alias from Kotlin 1.1 are suggested in completion even if language level is set to 1.0 in settingsKT-15979Usages of type aliases are not shown as errors in editor if language version is set to 1.0KT-16019Do not suggest renaming to underscore in 1.0 compatibility modeKT-16036"Create type alias from usage" quick-fix should not be suggested at language level 1.0
Intention actions, inspections and quick-fixes
New features
KT-9912Merge ifs intentionKT-13427"Specify type explicitly" should support type aliasesKT-15066"Make private/.." intention on type aliasesKT-15709Add inspection for private primary constructors in data classes as they are accessible via the copy methodKT-15738Intention to addsuspendmodifier to functional typeKT-15800Quick-fix to convert a function to suspending on error when calling suspension inside
Bug fixes
KT-13710Import intention action should not appear in import listKT-14680import statement to type alias reported as unused when using only TA constructorKT-14856TextView internationalisation intention does not report the problemKT-14993Keep destructuring declaration parameter on inspection "Remove explicit lambda parameter types"KT-14994PsiInvalidElementAccessException and incorrect generation on inspection "Specify type explicitly" on destructuring parameterKT-15162"Remove explicit lambda parameter types" intentions fails with destructuring declaration with KNPE at KtPsiFactory.createLambdaParameterList()KT-15311"Add Import" intention generates incorrect codeKT-15406Convert to secondary constructor for enum class should put new members after enum valuesKT-15553Copy concatenation text to clipboard with Kotlin and string interpolation does not workKT-15670'Convert to lambda' quick fix in IDEA leaves single-line comment and } gets commented outKT-15873Alt+Enter menu isn't shown for deprecated mod functionKT-15874Replace operator with function call replaces % with deprecated modKT-15884False positive "Redundant .let call"KT-16072Intentions to convert suspend lambdas to callable references should not be shown
Android support
KT-13275Kotlin Gradle plugin for Android does not work when jackOptions enabledKT-15150Android: Add quick-fix to generate View constructor conventionKT-15282Issues debugging crossinline Android code
KDoc
KT-14710Sample references are not resolved in IDEKT-15796Import of class referenced only in KDoc not preserved after copy-paste
Various issues
KT-9011Shift+Enter should insert curly braces when invoked after class declarationKT-11308Hide kotlin.jvm.internal package contents from completion and auto-importKT-14252Completion could suggest constructors available via type aliasesKT-14722Completion list isn't filled up for type alias to objectKT-14767Type alias to annotation class should appear in the completion listKT-14859"Parameter Info" sometimes does not work properly inside lambdaKT-15032Injected fragment: descriptor was not found for declaration: FUNKT-15153Support typeAlias extensions in completion and add importKT-15786NoSuchMethodError: com.intellij.util.containers.UtilKt.isNullOrEmptyKT-15883Generating equals() and hashCode(): hashCode does not correctly honor variable names with back ticksKT-15911Kotlin REPL will not launch: "Neither main class nor JAR path is specified"
J2K
KT-15789Kotlin plugin incorrectly converts for-loops from Java to Kotlin
Gradle support
KT-14830Kotlin Gradle plugin configuration should not add 'kotlin' source directory by defaultKT-15279'Kotlin not configured message' should not be displayed while gradle sync is in progressKT-15812Create Kotlin facet on importing gradle project with unchecked option Create separate module per source setKT-15837Gradle compiler attempts to connect to daemon on address derived from DNS lookupKT-15909Copy Gradle compiler options to facets in Intellij/ASKT-15929Gradle project imported with wrong 'target platform'
Other issues
KT-15450JSR 223 - support eval with bindings
1.1.0-Beta
Reflection
KT-15540findAnnotation returns T?, but it throws NoSuchElementException when there is no matching annotation- Reflection API in
kotlin-reflectlibrary is moved tokotlin.reflect.fullpackage, declarations in the packagekotlin.reflectare left deprecated. Please migrate according to the hints provided.
Compiler
Coroutine support
KT-15379Allow invoke on instances of suspend function type inside suspend functionKT-15380Support suspend function type with value parametersKT-15391Prohibit suspend function type in supertype listKT-15392Prohibit local suspending functionKT-15413Override regular functions with suspending ones and vice versaKT-15657Refine dispatchResume conventionKT-15662Prohibit callable references to suspend functions
Diagnostics
KT-9630Cannot create extension function on intersection of typesKT-11398Possible false positive for INACCESSIBLE_TYPEKT-13593Do not report USELESS_ELVIS_RIGHT_IS_NULL for left argument with platform typeKT-13859Wrong error about using unrepeatable annotation when mix implicit and explicit targetsKT-14179Prohibit to use enum entry as type parameterKT-15097Inherited platform declarations clash: regression under 1.1 when indirectly inheriting from java.util.MapKT-15287Kotlin runtime 1.1 and runtime 1.0.x: Overload resolution ambiguityKT-15334Incorrect "val cannot be reassigned" inside do-whileKT-15410"Protected function call from public-API inline function" for protected constructor call
Kapt3
KT-15145Kapt3: Doesn't compile with multiple errorsKT-15232Kapt3 crash due to java codepageKT-15359Kapt3 exception while annotation processing (DataBindings AS2.3-beta1)KT-15375Kapt3 can't find ${env.JDK_18}/lib/tools.jarKT-15381Unresolved references: R with Kapt3KT-15397Kapt3 doesn't work with databindingKT-15409Kapt3 Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.widget.EditText.KT-15421Kapt3: Substitute types from Psi instead of writing NonExistentClass for generated type namesKT-15459Kapt3 doesn't generate code in test moduleKT-15524Kapt3 - Error messages should display associated element information (if available)KT-15713Kapt3: circular dependencies between Gradke tasks
Exceptions / Errors
KT-11401Error type encountered for implicit invoke with function literal argumentKT-12044Assertion "Rewrite at slice LEXICAL_SCOPE" for 'if' with property referencesKT-14011Compiler crash when inlining: lateinit property allRecapturedParameters has not been initializedKT-14868CCE in runtime while converting Number to CharKT-15364VerifyError: Bad type on operand stack on ObserverIterator.hasNextKT-15373Internal error when running TestNG testKT-15437VerifyError: Bad local variable type on simplest provideDelegateKT-15446Property reference on an instance of subclass causes java.lang.VerifyErrorKT-15447Compiler backend error: "Don't know how to generate outer expression for class"KT-15449Back-end (JVM) Internal error: Couldn't inline method callKT-15464Regression: "Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:"KT-15575VerifyError: Bad type on operand stack
Various issues
KT-11962Super call with default parameters check is generated for top-level functionKT-11969ProGuard issue with private interface methodsKT-12795Write information about sealed class inheritors to metadataKT-13718ClassFormatError on aspectj instrumentationKT-14162Support @InlineOnly on inline propertiesKT-14705Inconsistent smart casts on when enum subjectKT-14917No way to pass additional java command line options to kontlinc on WindowsKT-15112Compiler hangs on nested lock compilationKT-15225Scripts: generate classes with names that are valid Java identifiersKT-15411Unnecessary CHECKCAST bytecode when dealing with nullKT-15473Invalid KFunction byte code signature for callable referencesKT-15582Generated bytecode is sometimes incompatible with Java 9KT-15584Do not mark class files compiled with a release language version as pre-releaseKT-15589Upper bound for T in KClass can be implicitly violated using generic functionKT-15631Compiler hang in MethodAnalyzer.analyze() fixed
JavaScript backend
Coroutine support
KT-15362JS: Regex doesn't work (properly) in coroutineKT-15366JS: error when calling inline function with optional parameters from another module inside coroutine lambdaKT-15367JS:foragainst iterator with suspendnextandhasNextfunctions does not workKT-15400suspendCoroutine is missing in JS BEKT-15597Support non-tail suspend calls inside named suspend functionsKT-15625JS: return statement without value surrounded bytry..finallyin suspend lambda causes compiler errorKT-15698Move coroutine intrinsics to kotlin.coroutine.intrinsics package
Diagnostics
KT-14577JS: do not report declaration clash when common redeclaration diagnostic appliesKT-15136JS: prohibit inheritance from kotlin Function{N} interfaces
Language features support
KT-12194Exhaustiveness check isn't generated for when expressions in JS at allKT-15590Support increment on inlined properties
Native / external
KT-8081JS: native inherited class shouldn't require super or primary constructor callKT-13892JS: restrictions for native (external) functions and propertiesKT-15307JS: prohibit inline members inside external declarationsKT-15308JS: prohibit non-abstract members inside external interfaces except nullable properties (with accessors)
Exceptions / Errors
KT-7302KotlinJS - Trait with optional parameter causes compilation errorKT-15325JS: ReferenceError: $receiver is not definedKT-15357JS:whenexpression in primary-from-secondary constructor callKT-15435Call to 'synchronize' crashes JS backendKT-15513JS: empty do..while loop crashes compiler
Various issues
KT-4160JS: compiler produces wrong code for escaped variable names with characters which Illegal in JS (e.g. spaces)KT-7004JS: functions namedcallnot inlinedKT-7588JS: operators are not inlinedKT-7733JS: Provide overflow behavior for integer arithmetic operationsKT-8413JS: generated wrong code for some float constantsKT-12598JS: comparisons for Enums always translates using strong operatorKT-13523Augmented assignment with array access in LHS is translated incorrectlyKT-13888JS: change how functions optional parameters get translatedKT-15260JS: don't import module more than onceKT-15475JS compiler deletes internal function name in js("") text blockKT-15506JS: invalid evaluation order when passing arguments to function by nameKT-15512JS: wrong result when use break/throw/return in || and && operatorsKT-15569js: Wrong code generated when calling an overloaded operator function on an inherited property
Standard Library
KEEP-23Operation to group by key and fold each group simultaneouslyKT-15774buildSequenceandbuildIteratorfunctions withyieldandyieldAllbased on coroutinesKT-6903Addalsoextension, which is likeapply, but withitinstead ofthisinside lambda.KT-7858Add extension functiontakeIfto match a value against predicate and return null when it does not matchKT-11851Provide extensionMap.getValue(key: K): Vwhich throws or returns default when key is not foundKT-7417Add min, max on two numbers to standard libraryKT-13898Allow to implementtoArrayin collections as protected and provide protected toArray in AbstractCollection.KT-14935Array-like list instantiation functions:List(count) { init }andMutableList(count) { init }KT-15630Overloads of mutableListOf, mutableSetOf, mutableMapOf without parametersKT-15557Iterable.joinTo loses information about each element by calling toString on them by defaultKT-15477Introduce Throwable.addSuppressed extensionKT-15310Add dynamic.unsafeCastKT-15436JS stdlib: org.w3c.fetch.RequestInit has 12 parameters, all requiredKT-15458Add print and println to common stdlib
IDE
- Project View: Fix presentation of Kotlin files and their members when @JvmName having the same name as the file itself
no-arg / all-open
KT-15419IDE build doesn't pick settings of all-open pluginKT-15686IDE build doesn't pick settings of no-arg pluginKT-15735Facet loses compiler plugin settings on reopening project, when "Use project settings" = Yes
Formatter
KT-15542Formatter doesn't handle spaces around 'by' keywordKT-15544Formatter doesn't remove spaces around function reference operator
Intention actions, inspections and quick-fixes
New features
- Implement quickfix which enables/disables coroutine support in module or project
KT-5045Intention to convert between two comparisons and range check and vice versaKT-5629Quick-fix to import extension method when arguments of non-extension method do not matchKT-6217Add warning for unused equals expressionKT-6824Quick-fix for applying spread operator where vararg is expectedKT-8855Implement "Create label" quick-fixKT-15056Implement intention which converts object literal to classKT-15068Implement intention which rename file according to the top-level class nameKT-15564Add quick-fix for changing primitive cast to primitive conversion method
Bug fixes
KT-14630Clearer diagnostic message for platform type inspectionKT-14745KNPE in convert primary constructor to secondaryKT-14889Replace 'if' with elvis operator produces red code if result is referenced in 'if'KT-14907Quick-fix for missing operator adds infix modifier to created functionKT-15092Suppress inspection "use property access syntax" for some getters and fix completion for themKT-15227"Replace if with elvis" silently changes semanticsKT-15412"Join declaration and assignment" can break code with smart castsKT-15501Intention "Add names to call arguments" shouldn't appear when the only argument is a trailing lambda
Refactorings (Extract / Pull)
KT-15611Extract Interface/Superclass: Disable const-properties- Pull Up: Fix pull-up from object to superclass
KT-15602Extract Interface/Superclass: Disable "Make abstract" for inline/external/lateinit members- Extract Interface: Disable inline/external/lateinit members
KT-12704,KT-15583Override/Implement Members: Support all nullability annotations respected by the Kotlin compilerKT-15563Override Members: Allow overriding virtual synthetic members (e.g. equals(), hashCode(), toString(), etc.) in data classesKT-15355Extract Interface: Disable "Make abstract" and assume it to be true for abstract members of an interfaceKT-15353Extract Superclass/Interface: Allow extracting class with special name (and quotes)KT-15643Extract Interface/Pull Up: Disable "Make abstract" and assume it to be true for primary constructor parameter when moving to an interfaceKT-15607Extract Interface/Pull Up: Disable internal/protected members when moving to an interfaceKT-15640Extract Interface/Pull Up: Drop 'final' modifier when moving to an interfaceKT-15639Extract Superclass/Interface/Pull Up: Add spaces between 'abstract' modifier and annotationsKT-15606Extract Interface/Pull Up: Warn about private members with usages in the original classKT-15635Extract Superclass/Interface: Fix bogus visibility warning inside a member when it's being moved as abstractKT-15598Extract Interface: Red-highlight members inherited from a super-interface when that interface reference itself is not extractedKT-15674Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameter
Multi-platform project support
KT-14908Actions (quick-fixes) to create implementations of header elementsKT-15305Do not report UNUSED for header declarations with implementations and vice versaKT-15601Cannot suppress HEADER_WITHOUT_IMPLEMENTATIONKT-15641Quick-fix "Create header interface implementation" does nothing
Android support
KT-12884Android Extensions: Refactor / Rename of activity name does not change import extension statementKT-14308Android Studio randomly hangs due to Java static member import quick-fix lagsKT-14358Kotlin extensions: rename layout file: Throwable: "PSI and index do not match" through KotlinFullClassNameIndex.get()KT-15483Kotlin lint throws unexpected exceptions in IDE
Various issues
KT-12872Don't show "defined in " in quick doc for local variablesKT-13001"Go to Type Declaration" is broken for stdlib typesKT-13067Syntax colouring doesn't work for KDoc tagsKT-14815alt + enter -> "import" over a constructor reference is not workingKT-14819Quick documentation for special Enum functions doesn't workKT-15141Bogus import popup for when function call cannot be resolved fullyKT-15154IllegalStateException on attempt to convert import statement to * if last added import is to typealiasKT-15329Regex not inspected properly for javaJavaIdentifierStart and javaJavaIdentifierPartKT-15383Kotlin Scripts can only resolve stdlib functions/classes if they are in a source directoryKT-15440Improve extensions detection in IDEAKT-15548Kotlin plugin: @Language injections specified in another module are ignored- Invoke
StorageComponentContainerContributorextension for module dependencies container as well (needed for "sam-with-receiver" plugin to work with scripts)
J2K
KT-6790J2K: Static import of Map.Entry is lost during conversionKT-14736J2K: Incorrect conversion of back ticks in javadoc {@code} tagKT-15027J2K: Annotations are set on functions, but not on property accessors
Gradle support
KT-15376Kotlin incremental=true: fixed compatibility with AS 2.3KT-15433Kotlin daemon swallows exceptions: fixed stack trace reportingKT-15682Uncheck "Use project settings" option on import Kotlin project from gradle
1.1-M04 (EAP-4)
Language related changes
KT-4481compareTo on primitive floats/doubles should behave naturallyKT-11016Allow to annotate internal API to be used inside public inline functionsKT-11128Member vs SAM conversion with more specific signatureKT-12215Allowing to access protected members in public inline members creates potential binary compatibility problemKT-12531Report error when delegated member hides a supertype memberKT-14650mod function on integral types is inconsistent with BigInteger.modKT-14651Floating point comparisons shall operate according to IEEE754KT-14852It should not be possible to use typealias that abbreviates a generic projection as a constructorKT-15226Restrict delegation to java 8 default methods
Reflection
KT-12250Provide API for getting a single annotation by its classKT-14939VerifyError in accessors for bound property reference with receiver 'null'
Compiler
Coroutines
- Major coroutines redesign - see
KEEPfor details
Optimizations
KT-11734Optimize const vals by inlining them at call siteKT-13570Generate TABLE/LOOKUPSWITCH if all when branches are const integer valuesKT-14746Captured Refs should not be volatile
Various issues
KT-10982java.util.Map::compute* poor usabilityKT-12144Type inference incorporation error on SAM adapter callKT-14196Do not allow class literal with expression in annotation argumentsKT-14453Regression: Type inference failed: inferred type is T but T was expectedKT-14774Incorrect inner class modifier generated for sealed inner classesKT-14839CompilationException when calling inline fun with first arg of 2 (w/defaults) within catch block of Java exception typeKT-14855Projection in type aliases should be allowed in supertypes and constructor invocations if they expand to non-toplevel projectionsKT-14887Unhelpful error "public-API inline function cannot access non-public-API" for unresolved call inside inline functionKT-14930Android: creating Kotlin activity: UOE at EmptyList.removeAll()KT-15146Kapt3 no source files on unittestKT-15272Exception when building 2 projects at the same time
JavaScript backend
dynamic type
KT-8207Extension function on dynamic resolves on any typeKT-6579JS: prohibit to useinand!inon dynamicKT-6580JS: prohibit to use more than one argument in indexed access on dynamicKT-13615JS: don't generate guard for catch with dynamic type
@native/external
KT-13893JS: Replace @native annotation with external modifierKT-12877Allow to specify module for native JS declarationsKT-14806JS: name of a local variable clashes with native declaration from global scope
Diagnostics
KT-13889JS: prohibit overriding native functions with default values assigned to parametersKT-13894JS: prohibit native declaration inside non-nativeKT-13895JS: RUNTIME annotationsKT-13896JS: prohibit external(native) extension functions and propertiesKT-13897JS: prohibit native(external) files and typealiasesKT-13910JS: prohibit override members of native declaration with overloadsKT-14027JS: prohibit native inner classesKT-14029JS: prohibit private members inside native declarationsKT-14037JS: prohibit using native interfaces in RHS of ISKT-14038JS: warn when using native interface in RHS of ASKT-15130JS: prohibit inheritance native from non-nativeKT-12600JS: type check with a native interface compiles but crash at runtimeKT-13307KotlinJS cannot cast to a marker interface.
Language features support
KT-13573JS: support bound callable referenceKT-14634JS: support enumValues / enumValueOfKT-15058JS: replace suspend function convention
Issues related to kotlin.Any
KT-7664JS: "x is Any" is always falseKT-7665JS: creating Any instance crashes on runtimeKT-15131JS: don't mangle Any.equals
Various issues
KT-14033JS: don't optimize (based on type information) by default expressions with any of "as, is, !is, as?, ?., !!"KT-13616JS: don't omit guard for catch with Throwable typeKT-12976JS: human-friendly error message on wrong modules orderKT-15212JS: link unqualified names injs(...)function to local functions in outer Kotlin function by nameKT-14750JS: remove unnecessary functions from kotlin.js
Bugfixes
KT-12566JS: inner local class should refer to captured variables via its outer classKT-12527Reified is-check works wrongly for chained callsKT-12586JS: compiler crashes when call inline function inside string templeateKT-13164Ecma TypeError on extending local class from inner oneKT-14888JS: Compiler error: Cannot get FQ name of local class: lazy classKT-14748JS: eliminate unused functionsKT-14999JS: Operator set + labeled lambdasKT-15007JS: Dies when checking if exception implements interface. TypeError: Cannot read property 'baseClasses' of undefinedKT-15073KT to JS losing extension function's receiverKT-15169JS: compiler fails on annotated expression with TRE at Translation.doTranslateExpression()KT-13522JS: can't use captured reified type paramter in jsClassKT-13784JS: lambda was not inlined for function with reified parameter declared in another moduleKT-13792JS: inner class of local class does not capture enclosing class properlyKT-15327JS: EnumvalueOfshould throw IllegalArgumentException
Standard library
KT-7930Make String.toInt(), toLong(), etc. nullable instead of throwing exceptionKT-8220Add #peek method to Sequence similar to Stream.peekKT-8286Int.toString and String.toInt with base as parameterKT-14034JS: unsafeCast functionKT-15181Some source files are missing from published sources on Bintray
IDE
KT-15205Implement quick-fix for increasing module language level to enable unsupported language features
Issues fixed
KT-14693Introduce Type Alias: Do not suggest type qualifiersKT-14696Introduce Type Alias: Fix NPE during dialog repaintKT-14685Introduce Type Alias: Replace type usages in constructor callsKT-14861Introduce Type Alias: Support callable references/class literalsKT-15204Implement navigation from header to its implementation and vice versaKT-15269Quickfix for external (native) extension declarationsKT-15293Add 1.1 EAP repository when creating a new Gradle project with 1.1 EAP
Scripting
KT-14538Kotlin gradle script files appear totally unresolvedKT-14706Support package declaration in scriptingKT-14707Support javax.script.Invocable on the JSR 223 ScriptEngineKT-14708kotlin-script-runtime is not publishedKT-14713Make it possible to use JSR 223 support without specifying compiler JAR absolute pathKT-15064Gradle build with script .kts file: NPE at ScriptCodegen.genConstructor()
Gradle support
KT-15080Gradle build fails with Gradle 3.2 (master)KT-15120Gradle JS test compile task doesn't pick up production codeKT-15127JS "compiler jar not found" with Gradle 3.2KT-15133Recent gradle-script-kotlin 3.3 distributions are unusableKT-15218Isolate Gradle Kotlin compiler process
1.1-M03 (EAP-3)
New language features
KT-2964Underscores in integer literals (see KEEP)KT-3824Underscore in lambda for unused parameters (see KEEP)KT-2783Allow to skip some components in a multi-declaration (see the same KEEP)KT-11551limited scope for dsl writers (see KEEP)
Compiler
Coroutines related issues
- Make fields for storing lambda parameters non-final (as they get assigned within
invokecall) KT-14719Make initial continuation able to be resumed with exceptionKT-14636Coroutine fields should not be volatileKT-14718Validate label value of coroutine in case of no suspension points
Typealises related issues
KT-13514Type inference doesn't work with generic typealiasesKT-13837Error "Type alias expands to T, which is not a class, an interface, or an object" should also appear for local type aliasesKT-14307Local recursive type alias should be an errorKT-14400Compiler Error IllegalStateException: kotlin.NotImplementedError when anonymous object inherits from typealiasKT-14377Expected error: Modifier 'companion' is not applicable to 'typealias'KT-14498typealias allows to circumvent variance annotationsKT-14641An exception while processing a nested type alias access after a dot
Various issues
KT-550Properties without initializer but with get must infer type from getterKT-8816Generate Kotlin parameter names in the same form as expected for Java 8 reflectionKT-10569Cannot iterate over values of an enum class when it is used as a generic parameter (see KEEP)KT-13557VerifyError with delegated local variable used in object expressionKT-13890IllegalAccessError when invoking protected method with default argumentsKT-14012Back-end (JVM) Internal error every first compilation after the source code changeKT-14201UnsupportedOperationException: Don't know how to generate outer expression for anonymous object with invoke and non-trivial closureKT-14318Repeated annotations resulting from type alias expansion should be reportedKT-14347Report UNUSED_PARAMETER/VARIABLE on named unused lambda parameters/destructuring entriesKT-14352@SinceKotlin is not taken into account for companion object member referenced via type aliasKT-14357Try-catch used in false condition generates CompilationExceptionKT-14502Prohibit irrelevant modifiers and annotations on destructured parameters in lambdaKT-14692Change resolution scope for componentX in lambda parametersKT-14824Back-end (JVM) Internal error: Couldn't inline method call 'get' into local final fun StorageComponentContainer.(): kotlin.UnitKT-14798Gradle 3.2 AssertionError: Built-in class kotlin.ParameterName is not found
JS
Feature support
KT-6985Support Exceptions in JSKT-13574JS: support coroutinesKT-14422JS: Support destructuring in lambda parametersKT-14507JS: allow to skip some components in a multi-declaration
Library updates
KT-14637JS: Missing ArrayList.ensureCapacity
Other issues
KT-2328js: kotlin exceptions must inherit ErrorKT-5537Drop Cloneable in JSKT-7014JS: generate code which more friendly to js tools (minifier, optimizer, linter etc)KT-8019JS: no stackTrace in exception subclassesKT-10911JS: Throwable properties aren't supported wellKT-13912JS: Compiler NPE at JsSourceGenerationVisitor. Lambda with empty [if] block passed to inline functionKT-14535JS: Broken modification of captured variables defined by a destructuring declaration
Standard Library
-
KT-2084Common API should be available without referring to java.* packagesNow those common types, which are supported on all platforms, are available in
kotlin.*packages, and are imported by default. These include:ArrayList,HashSet,LinkedHashSet,HashMap,LinkedHashMapinkotlin.collectionsAppendableandStringBuilderinkotlin.textComparatorinkotlin.comparisonsOn JVM these are just typealiases of the good old types fromjava.utilandjava.lang
-
KT-13554Introduce bitwise operationsand/or/xor/invfor Byte and Short -
KT-13582New platform-agnostic extensions for arrays:contentEqualsto compare arrays' content for equality,contentHashCodeto get hashcode of array's content, andcontentToStringto get the string representation of array elements. -
KT-14510Generic constraints ofArray.flattensignature were relaxed a bit to make it just usable. -
KT-14789ProvideKotlinVersionclass, which allows to get the current version of the standard library and compare it with some otherKotlinVersionvalue.
IDE
KT-14409Incorrect "Variable can be declared immutable" inspection for local delegated variableKT-14431Create quick-fix on UNUSED_PARAMETER/VARIABLE when it can be replaced with one underscoreKT-14794Add /Specify type/Remove explicit type intentions for property with getters if type can be inferredKT-14752Exception while typing @JsName annotation in editor
1.1-M02 (EAP-2)
Language features
-
Destructuring for lambdas (proposal)
Current limitations:
- Nested destructuring is not supported
- Destructuring in named functions/constructors is not supported
- Is not supported for JS target
Compiler
Smart cast enhancements
KT-2127Smart cast receiver to not null after a not null safe callKT-6840Make data flow information the same for assigned and assigneeKT-13426Fix exception when smartcast on both dispatch & extension receiver
Bound references related issues
KT-12995Do not skip generation of the left-hand side for intrinsic bound references and class literalsKT-13075Fix codegen for bound class referenceKT-13110Fix type mismatch error on class literal with integer receiver expressionKT-13172Report error on "this::class" in super constructor callKT-13271Fix incorrect unsupported error on synthetic extension call on LHS of ::KT-13367Inline bound callable reference if it's used only as a lambda
Coroutines related issues
KT-13156Do not execute last Unit-typed coroutine statement twiceKT-13246Fix VerifyError with coroutines on DalvikKT-13289Fix VerifyError with coroutines: Bad type on operand stackKT-13409Fix generic variable spilling with coroutinesKT-13531Fix ClassCastException when coercion to Unit interacts with generic await() and coroutines- Prohibit
Continuation<*>as a last parameter of suspend functions KT-13560Prohibit non-Unit suspend functions
Typealises related issues
KT-13200Fix incorrect number of required type arguments reported on typealiasKT-13181Fix unresolved reference for a type alias from a different moduleKT-13161Support java static methods calls with typealiasesKT-13835Do not lose nullability information while expanding type alias in projection positionKT-13422Prohibit usage of type alias to exception class as an object in 'throw' expressionKT-13735Fix NoSuchMethodError for generic typealias accessKT-13513Support SAM constructors for aliased java functional typesKT-13822Fix exception for start-projection of a type aliasKT-14071Prohibit using type alias as a qualifier for superKT-14282Report error on unused type alias with -language-version 1.0KT-14274Fix type alias resolution when it's used for supertype constructor call
JDK dependent built-in classes related issues
KT-13209Change first parameter's type of Map.getOrDefault to K instead of AnyKT-13069Do not emit invalid DefaultImpls delegation when interface extends MutableMap with JDK8
data classes and inheritance
KT-11306Allow data classes to implement equals/hashCode/toString from base classes
Various JVM code generation issues
KT-13182Fix compiler internal error at inlineKT-13757Prohibit referencing nested classes by name with $KT-12985Do not create range instances for 'for' loop in CharSequence.indicesKT-13931Optimize generated code for IntRange#contains
Various analysis & diagnostic issues
KT-435Use parameter names in error messages when calling a function-valued expressionKT-10001Fix false unnecessary non-null assertion on a pair elementKT-12811Treat function declaration as final if it is a member of a final classKT-13961Report REDECLARATION on private-in-file 'foo' vs public 'foo' in different file
JS
Feature support
Library updates
KT-18Move exceptions fromjava.langtokotlinpackageKT-12386Rewrite JS collections in Kotlin, move them tokotlin.collectionspackageKT-7809Make Collection implementations conform to their declared interfacesKT-7473Make AbstractCollection.equals check object typeKT-13429Make 'remove' on fresh iterator throw exception instead of removing last elementKT-13459Make JS implementation of ArrayList::add(index, element) check the index is in valid rangeKT-8724Fix MutableIterator.remove() for HashMapKT-10786Make Map.keys return view of map keys instead of snapshotKT-14194Make HashMap.putAll implementation not to call getKey/getValue
Standard Library
Backward compatibility
KT-14297Add @SinceKotlin annotation to support compatibility with compilation against older standard libraryKT-14213Ensure printStackTrace can be called with -language-version 1.0
Enhancements
KEEP-53Provide two distinct hierarchies of abstract collections: one for implementing read-only/immutable collections, and other for implementing mutable collectionsKEEP-13Provide extension functions to copy mapsKT-18Introduce type aliases for common exceptions fromjava.langinkotlinpackageKT-12762Makekotlin.ranges.untilreturn an empty range for "illegal" 'to' parameterKT-12894Allow nullable receiver foruseextension
Reflection
New features
KT-8998Introduce comprehensive API to work with KType instancesKT-10447Provide a way to check if a KClass is a data classKT-11284Add KClass.cast extensionKT-13106Support annotation constructors in reflection
Optimizations
KT-10651Optimize KClass.simpleName
IDE
New features
KT-12903Implement "Inline type alias" refactoringKT-12902Implement "Introduce type alias" refactoringKT-12904Implement "Create type alias from usage" quick fixKT-9016Make use of named higher order function parametersKT-12205Suggest import of Kotlin static members in editor with Java sourceKT-13941Implement intention for introducing destructured lambda parameters when it's possibleKT-13943Implement inspection and quickfix for to detect a manual destructuring of for / lambda parameter
Issues fixed
KT-13004Support bound method references in completionKT-13242Suggest 'typealias' keyword in completionKT-13244Override/Implement Members: Do not expand type aliases in the generated membersKT-13611Go to Class: Fix presentation of type aliasesKT-13759Rename: Process object-wrapping alias referencesKT-13955Find Usages: Add special type for usages inside of type aliasesKT-13479Support navigation to type aliases from binariesKT-13766Fix optimize imports not to add wrong and unnecessary import because of type aliasKT-12949Consider type aliases as candidates for importKT-13266Suggest non-imported type aliases in completionKT-13689Do not treat type alias constructor usage as original type usage for optimize imports
Scripting
- A new library
kotlin-script-utilcontaining utilities for implementing kotlin script support KT-7880Experimental support for JSR 223 Scripting APIKT-13975,KT-14264Convert error on retrieving gradle plugin settings to warning- Implement support for custom template-based scripts in command-line compiler, maven and gradle plugins
1.1-M01 (EAP-1)
Language features
-
Coroutines (async/await, generators) (proposal)
Current limitations:
-
Bound callable references (proposal)
-
Type aliases (proposal)
Current limitations:
- type alias constructors for inner classes are not supported yet
- annotations on type alias are not supported yet
- limited IDE support
-
Local delegated properties (proposal)
-
JDK dependent built-in classes (proposal)
-
Sealed class inheritors in the same file (proposal)
-
Allow base classes for data classes (proposal)
Scripting
- Implement support for Script Definition Template
and related functionality, except the following parts:
- automatic script templates discovery is not implemented
@file:ScriptTemplateannotation is not supported- the parameters
javaHomeandscriptsfromKotlinScriptExternalDependenciesare not used yet
- Implement support for custom template-based scripts in IDEA: resolving, completion and navigation to symbols from script classpath and sources
- Implement GradleScriptTemplatesProvider extension that supplies a script template if gradle with kotlin script support is used in the project
Compiler
Issues fixed
KT-4779Generate default methods for implementations in interfacesKT-11780Fixed incorrect "No cast needed" warningKT-12156Fixed incorrect error oninlinemodifier inside final classKT-12358Report missing error "Abstract member not implemented" when a fake method of 'Any' is inherited from an interfaceKT-6206Generate equals/hashCode/toString in data class always unless it'll cause a JVM signature clash errorKT-8990Fixed incorrect error "virtual member hidden" for a private method of an inner classKT-12429Fixed visibility checks for annotation usage on top-level declarationsKT-5068Introduced a special diagnostic message for "type mismatch" errors such asfun f(): Int = { 1 }.
Standard Library
KT-8254Provide standard library supplement artifacts for using with JDK 7 and 8. These artifacts include extensions for the types available in the latter JDKs, such asAutoCloseable.use(KT-5899) orStream.toList.KT-12753Provide an access to named group matches ofRegexmatch result (for JDK 8 only).- Add
assertFailsoverload with message to kotlin-test.
IDE
New features
KT-12019Introduce "redundantif" inspection
Issues fixed
KT-12389Do not exit from REPL when toString() of user class throws an exceptionKT-12129Fixed link on api reference page in KDoc
1.0.7
IDE
- Project View: Fix presentation of Kotlin files and their members when @JvmName having the same name as the file itself
KT-15611Extract Interface/Superclass: Disable const-properties- Pull Up: Fix pull-up from object to superclass
KT-15602Extract Interface/Superclass: Disable "Make abstract" for inline/external/lateinit members- Extract Interface: Disable inline/external/lateinit members
KT-12704,KT-15583Override/Implement Members: Support all nullability annotations respected by the Kotlin compilerKT-15563Override Members: Allow overriding virtual synthetic members (e.g. equals(), hashCode(), toString(), etc.) in data classesKT-15355Extract Interface: Disable "Make abstract" and assume it to be true for abstract members of an interfaceKT-15353Extract Superclass/Interface: Allow extracting class with special name (and quotes)KT-15643Extract Interface/Pull Up: Disable "Make abstract" and assume it to be true for primary constructor parameter when moving to an interfaceKT-15607Extract Interface/Pull Up: Disable internal/protected members when moving to an interfaceKT-15640Extract Interface/Pull Up: Drop 'final' modifier when moving to an interfaceKT-15639Extract Superclass/Interface/Pull Up: Add spaces between 'abstract' modifier and annotationsKT-15606Extract Interface/Pull Up: Warn about private members with usages in the original classKT-15635Extract Superclass/Interface: Fix bogus visibility warning inside a member when it's being moved as abstractKT-15598Extract Interface: Red-highlight members inherited from a super-interface when that interface reference itself is not extractedKT-15674Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameterKT-15444Spring Support: Consider declaration open if it's supplemented with a preconfigured annotation in corresponding compiler plugin
Intention actions, inspections and quickfixes
New features
KT-15068Implement intention which rename file according to the top-level class name- Implement quickfix which enables/disables coroutine support in module or project
KT-15056Implement intention which converts object literal to classKT-8855Implement "Create label" quick fixKT-15627Support "Change parameter type" for parameters with type-mismatched default value
1.0.6
IDE
KT-13811Expose JVM target setting in IntelliJ IDEA plugin compiler configuration UIKT-12410Expose language version setting in IntelliJ IDEA plugin compiler configuration UI
Intention actions, inspections and quickfixes
KT-14569Convert Property to Function Intention: Search occurrences using progress dialogKT-14501Create from Usage: Support array access expressions/binary expressions with type mismatch errorsKT-14500Create from Usage: Suggest functional type based on the call with lambda argument and unresolved invoke()KT-14459Initialize with Constructor Parameter: Fix IDE freeze on properties in generic classKT-14044Fix exception on deleting unused declaration in IDEA 2016.3KT-14019Create from Usage: Support generation of abstract members for superclassesKT-14246Intentions: Convert function type parameter to receiverKT-14246Intentions: Convert function type receiver to parameter
New features
KT-14729Implement "Add names to call arguments" intentionKT-11760Create from Usage: Support adding type parameters to the referenced type
Refactorings
KT-14583Change Signature: Use new signature when looking for redeclaration conflictsKT-14854Extract Interface: Fix NPE on dialog openingKT-14814Rename: Fix renaming of .kts file to .kt and vice versaKT-14361Rename: Do not report redeclaration conflict for private top-level declarations located in different filesKT-14596Safe Delete: Fix exception on deleting Java class used in Kotlin import directive(s)KT-14325Rename: Fix exceptions on moving file with facade class to another packageKT-14197Move: Fix callable reference processing when moving to another packageKT-13781Extract Function: Do not wrap companion member references inside of thewithcall
New features
KT-14792Rename: Suggest respective parameter name for the local variable passed to function
1.0.5
IDE
KT-9125Support Type Hierarchy on references inside of super type call entriesKT-13542Rename: Do not search parameter text occurrences outside of its containing declarationKT-8672Rename: Optimize search of parameter references in calls with named argumentsKT-9285Rename: Optimize search of private class membersKT-13589Use TODO() consistently in implementation stubsKT-13630Do not show Change Signature dialog when applying "Remove parameter" quick-fix- Re-highlight only single function after local modifications
KT-13474Fix performance of typing super call lambda- Show "Variables and values captured in a closure" highlighting only for usages
KT-13838Add file name to the presentation of private top-level declaration (Go to symbol, etc.)KT-14096Rename: When renaming Kotlin file outside of source root do not rename its namesake in a source rootKT-13928Move Inner Class to Upper Level: Fix replacement of outer class instances used in inner class constructor callsKT-12556Allow using whitespaces and other symbols in "Generate -> Test Function" dialogKT-14122Generate 'toString()': Permit for data classesKT-12398Call Hierarchy: Show Kotlin usages of Java methodsKT-13976Search Everywhere: Render function parameter typesKT-13977Search Everywhere: Render extension type in prefix position- Implement Kotlin facet
Intention actions, inspections and quickfixes
KT-9490Convert receiver to parameter: use template instead of the dialogKT-11483Move to Companion: Do not use qualified names as labelsKT-13874Move to Companion: Fix AssertionError on running refactoring from Conflicts ViewKT-13883Move to Companion Object: Fix exception when applied to classKT-13876Move to Companion Object: Forbid for functions/properties referencing type parameters of the containing classKT-13877Move to Companion Object: Warn if companion object already contains function with the same signatureKT-13933Convert Parameter to Receiver: Do not qualify companion members with labeled 'this'KT-13942Redundant 'toString()' in String Template: Disable for qualified expressions with 'super' receiverKT-13878Remove Redundant Receiver Parameter: Fix exception receiver removalKT-14143Create from Usages: Do not suggest on type-mismatched expressions which are not call argumentsKT-13882Convert Receiver to Parameter: Fix AssertionErrorKT-14199Add Library: Fix exception due to resolution being run in the "dumb mode"- Convert Receiver to Parameter: Fix this replacement
New features
KT-11525Implement "Create type parameter" quickfixKT-9931Implement "Remove unused assignment" quickfixKT-14245Implement "Convert enum to sealed class" intentionKT-14245Implement "Convert sealed class to enum" intention
Refactorings
KT-13535Pull Up: Remove visibility modifiers on adding 'override'KT-13216Move: Report separate conflicts for each property accessorKT-13216Move: Forbid moving of enum entriesKT-13553Move: Do not show directory selection dialog if target directory is already specified by drag-and-dropKT-8867Rename: Rename all overridden members if user chooses to refactor base declaration(s)- Pull Up: Drop 'override' modifier if moved member doesn't override anything
KT-13660Move: Do not drop object receivers when calling variable of extension functional typeKT-13903Move: Remove companion object which becomes empty after the moveKT-13916Move: Report visibility conflicts in import directivesKT-13906Move Nested Class to Upper Level: Do not show directory selection dialog twiceKT-13901Move: Do not ignore target directory selected in the dialog (DnD mode)KT-13904Move Nested Class to Upper Level: Preserve state of "Search in comments"/"Search for text occurrences" checkboxesKT-13909Move Files/Directories: Fix behavior of "Open moved files in editor" checkboxKT-14004Introduce Variable: Fix exception on trying to extract variable of functional typeKT-13726Move: Fix bogus conflicts due to references resolving to wrong library versionKT-14114Move: Fix exception on moving Kotlin file without declarationsKT-14157Rename: Rename do-while loop variables in the loop conditionKT-14128,KT-13862Rename: Use qualified class name when looking for occurrences in non-code filesKT-6199Rename: Replace non-code class occurrences with new qualified nameKT-14182Move: Show error message on applying to enum entries- Extract Function: Support implicit abnormal exits via Nothing-typed expressions
KT-14285Rename: Forbid on backing field referenceKT-14240Introduce Variable: Do not replace assignment left-hand sidesKT-14234Rename: Do not suggest type-based names for functions with primitive return types
New features
KT-13155Implement "Introduce Type Parameter" refactoringKT-11017Implement "Extract Superclass" refactoringKT-11017Implement "Extract Interface" refactoring Pull Up: Support properties declared in the primary constructor Pull Up: Support members declared in the companion object of the original class Pull Up: Show member dependencies in the refactoring dialogKT-9485Push Down: Support moving members from Java to Kotlin classKT-13963Rename: Implement popup chooser for overriding members
Android Lint
Issues fixed
KT-12022Report lint warnings even when file contains errors
1.0.4
Compiler
Analysis & diagnostics
KT-10968,KT-11075,KT-12286Type inference of callable referencesKT-11892Report error on qualified super call to a supertype extended by a different supertypeKT-12875Report error on incorrect call of member extension invokeKT-12847Report error on accessing protected property setter from super class' companionKT-12322Overload resolution ambiguity with constructor reference when class has a companion objectKT-11440Overload resolution ambiguity on specialized Map.put implementation from JavaKT-11389Runtime exception when calling Java primitive overloadingsKT-8200Exception when using non-generic interface with generic argumentsKT-10237Exception on an unresolved symbol in a type parameter bound in the 'where' clauseKT-11821Exception on incorrect number of generic arguments in a type parameter bound in the 'where' clauseKT-12482Exception: Implementation doesn't have the most specific type, but none of the other overridden methods does eitherKT-12687Exception when 'data' modifier is applied to objectKT-9620AssertionError in DescriptorResolver#checkBoundsKT-3689IllegalAccess on a property with private setter of the subclassKT-6391Wrong warning for array casting (Array<Any?> to Array)KT-8596Exception when analyzing nested class constructor reference in an argument positionKT-12982Incorrect type inference when accessing mutable protected property via reflectionKT-13206Report "Cast never succeeds" if and only if ClassCastException can be predictedKT-12467IllegalStateException: Concrete fake override should have exactly one concrete super-declaration: []KT-13340Report "return is not allowed here" only on the return keyword, not the whole expressionKT-2349,KT-6054Report "uninitialized enum entry" if enum entry is referenced before its declarationKT-12809Report "uninitialized variable" if property is referenced before its declarationKT-260Do not report "cast never succeeds" when casting nullable to nullableKT-11769Prohibit access from enum instance initialization code to members of enum's companion objectKT-13371Fix CompilationException: Rewrite at slice LEAKING_THIS key: REFERENCE_EXPRESSIONKT-13401Fix StackOverflowError when checking varianceKT-13330,KT-13349Fix AssertionError: Illegal resolved call to variable with invokeKT-13421Fix AssertionError: Only integer constants should be checked for overflowKT-13555Fix internal error "resolveToInstruction"KT-8989Change error messages: Replace "invisible_fake" with "invisible (private in a supertype)"KT-13612Val reassignment in try / catchKT-5469Incorrect "is never used" warning for value used in catch blockKT-13510Missing "Nested class not allowed" error for anonymous object inside val initializerKT-13685Fix NPE when resolving callable references on incomplete code- Change error messages: Fix quotes around keywords in diagnostic messages
- Change error messages: Remove quotes around visibilities
Parser
KT-7118Improve error message after trailing dot in floating point literalKT-4948Recover by following keywordKT-7915Recover after val with no subsequent nameKT-12987Recover after val with no name before declaration starting with soft keyword
JVM code generation
KT-12909Do not generate redundant bridge for special built-in overrideKT-11915Exception in entrySet when Map implementation in Kotlin extends another oneKT-12755Exception on property generation in multi-file classesKT-12983VerifyError: Bad type on operand stack in arraylengthKT-12908Variable initialization in loop causes VerifyError: Bad local variable typeKT-13040Invalid bytecode generated for extension lambda invocation with safe callKT-13023Char operations throw ClassCastException for boxed CharsKT-11634Exception for super call in delegationKT-12359Redundant stubs are generated on inheriting from java.util.CollectionKT-11833Error generating constructors of class on anonymous object inheriting from nested class of super classKT-13133Incorrect InnerClasses attribute value for anonymous object copied from an inline functionKT-13241Indices optimization leads to VerifyError with smart cast receiverKT-13374Fix compiler exception when inline function contains anonymous object implementing an interface by delegation
Generated code performance
KT-11964No TABLESWITCH in when on enum bytecode if enum constant is importedKT-6916Optimize 'for' over 'downTo'KT-12733Optimize 'for' over 'rangeTo' as a non-qualified call
Standard Library
KT-13115,KT-13297Improve documentation formatting, clarify documentation forFileTreeWalk,SequenceandgenerateSequence.KT-12894Do not fail inCloseable.useif the resource isnull.
Reflection
KT-12915Runtime exception on callBy of JvmStatic function with default argumentsKT-12967Runtime exception on reference to generic propertyKT-13370NullPointerException on companionObjectInstance of a built-in classKT-13462Make KClass for primitive type equal to the corresponding KClass for wrapper type
IDE
KT-12655New Kotlin file: extra error message for already existing fileKT-12760Prohibit running non-Unit returning main functionKT-12893Impossible to open Kotlin compiler settingsKT-10433Copy-pasting reference to companion object member causes import dialogKT-12803Class is marked as unused when it is only used is in method referenceKT-13084Run test method action executes all tests from same kotlin fileKT-12718Deadlock due to index reenteringKT-13114'Unused declaration' option 'JUnit static methods' is always enabledKT-12997Override/Implement Members: Support "Copy JavaDoc" options for library classesKT-12887"Extend selection" should select call's invoked expressionKT-13383,KT-13379Override/Implement Members: Do not make return type non-nullable if base return type is explicitly nullableKT-13218Extract Function: Fix AssertionError on callable referencesKT-6520Introduce 'maino' and 'psvmo' templates for generating main in objectKT-13455Override/Implement: Make return type non-nullable (platform collection case) when overriding Java methodKT-10209Find Usages: Do not duplicate containing declaration in super member warning dialogKT-12977Hybrid dependency causes "outdated binary" warning to appear in non-js projectKT-13057Go to inheritors on Enum should navigate to all enum classes- Fix exception when choose Gradle configurer after project is synced
- Allow configuring Kotlin in Gradle module without Kotlin sources
- Show all Kotlin annotations when browsing hierarchy of "java.lang.Annotation"
Completion
KT-12793Suggest abstract protected extension methods
Performance
KT-12645Lazily calculate FQ name for local classesKT-13071Fix severe freezes because of long lint checks on large files
Highlighting
KT-12937Java synthetic accessors highlighting does not differ from local variables
KDoc
KT-12998Backslash is not renderedKT-12999Backtick inside inline code block is not renderedKT-13000Exclamation mark is not renderedKT-10398Fully qualified link is not resolved in editorKT-12932Link to library element is not clickableKT-10654Quick Doc can't follow KDoc link in referenced function descriptionKT-9271Show Quick Doc for implicit lambda parameter 'it'
Formatter
Intention actions, inspections and quickfixes
New features
-
KT-12152"Leaking this" inspection reports dangerous operations inside constructors including:- Accessing non-final property in constructor
- Calling non-final function in constructor
- Using 'this' as function argument in constructor of non-final class
-
KT-13187"Make constructor parameter a val" should make the val private or public depending on its option -
KT-5771Mark setter parameter type as redundant and provide quickfix to remove it -
KT-9228Add quickfix to remove '@' from annotation used as argument of another annotation -
KT-12251Add quickfix to fix type mismatch for primitive literals -
KT-12838Add quickfix for "Illegal usage of inline parameter" that addsnoinline -
KT-13134Add quickfix for wrong Long suffix (UseLinstead ofl) -
KT-10903Add intention to convert lambda to function reference -
KT-7492Support "Create abstract function/property" inside an abstract class -
KT-10668Support "Create member/extension" corresponding to the extension receiver of enclosing function -
KT-12553Show versions in inspection about different version of Kotlin plugin in Maven and IDE plugin -
KT-12489Implement intention to replace camel-case test function name with a space-separated one -
KT-12730Warn about using different versions of Kotlin Gradle plugin and bundled compiler -
KT-13173Handle more cases in "Add Const Modifier" Intention -
KT-12628Quickfix forinvokeoperator unsafe calls -
KT-11425Inspection and quickfix to replace usages ofequals()andcompareTo()with operators -
KT-13113Inspection to detect redundant string templates -
KT-13011Inspection and quickfix for unnecessary lateinit -
KT-10731Inspection and quickfix for unnecessary use of toString() inside string interpolation -
KT-12043Intention to add / remove braces for when entry/entries -
KT-13483Intention to replacea..b-1witha until band vice versa -
KT-6975Quickfix for adding 'inline' to a function with reified generic
Bugfixes
- Show receiver type in the text of "Create extension" quick fix
- Show target class name in the text of "Create member" quick fix
KT-12869Usages of overridden Java method through synthetic accessors are not foundKT-12813"Find Usages" for property returns function callsKT-7722Approximate unresolvable types in "Create from Usage" quickfixesKT-11115Implement Members: Fix base member detection when abstract and non-abstract members with matching signatures are inherited from an interfaceKT-12876Bogus suggestion to move property to constructorKT-13055Exception in "Specify Type Explicitly" intentionKT-12942"Replace 'when' with 'if'" intention changes semantics when 'if' statements are usedKT-12646'Convert to block body' should use partial body resolveKT-12919Use simple class name in "Change function return type" quickfixKT-13151Incorrect warning "Make variable immutable"KT-13170"Declaration has platform type" inspection: by default should not be reported for platform type argumentsKT-13262"Wrap with safe let call" quickfix produces wrong result for qualified functionKT-13364Do not suggest creating annotations/enum classes for unresolved type parameter boundsKT-12627Allow warnings suppression for secondary constructorKT-13365Disable "Create property" (non-abstract) in interfaces. Make "Create function" (non-abstract) generate function body in interfacesKT-8903Remove Unused Receiver: update function/property usagesKT-11799Create from Usage: Make extension functions/properties 'private' by defaultKT-11795Create from Usage: Place extension properties after the usage and generate stub getterKT-12951Prohibit "Convert to expression body" when function body is 'if' without 'else' or 'when' is non-exhaustiveKT-13430"Add non-null asserted (!!) call" quickfix can't process unary operatorsKT-13336"Convert concatenation to template" intention appends literal to variable omitting bracesKT-13328Do not suggest "Replace infix with safe call" inside conditions or binary / unary expressionsKT-13452"Replace if expression with assignment" doesn't work for cascade if-else if-elseKT-13184"Different Kotlin Version" inspection: false positive caused by verbose plugin version nameKT-13480"Can be replaced with comparison" inspection: false positive if extension method called 'equals' is usedKT-13288"Unused property" inspection: false positive when extending abstract class and implementing interfaceKT-13432"Replace with safe call" quickfix does not work withcompareTo()usageKT-13444"Invert if" intention changes semantics for nested if with returnKT-13536Fix StackOverflowError from "Unused Symbol" inspection after importing enum's values()KT-12820Platform Type Inspection: !! quickfix shouldn't be available when any generic parameter has platform typeKT-9825Incorrect "unused variable" warning when used in finally blockKT-13715Prohibit applying "Change to star projection" to functional types
Refactorings
New features
KT-12017Inline Property: Support "Do not show this dialog" and "Inline this occurrence" options
Bugfixes
KT-11176Add a space before '{' in functions generated "Generate hashCode/equals/toString"KT-12294Introduce Property: Fix extraction of expressions referring to primary constructor parametersKT-12413Change Signature: Fix bogus warning about unresolved type parameters/invalid functional type replacementKT-12084Introduce Property: Do not skip outer classes if extractable expression is contained in object literalKT-13082Rename: Fix exception on property rename previewKT-13207Safe delete: Fix exception when removing any function in 2016.2KT-12945Rename: Fix function description in super method warning dialogKT-12922Introduce Variable: Do not suggest expressions without typeKT-12943Rename: Show function signatures in "Rename Overloads" dialogKT-13157Extract Function: Automatically quote function name if necessaryKT-13010Extract Function: Fix generation of destructuring declarationsKT-13128Introduce Variable: Retain entered name after changing "Specify type explicitly" optionKT-13054Introduce Variable: Skip leading/trailing comments inside selectionKT-13385Move: Quote package name (if necessary) when moving declarations to new fileKT-13395Introduce Property: Fix duplicate count in popup windowKT-13277Change Signature: Fix usage processing to prevent interfering with Python support pluginKT-13254Rename: Conflict detection for type parametersKT-13282,KT-13283Rename: Fix name quoting for automatic renamersKT-13239Rename: Warn about function name conflictsKT-13174Move: Warn about accessibility conflicts due to moving to unrelated moduleKT-13175Move: Warn about accessibility conflicts when moving entire fileKT-13240Rename: Do not report shadowing conflict if redeclaration is detectedKT-13253Rename: Report conflicts for constructor parametersKT-12971Push Down: Do not specifiy visibility on generated overriding membersKT-13124Pull Up: Skip super members without explicit declarationsKT-13032Rename: Support accessors with non-conventional namesKT-13463Rename: Quote parameter name when necessaryKT-13476Rename: Fix parameter rename when new name matches call selectorKT-9381Rename: Do not search for component convention usagesKT-13488Rename: Support rename of packages with non-standard quoted names
Debugger
New features
KT-7549Provide an option to use the Kotlin syntax when evaluating watches and expressions in Java files
Bugfixes
KT-13059Fix error stepping on Step Over action in the end of while blockKT-13037Fix possible deadlock in debugger in 2016.1 and exception in 2016.2KT-12651Fix exception in evaluate expression when bad identifier is used for marking objectKT-12896Fix "Step In" to inline functions for AndroidKT-13269Make quick evaluate work on receiver in qualified expressionsKT-12641Unknown error on evaluate expression containing inline functions with complicated environmentKT-13163Fix exception when evaluating expression: Access is allowed from event dispatch thread only.
JS
New features
KT-3008Option to generate require.js and AMD compatible modulesKT-5987Add ability to refer to classKT-4115Provide method to get Kotlin type name
Bugfixes
KT-8003Compiler exception on 'throw throw'KT-8318Wrong result for 'when' containing only 'else' blockKT-12157Compiler exception onwhencondition containingreturn,breakorcontinueKT-12275Fix code generation with inline function call in condition ofwhile/do..whileKT-13160Fix compiler exception when left-hand side of assignment is array access and right-hand side is inline functionKT-12864Make enums comparableKT-12865Implementing Comparable breaks inheritanceKT-12928Nested inline causes undefined reference accessKT-12929Code with callable reference crashed at runtime (in some JS VMs)KT-13043Invalid invocation generated for secondary constructor that calls constructor from base class with default parametersKT-13025'function?.invoke' does not work properly with extension functionsKT-12807Lambda was lost in generated codeKT-12808Compiler duplicates arguments and the body of lambda when lambda is in RHS of assignment operatorKT-12873Fix ReferenceError when class delegates to complex expressionKT-13658Wrong code when capturing object
Tools
Gradle
- Gradle versions < 2.0 are not supported
KT-13234Setting kotlinOptions.destination and kotlinOptions.classpath is deprecatedKT-9392Kotlin classes are missing after converting Java class to KotlinKT-12736Kotlin classes are deleted when generated Java source is changedKT-12658Build fails after android resources are editedKT-12750Non clean compilation fails with gradle 2.14KT-12912New class from subproject is unresolved with subsequent build with Gradle DaemonKT-12962Incremental compilation: Track changes in generated filesKT-12923Incremental compilation: Compile error when code using internal class is modifiedKT-13528Incremental compilation: support multi-project incremental compilationKT-13732Android Build folder littered withcopyFlavourTypeXXX
KAPT
New features
KT-13499Implement Annotation Processing API (JSR 269) natively in Kotlin
Bugfixes
KT-12776Android build fails with KAPT and generateStubs depending on library module namesKT-13179Java is recompiled every time with Gradle 2.14 and KAPTKT-12303,KT-12113Do not pass non-relevant annotations to processors
REPL
KT-12389REPL just quits when toString() of user class throws an exception
CLI & Ant
KT-13237Include kotlin-reflect.jar to classpath by default, add '-no-reflect' key to suppress this behavior
CLI
KT-13491Support '-no-reflect' in 'kotlin' command
Maven
KT-13211Provide better compilation failure info for TeamCity builds
Compiler daemon
- Fix exception "java.lang.NoClassDefFoundError: Could not initialize class kotlin.Unit"
1.0.3
Compiler
Analysis & diagnostics
- Combination of
openandoverrideis no longer a warning KT-4829Equal conditions inwhenis now a warningKT-6611"This cast can never succeed" warning is no longer reported forFoo<T> as Foo<Any>KT-7174Declaring members with the same signature as non-overridable methods from Java classes (like Object.wait/notify) is now an error (when targeting JVM)KT-12302abstractmodifier for a member of interface is no longer a warningKT-12452openmodifier for a member of interface without implementation is now a warningKT-11111Overriding by inline function is now a warning, overriding by a function with reified type parameter is an errorKT-12337Reference to a property with invisible setter now has KProperty type (as opposed to KMutableProperty)
Issues fixed
KT-4285No warning for a non-tail call when the method inherits default arguments from superclassKT-4764Spurious "Variable must be initialized" in try/catch/finallyKT-6665Unresolved reference leads to marking subsequent code unreachableKT-11750Exceptions when creating various entries with the name "name" in enumsKT-11998Smart cast to not-null is not performed on a boolean property inifconditionKT-10648Exhaustiveness check does not work when sealed class hierarchy contains intermediate sealed classesKT-10717Type inference for lambda with local returnKT-11266Fixed "Empty intersection of types" internal compiler error for some casesKT-11857Fix visibility check for dynamic members within protected method (when targeting JS)KT-12589Improved "infixmodifier is inapplicable" diagnostic messageKT-11679Erroneous call with argument causes Throwable at ResolvedCallImpl.getArgumentMapping()KT-12623Fix ISE on malformed code
JVM code generation
KT-5075Optimize array/collection indices usage inforloopKT-11116Optimize coercion to Unit, POP operations are backward-propagated
Issues fixed
KT-11499Compiler crashes with "Incompatible stack heights"KT-11943CompilationException with extension property of KClassKT-12125Wrong increment/decrement on Byte/Char/Short.MAX_VALUE/MIN_VALUEKT-12192Exhaustiveness check isn't generated for when expression returning UnitKT-12200Erroneously optimized away assignment to a property initialized to zeroKT-12582"VerifyError: Bad local variable type" caused by explicit loop variable typeKT-12708Bridge method not generated when data class implements interface with copy() methodKT-12106import static of reified companion object method throws IllegalAccessError
Performance
- Reduced number of IO operation when loading kotlin compiled classes
Сompiler options
- Allow to specify version of Kotlin language for source compatibility with older releases.
- CLI:
-language-versioncommand line option - Maven:
languageVersionconfiguration parameter, linked withkotlin.compiler.languageVersionproperty - Gradle:
kotlinOptions.languageVersionproperty in task configuration
- CLI:
- Allow to specify which java runtime target version to generate bytecode for.
- CLI:
-jvm-targetcommand line option - Maven:
jvmTargetconfiguration parameter, linked withkotlin.compiler.jvmTargetproperty - Gradle:
kotlinOptions.jvmTargetproperty in task configuration
- CLI:
- Allow to specify path to JDK to resolve classes from.
- CLI:
-jdk-homecommand line option - Maven:
jdkHomeconfiguration parameter, linked withkotlin.compiler.jdkHomeproperty - Gradle:
kotlinOptions.jdkHomeproperty in task configuration
- CLI:
Standard Library
- Improve documentation (including
KT-11632) - List iteration used in collection operations is performed with an indexed loop when the list supports
RandomAccessand the operation isn't inlined
IDE
Completion
New features
- Smart completion after
byandin - Improved completion in bodies of overridden members (when no type is specified)
- Improved presentation of completion items for property accessors
- Fixed keyword completion after
tryin assignment expression KT-8527Include non-imported declarations on the first completionKT-12068Special completion item for "[]" get-operator accessKT-12080Parameter names are now higher up in completion list
Issues fixed
- Fixed enum members being present in completion as static members
- Fixed QuickDoc not working for properties generated for java classes
KT-9166Code completion does not work for synthetic java properties on typing "g"KT-11609No named arguments completion should be after dotKT-11633Wrong indentation after completing a statement in data classKT-11680Code completion of label for existing return with value inserts redundant whitespaceKT-11784Completion forifstatement should add parentheses automaticallyKT-11890Completion for callable references does not propose static Java membersKT-11912String interpolation is not converted to ${} form when accessing this.propertyKT-11957Nocatchandfinallykeywords in completionKT-12103Smart completion for nested SAM-adapter produces short unresolved nameKT-12138Do not show "::error" in smart completion when any function type accepting one argument is expectedKT-12150Smart completion suggests to compare non-nullable with nullKT-12124No code completion for a java property in a specific positionKT-12299Completion: incorrect priority of property foo over method getFoo in Kotlin-only codeKT-12328Qualified function name inserted when typing beforeifKT-12427Completion doesn't work for "@receiver:" annotation targetKT-12447Don't use CompletionProgressIndicator in Kotlin pluginKT-12669Completion should show variant with()when there is default lambdaKT-12369Pressing dot after class name should not cause insertion of constructor call
Spring support
New features
KT-11692Support Spring model diagrams for Kotlin classesKT-12079Support "Autowired members defined in invalid Spring bean" inspection on Kotlin declarationsKT-12092Implement bean references in @Qualifier annotationsKT-12135Automatically configure components based onbasePackageClassesattribute of @ComponentScanKT-12136Implement package references inside of string literalsKT-12139Support Spring configurations linked via @Import annotationKT-12278Implement Spring @Autowired inspectionKT-12465Implement Spring @ComponentScan inspection
Issues fixed
KT-12091Fixed unstable behavior of Spring line markersKT-12096Fixed rename of custom-named beans specified with Kotlin annotationKT-12117Group Kotlin classes from the same file in the Choose Bean dialogKT-12120Show autowiring candidates line markers for @Autowired-annotated constructors and constructor parametersKT-12122Fixed line marker popup on functions with @Qualifier-annotated parametersKT-12143Fixed "Spring Facet Code Configuration (Kotlin)" inspection descriptionKT-12147Fixed exception on analyzing object declaration with @Component annotationKT-12148Warn about object declarations annotated with Spring@Configuration/@Component/etc.KT-12363Fixed "Autowired members defined in invalid Spring bean (Kotlin)" inspection descriptionKT-12366Fixed exception on analyzing class declaration upon annotation typingKT-12384Fixed bean references in factory method calls
Intention actions, inspections and quickfixes
New features
- New icon for "New -> Kotlin Activity" action
- "Change visibility on exposure" and "Make visible" fixes now support all possible visibilities
KT-8477New inspection "Can be primary constructor property" with quick-fixKT-5010"Redundant semicolon" inspection with quickfixKT-9757Quickfix for "Unused lambda expression" warningKT-10844Quick fix to add crossinline modifierKT-11090"Add variance modifiers to type parameters" inspectionKT-11255Move Element Left/Right actionsKT-11450"Modality is redundant" inspectionKT-11523"Add @JvmOverloads annotation" intentionKT-11768"Introduce local variable" intentionKT-11806Quick-fix to increase visibility for invisible memberKT-11807Use function body template when generating overriding functions with default bodyKT-11864Suggest "Create function/secondary constructor" quick fix on argument type mismatchKT-11876Quickfix for "Extension function type is not allowed as supertype" errorKT-11920"Increase visibility" and "Decrease visibility" quickfixes for exposed visibility errorsKT-12089Quickfix "Make primary constructor parameter a property"KT-12121"AddtoString()call" quickfixKT-11104New quickfixes for nullability problems: "Surround with null check" and "Wrap with safe let call"KT-12310New inspection "Member has platform type" with quickfix
Issues fixed
- Fixed "Convert property initializer getter" intention being available inside lambda initializer
- Improved message for "Can be declared as
val" inspection KT-3797Quickfix to make a function abstract should not be offered for object membersKT-11866Suggest "Create secondary constructor" when constructors exist but are not applicableKT-11482Fixed exception in "Move to companion object" intentionKT-11483Pass implicit receiver as argument when moving member function to companion objectKT-11512Allow choosing any source root in "Move file to directory" intentionKT-10950Keep original file package name when moving top-level declarations to separate file (provided it's not ambiguous)KT-10174Optimize imports after applying "Move declaration to separate file" intentionKT-11764Intention "Replace with aforEachfunction call should replacecontinuewithreturn@forEachKT-11724False suggestion to replace with compound assignmentKT-11805Invert if-condition intention breaks code in case of end of line commentKT-11811"Make protected" intention for a val declared in parameters of constructorKT-11710"Replaceifwith elvis operator": incorrect code generated forifexpressionKT-11849Replace explicit parameter withitchanges the meaning of code because of the shadowingKT-11870"Replace with Elvis" refactoring doesn't change the variable type from T? to TKT-12069Specify language for all Kotlin code inspectionsKT-11366"objectCompanionis never used" warning in intellijKT-11275Inconsistent behaviour of "move lambda argument out of parentheses" intention action when using lambda calls with function arguments without parenthesesKT-11594"Add non-null asserted (!!) call" applied to unsafe cast to nullable type causes AE at KtPsiFactory.createExpression()KT-11982False "Redundant final modifier" reportedKT-12040"Replace when with if" produce invalid code for first entry which has commentKT-12204"Use classpath of module" option in existing Kotlin run configuration may be changed when a new run configuration is createdKT-10635Don't mark private writeObject and readObject methods of Serializable classes as unusedKT-11466"Make abstract" quick fix applies to outer class of object with accidentally abstract functionKT-11120Constructor parameter/field reported as unused symbol even if it haveusedannotationKT-11974Invert if-condition intention loses commentsKT-10812Globally unused constructors are not marked as suchKT-11320Don't mark @BeforeClass (JUnit4) annotated functions as unusedKT-12267"Change type" quick fix converts to Int for Long literalKT-11949Various problems fixed with "Constructor parameter is never used as a property" inspectionKT-11716"Simplyforusing destructuring declaration" intention: incorrect behavior for data classesKT-12145"Simplifyforusing destructuring declaration" should work even when no variables declared inside loopKT-11933Entities used only by alias are marked as unusedKT-12193Convert to block body isn't equivalent for when expressions returning UnitKT-10779Simplifyforusing destructing declaration: intention / inspection quick fix is available only when all variables are usedKT-11281Fix exception on applying "Convert to class" intention to Java interface with Kotlin inheritor(s)KT-12285Fix exception on test class generationKT-12502Convert to expression body should be forbidden for non-exhaustive when returning UnitKT-12260ISE while replacing an operator with safe callKT-12649"Convert if to when" intention incorrectly deletes codeKT-12671"Shot type" action: "Type is unknown" error on an invoked expressionKT-12284Too wide applicability range for "Add braces to else" intentionKT-11975"Invert if-condition" intention does not simplifyisexpressionKT-12437"Replace explicit parameter" intention is suggested for parameter of inner lambda in presence ofitfrom outer lambdaKT-12290Navigate to the generated declaration when using "Implement abstract member" intentionKT-12376Don't show "Package directive doesn't match file location" in injected codeKT-12777Fix exception in "Create class" quickfix applied to unresolved references in type arguments
Language injection
- Apply injection for the literals in property initializer through property usages
- Enable injection from Java or Kotlin function declaration by annotating parameter with @Language annotation
KT-2428Support basic use-cases of language injection for expressions marked with @Language annotationKT-11574Support predefined Java positions for language injectionKT-11472Add comment or @Language annotation after "Inject language or reference" intention automatically
Refactorings
New features
KT-6372Add name suggestions to Rename dialogKT-7851Respect naming conventions in automatic variable renameKT-8044,KT-9432Support @JvmName annotation in rename refactoringKT-8512Support "Rename tests" options in Rename dialogKT-9168Support rename of synthetic propertiesKT-10578Support automatic test renaming for facade filesKT-12657Rename implicit usages of annotation methodvalueKT-12759Suggest renaming both property accessors with matching @JvmName when renaming one of them from Java
Issues fixed
KT-4791Rename overridden property and all its accessors on attempt to rename overriding accessor in Java codeKT-6363Do not rename ambiguous references in import directivesKT-6663Fixed rename of ambiguous import reference to class/function when some referenced declarations are not changedKT-8510Preserve "Search in comments and strings" and "Search for text occurrences" settings in Rename dialogKT-8541,KT-8786Do now show 'Rename overloads' options if target function has no overloadsKT-8544Show more detailed description in Rename dialogKT-8562Show conflicts dialog on attempt of redeclarationKT-8611Qualify class references to resolve rename conflicts when possibleKT-8732Implement Rename conflict analysis and fixes for properties/parametersKT-8860Allow renaming class by constructor delegation call referencing primary constructorKT-8892Suggest renaming base declarations on overriding members in object literalsKT-9156Quote non-identifier names in Kotlin referencesKT-9157Fixed in-place rename of Kotlin expression referring Java declarationKT-9241Do not replace Java references to synthetic component functions when renaming constructor parameterKT-9435Process property accessor usages (Java) in comments and string literalsKT-9444Rename dialog: Allow typing any identifier without backquotesKT-9446Copy default parameter values to overriding function which is renamed while its base function is notKT-9649Constraint search scope of parameter declared in a private memberKT-10033Qualify references to members of enum companions in case of conflict with enum entriesKT-10713Skip read-only declarations when renaming parametersKT-10687Qualify property references to avoid shadowing by parametersKT-11903Update references to facade class when renaming file via matching top-level classKT-12411Fix package name quotation in Move refactoringKT-12543Qualify property references withthisto avoid renaming conflictsKT-12732Copy default parameter values to overriding function which is renamed by Java reference while its base function is unchangedKT-12747Fix exception on file copy
Java to Kotlin converter
New features
KT-4727Convert Java code copied from browser or other sources
Issues fixed
KT-11952Assertion failed in PropertyDetectionCache.get on conversion of access to Java constant of anonymous typeKT-12046Recursive property setterKT-12039Static imports converted missing ".Companion"KT-12054Wrong conversion ofinstanceofchecks with raw typesKT-12045ConvertObject()toAny()
Android Lint
Issues fixed
KT-12015False positive for Bundle.getInt()KT-12023"minSdk" lint check doesn't work foras/isKT-12674"Calling new methods on older versions" errors for inlined constantsKT-12681Running lint from main menu: diagnostics reported for java source files onlyKT-12173False positive for "Toast created but not shown" inside SAM adapterKT-12895NoSuchMethodError thrown when saving a Kotlin file
KDoc
New features
- Support for @receiver tag
Issues fixed
- Rendering of
_and*standalone characters - Rendering of code blocks
KT-9933Indentation in code fragments is not preservedKT-10998Spaces around links are missing in return blockKT-11791Markdown links renderingKT-12001Allow use of@paramto document type parameter
Maven support
New features
- Inspections that check that kotlin IDEA plugin, kotlin Maven plugin and kotlin stdlib are of the same version
KT-11643Inspections and intentions to fix erroneously configured Maven pom fileKT-11701"Add Maven Dependency quick fix" in Kotlin source filesKT-11743Intention to replace kotlin-test with kotlin-test-junit
Issues fixed
KT-9492Configuring multiple Maven ModulesKT-11642Kotlin Maven configurator tags orderKT-11436"Choose Configurator" control opens dialogs with inconsistent modality (linux)KT-11731Default maven integration doesn't include documentationKT-12568Execution configuration: file path completion works only in some sub-elements ofKT-12558Configure Kotlin in Project: "Undo" should revert changes in all pomsKT-12512"Different IDE and Maven plugin version" inspection is being invoked for non-tracked pom.xml files
Debugger
New features
KT-11438Support navigation from stacktrace to inline function call site
Issues fixed
- Do not step into inline lambda argument during step over inside inline function body
- Fix step over for inline argument with non-local return
KT-12067Deadlock in Kotlin debugger is fixedKT-12232No code completion in Evaluate Expression and Throwable at CodeCompletionHandlerBase.invokeCompletion()KT-12137Evaluate expression: code completion/intention actions allows to use symbols from modules that are not referencedKT-12206NoSuchFieldError in Evaluate Expression on a property of a derived classKT-12678NoSuchFieldError in Evaluate Expression on accessing delegated property defined in other moduleKT-12773Fix debugging for Kotlin JS projects
Formatter
Issues fixed
KT-12035Spaces aroundasKT-12018Spaces between function name and arguments in infix callsKT-11961Spaces before angle bracket in method definitionKT-12175Don't enforce empty line between secondary constructors without bodyKT-12548Spaces aroundiskeywordKT-12446Spaces before class type parametersKT-12634Spaces between method name and parenthesis in method callKT-10680Spaces aroundinkeywordKT-12791Spaces between curly brace and expression inside string templateKT-12781Spaces between annotation and expressionKT-12689Spaces around semicolonsKT-12714Spaces around parentheses in enum elements
Other
New features
- Added "Decompile" button to Kotlin bytecode toolwindow
- Added Kotlin "Tips of the day"
- Added "Kotlin 1.1 EAP" to "Configure Kotlin Plugin updates"
KT-2919Constructor calls are no longer highlighted as classesKT-6540Infix function calls are now highlighted as regular function callsKT-9410Annotations in Kotlin are now highlighted with the same color as in Java by defaultKT-11465Type parameters in Kotlin are now highlighted with the same color as in Java by defaultKT-11657Allow viewing decompiled Java source code for Kotlin-compiled classesKT-11704Support file path references inside of Kotlin string literalsKT-12076Kotlin Plugin update check: always display installed version numberKT-11814New icon for kotlin annotation classesKT-12735Convert JavaDoc to KDoc when overriding Java class member in Kotlin
Issues fixed
KT-5960Can't find usages for Java methods used from Kotlin by call conventionKT-8362"New Kotlin file": Keywords should be escaped in package nameKT-8682Respect "Copy JavaDoc" option in the "Override/Implement Members..." dialogKT-8817Fixed rename of Java getters/setters through synthetic property references in KotlinKT-9399Find Usages omits Kotlin annotation parameter usage in Java sourceKT-9797"Kotlin Bytecode" toolwindow breaks after closingKT-11145Use progress indicator when searching usages in Introduce ParameterKT-11155Allow running multiple Kotlin classes as well as running mixtures of Kotlin and Java classesKT-11495Show recursion line markers for extension function calls with different receiverKT-11659Generate abstract overrides for Any members inside of Kotlin interfacesKT-12070Add empty line in error message of Maven and Gradle configurationKT-11908Allow properties with custom setters to be used in generated equals/hashCode/toStringKT-11617Fixed title of Introduce Parameter declaration chooserKT-11817Fixed rename of Kotlin enum constants through Java referencesKT-11816Fixed usages search for Safe Delete on simple enum entriesKT-11282Delete interface reference from super-type list when applying Safe Delete to Java interfaceKT-11967Fix Find Usages/Rename for parameter references in XML filesKT-10770"Optimize imports" will not keep import if a type is only referenced by kdocKT-11955Copy/Paste inserts fully qualified name when copying function with overloadsKT-12436"Replace explicit parameter with it": java.lang.Exception at BaseRefactoringProcessor.run()KT-12440Removing unused parameter results in Exception "Refactorings should not be started inside write action"KT-12006getLanguageLevel is slow for Kotlin light classesKT-12026"Constant expression required" in Java for const Kotlin valuesKT-12259ClassCastException in light classes while trying to create generic propertyKT-12289Remove unnecessary?fromserrlive templateKT-12110Map help button of the Compiler - Kotlin pageKT-12075Kotlin Plugin update check: make dumbawareKT-10255call BuildManager.clearState(project) in apply() method of Kotlin Compiler Settings configurableKT-11841New Project / Module wizard, Gradle: pure Kotlin module is created withoutrepositoriescall in build.gradleKT-11095Java cannot infer generic return type of Kotlin function (with java 8 language level)KT-12090Intellij/Kotlin plugin does not handle generic return type of static method defined in Kotlin, called from JavaKT-12206Fix NoSuchFieldError on accessing base property without backing field in evaluate expressionKT-12516File Structure: Kotlin annotation classes have Java annotation iconsKT-11328"New Kotlin class": generates packages when fully qualified name is specifiedKT-11778Exception in Lombok plugin: Rewrite at slice FUNCTIONKT-11708"Go to declaration" doesn't work on a call to function with SAM conversion on a derived typeKT-12381Prefer not-nullable return type when overriding Java method without nullability annotationKT-12647Performance improvement for test-related line markersKT-12526Kotlin intentions increase PSI modification counts from isAvailable, even in daemon threads
Reflection
Issues fixed
KT-11531Optimize "KCallable.name"KT-10771Reflection on Function objects does not support lambdas with generic return typeKT-11824Reflection inconsistency between member property and accessor
JS
- Improve performance of maps and sets
Issues fixed
KT-6942Generate structural equality check (i.e.Any.equals) instead of referential check (===) value equality patterns inwhenKT-7228Wrong AbstractList signatureKT-8299Wrong access to private member in autogenerated code in data classKT-11346Reified functions likefilterIsInstanceare now available in JS Standard LibraryKT-12305Incorrect translation ofvarargin@nativefunctionsKT-12254JsEmptyExpression in initializer when compiling code likeval x = throw Exception()KT-11960Wrong code generated when a method of a local class calls constructor of the classKT-10931Incorrect inlining of library method with optional parametersKT-12417Wrong check cast generated for KMutableProperty
Tools
New features
KT-11839Maven goal to execute kotlin script
Issues fixed
- KAPT: fix error when using enum constructors with parameters
- Various problems with gradle 2.2 fixed:
KT-12478,KT-12406,KT-12478 KT-12595JPS: Fixed com.intellij.util.io.MappingFailedException: Cannot map bufferKT-11166Gradle: Unable to access internal classes from test code within the same moduleKT-12352KAPT: Fix "Classpath entry points to a non-existent location" warningsKT-12074Building Kotlin maven projects using a parent pom will silently failKT-11770Warning "RuntimeException: Could not find installation home path" when using Gradle Incremental CompilationKT-10969Android extensions: NullPointerException when finding view in FragmentKT-11885Gradle/Android: Unresolved reference "kotlinx" when classpath dependency is defined in root build.gradleKT-12786Deprecation warning with Gradle 2.14
1.0.2-1
- KT-12159, KT-12406, KT-12431, KT-12478 Support Android Studio 2.2
- KT-11770 Fix warning "RuntimeException: Could not find installation home path" when using incremental compilation in Gradle
- KT-12436, KT-12440 Fix multiple exceptions during refactorings in IDEA 2016.2 EAP
- KT-12015, KT-12047, KT-12387 Fix multiple issues in Kotlin Lint checks
1.0.2
Compiler
Analysis & diagnostics
- KT-7437, KT-7971, KT-7051, KT-6125, KT-6186, KT-11649 Implement missing checks for protected visibility
- KT-11666 Report "Implicit nothing return type" on non-override member functions
- KT-4328, KT-11497, KT-10493, KT-10820, KT-11368 Report error if some classes were not found due to missing or conflicting dependencies
- KT-11280 Do not perform smart casts for values with custom
equalscompared with== - KT-3856 Fix wrong "inner class inaccessible" diagnostic for extension to outer class
- KT-3896, KT-3883, KT-4986
do...while (true)is now considered an infinite loop - KT-10445 Prohibit initialization of captured
valin lambda or in local function - KT-10042 Correctly handle local classes and anonymous objects in control flow analysis
- KT-11043 Prohibit complex expressions with class literals in annotation arguments
- KT-10992, KT-11007 Fix multiple problems related to smart casts
- KT-11490 Prohibit nested intersection types in return position
- KT-11411 Report "illegal noinline/crossinline" on parameter of subtype of function type
- KT-3083 Report "conflicting overloads" for functions with parameter of type parameter type
- KT-7265 Parse anonymous functions in blocks as expressions
- KT-8246 Handle break/continue for outer loop correctly in case of try/finally in between
- KT-11300 Report error on increment or augmented assignment when
getis an operator butsetis not - Report warning about unused anonymous functions
- Improve callable reference type in some ambiguous cases
- Improve multiple diagnostic messages: KT-10761, KT-9760, KT-10949, KT-9887, KT-9550, KT-11239, KT-11819
- Fix several compiler bugs leading to exceptions: KT-9820, KT-11597, KT-10983, KT-10972, KT-11287, KT-11492, KT-11765, KT-11869
JVM code generation
- KT-8269, KT-9246, KT-10143 Fix visibility of protected classes in bytecode
- KT-11363 Fix potential binary compatibility breakage on using
whenover enums in inline functions - KT-11762 Fix VerifyError caused by explicit loop variable type
- KT-11645 Fix NoSuchFieldError on private const property in multi-file class
- KT-9670 Optimize Class <-> KClass wrapping/unwrapping when getting values from annotation
- KT-6842 Optimize unnecessary boxing and interface calls on iterating over ranges
- KT-11025 Don't inline const val properties in non-annotation contexts
- KT-5429 Write nullability annotations on extension receiver parameters
- KT-11347 Preserve source file and line number of call site when inlining certain standard library functions
- KT-11677 Write correct generic signatures for local classes in inlined lambdas
- KT-12127 Do not write unnecessary generic signature for property delegate backing field
- Fix multiple issues leading to exceptions or bad bytecode being generated: KT-11034, KT-11519, KT-11117, KT-11479
Java interoperability
- KT-3068 Load contravariantly projected collections in Java (
List<? super T>) as mutable collections in Kotlin (MutableList<in T>) - KT-11322 Do not lose type nullability information in SAM constructors
- KT-11721 Fix wrong "Typechecker has run into recursive problem" error on calling Kotlin get function as synthetic Java property
- KT-10691 Fix wrong "Inherited platform declarations clash" error on inheritance from generic Java class with overloaded methods
Command line compiler
- KT-9546 Flush stdout and stderr before shutdown when executing scripts
- KT-10605 Disable colored output on certain platforms to prevent crashes
- Report warning instead of error on unknown "-X" flags
- Remove the compiler option "Xmultifile-facades-open"
Compiler daemon
- Reduce read disk activity
- Fix compiler daemon JAR cache clearing on IDEA Ultimate
Standard library
- KT-11410 Reduce method count of the standard library by ~2k
- KT-9990 Optimize snapshot operations to return special collection implementations when result is empty or has single element
- KT-10794 EmptyList now implements RandomAccess
- KT-10821 Create at most one wrapper sequence for adjacent drop/take operations on sequences
- KT-11301 Make Map.plus accept Map out-projected by key type as either operand (receiver or parameter)
- KT-11485 Remove implementations of some internal intrinsic functions
- KT-11648 Add deprecated extension MutableList.remove to redirect to valid function removeAt
- KT-11348 kotlin.test: Make inline methods
todoandcurrentStackTrace@InlineOnlynot to lose stack trace - KT-11745 Rename parameters of
String.subSequenceto match those ofCharSequence.subSequence - KT-10953 Clarify parameter order of lambda function parameter of
*Indexedfunctions - KT-10198 Improve docs for
binarySearchfunctions - KT-9786 Improve docs for
trimIndent/trimMargin
Reflection
- KT-9952 Improve
toString()for lambdas and function expressions when kotlin-reflect.jar is available - KT-11433 Fix multiple resource leaks by closing InputStream instances
- KT-8131 Fix exception from calling
KProperty.javaFieldon a subclass - KT-10690 Support
javaMethodandkotlinFunctionfor top level functions in a different file - KT-11447 Support reflection calls to multifile class members
- KT-10892 Load annotations of const properties from multifile classes
- KT-11258 Don't crash on requesting members of Java collection classes
- KT-11502 Clarify KClass equality
JS
- KT-4124 Support nested classes
- KT-11030 Support local classes
- KT-7819 Support non-local returns in local lambdas
- KT-6912 Safe calls (
x?.let { it }) are now inlined - KT-2670 Support unsafe casts (
as) - KT-7016, KT-8012 Fix
is-checks for reified type parameters - KT-7038 Avoid unwanted side effects on
is-checks for nullable types - KT-10614 Copy array on vararg call with spread operator
- KT-10785 Correctly translate property names and receiver instances in assignment operations
- KT-11611 Fix translation of default value of secondary constructor's functional parameter
- KT-11100 Fix generation of
invokeon objects and companion objects - KT-11823 Fix capturing of outer class'
thisin inner's lambdas - KT-11996 Fix translation of a call to a private member of an outer class from an inner class which is a subtype of the outer class
- KT-10667 Support inheritance from nested built-in types such as Map.Entry
- KT-7480 Remove declarations of LinkedList, SortedSet, TreeSet, Enumeration
- KT-3064 Implement
CharSequence.repeat
IDE
New features:
- Spring Support
- KT-11098 Inspection on final classes/functions annotated with Spring
@Configuration/@Component/@Bean - KT-11405 Navigation and Find Usages for Spring beans referenced in annotation arguments and BeanFactory method calls
- KT-3741 Show Spring-specific line markers on Kotlin classes
- KT-11406 Support Spring EL injections inside of Kotlin string literals
- KT-11604 Support "Configure Spring facet" inspection on Kotlin classes
- KT-11407 Implement "Generate Spring Dependency..." actions
- KT-11408 Implement "Generate
@AutowiredDependency..." action - KT-11652 Rename bean attributes mentioned in Spring XML config together with corresponding Kotlin declarations
- KT-11098 Inspection on final classes/functions annotated with Spring
- Enable precise incremental compilation by default in non-Maven/Gradle projects
- KT-11612 Highlight named arguments
- KT-7715 Highlight
vars that can be replaced byvals - KT-5208 Intention action to convert string to raw string and back
- KT-11078 Quick fix to remove
.javawhen KClass is expected - KT-1494 Inspection to highlight public members with no documentation
- KT-8473 Intention action to implement interface or abstract class
- KT-10299 Inspection to warn on array properties in data classes
- KT-6674 Inspection to warn on protected symbols in effectively final classes
- KT-11576 Quick fix to suppress "Unused symbol" warning based on annotations on the declaration
- KT-10063 Quick fix for adding
arrayOfwrapper for annotation parameters - KT-10476 Quick fix for converting primitive types
- KT-10859 Quick fix to make
varwith private setter final - KT-9498 Quick fix to specify property type
- KT-10509 Quick fix to simplify condition with senseless comparison
- KT-11404 Quick fix to let type implement missing interface
- KT-6785, KT-10013, KT-9996, KT-11675 Support Smart Enter for trailing lambda argument, try/catch/finally, property setter, init block
- Add
kotlinClassName()andkotlinFunctionName()macros for use in live templates - Auto-configure EAP-repository during Kotlin Maven and Gradle project set up
Issues fixed:
- KT-11678, KT-4768 Support navigation to Kotlin libraries from Java sources
- KT-9401 Support Change Signature quick fix for Java -> Kotlin case
- KT-8592 Fix "Choose sources" for Kotlin files
- KT-11256 Fix Navigate to declaration for Java constructor with
@NotNullparameter - KT-11018 Fix
vars shown in Ctrl + Mouse Hover asvals - KT-5105, KT-11024 Improve incompatible ABI versions editor strap, show the hint on how to resolve the problem
- KT-11638 Fixed
hashCode()implementation in "Generate equals/hashCode" action - KT-10971 Pull Members Up: Always insert spaces between keywords
- KT-11476, KT-4175, KT-10965, KT-11076 Formatter: fix multiple issues regarding space handling
- KT-9025 Improve "Create Kotlin Java runtime library" dialog usability
- KT-11481 Fix "Add import" intention not being available for
isbranches in when - KT-10619 Fix completion after package name in annotation
- KT-10621 Do not show non-top level packages after
@in completion - KT-11295 "Convert string to template" intention: fix exception on certain code
- KT-10750, KT-11424 "Convert if to when" intention now detects effectively else branches in subsequent code and performs more accurate comment handling
- Configure Kotlin: show only changed files in the notification "Kotlin not configured", restore all changed files in undo action
- KT-11556 Do not show "Kotlin not configured" for Kotlin JS projects
- KT-11593 Fix "Configure Kotlin" action for Gradle projects in IDEA 2016
- KT-11077 Use new built-in definition file format (
.kotlin_builtinsfiles) - KT-5728 Remove closing curly brace in a string template when opening one is deleted
- KT-10883 "Explicit get or set call" quick fix: do not move caret too far away
- KT-5717 "Replace
whenwithif": do not lose comments - KT-10797 "Replace with operator" intention is not available anymore for non-
operatorfunctions - KT-11529 Highlighting range for unresolved annotation name does not include
@now - KT-11178 Don't show "Change type arguments" fix when there's nothing to change
- KT-11789 Don't interpret annotations inside Markdown code blocks as KDoc tags
- KT-11702 Fixed resolution of Kotlin beans with custom name
- KT-11689 Fixed exception on attempt to navigate to Kotlin file from Spring notification balloon
- KT-11725 Fixed renaming of injected SpEL references
- KT-11720 Fixed renaming of Kotlin beans through SpEL references
- KT-11719 Fixed renaming of Kotlin parameters references in XML files
- KT-11736 Fixed searching of Java usages for @JvmStatic properties and @JvmStatic @JvmOverloads functions
- KT-11862 Fixed bogus warnings about unresolved types in the Change Signature dialog
- Fix several issues leading to exceptions: KT-11579, KT-11580, KT-11777, KT-11868, KT-11845, KT-11486
- Fixed NoSuchFieldException in Kotlin module settings on IDEA Ultimate
Debugger
- KT-11705 "Smart step into" no longer skips methods from subclasses
- Debugger can now distinguish nested inline arguments
- KT-11326 Support private classes in Evaluate Expression
- KT-11455 Fix Evaluate Expression behavior for files with errors in sources
- KT-10670 Fix Evaluate Expression behavior for inline functions with default parameters
- KT-11380 Evaluate Expression now handles smart casts correctly
- KT-10148 Do not suggest methods from outer context in "Smart step into"
- Fix Evaluate Expression for expression created for array element
- Complete private members from libraries in Evaluate Expression
- KT-11578 Evaluate Expression: do not highlight completion variants from nullable receiver with grey
- KT-6805 Convert Java expression to Kotlin when opening Evaluate Expression from Variables view
- KT-11927 Fix "ambiguous import" error when invoking Evaluate Expression from Variables view for some field
- KT-11831 Fix Evaluate Expression for values of raw types
- Show error message when debug info for some local variable is corrupted
- Avoid 1s delay in completion in debugger fields if session is not stopped on a breakpoint
- Avoid cast to runtime type unavailable in current scope
- Fix text with line breaks in popup with line breakpoint variants
- Fix breakpoints inside inline functions in libraries sources
- Allow breakpoints at catch clause declaration
- KT-11848 Fix breakpoints inside generic crossinline lambda argument body
- KT-11932 Fix Step Over for
whileloop condition
Java to Kotlin converter
- Protected members used outside of inheritors are converted as public
- Support conversion for annotation constructor calls
- Place comments from the middle of the call to the end
- Drop line breaks between operator arguments (except
+,-,&&and||) - Add non-null assertions on call site for non-null parameters
- Specify type for variables with anonymous type if they have write accesses
- KT-11587 Fix conversion of static field accesses from other Java class
- KT-6800 Quote
$symbols in converted strings - KT-11126 Convert annotations in annotations parameters correctly
- KT-11600 Do not produce unresolved
toArraycalls for JavaCollection#toArray(T[]) - KT-11544 Fix conversion of uninitialized non-final field
- KT-10604 Fix conversion of scratch files
- KT-11543 Do not produce unnecessary casts of non-nullable expression to nullable type
- KT-11160 Fix IDE freeze
Android
- KT-7729 Add Android Lint checks for Kotlin (from Android Studio 1.5)
- KT-11487 Fixed sequential build with kapt and stubs enabled when Kotlin source file was modified and no Java source files were modified
- KT-11264 Action to create new activity in Kotlin
- KT-11201 Do not ignore items with similar names in kapt
- KT-11944 Rename Android Extensions imports when the layout file is renamed/deleted/added
- KT-10321 Do not upcast ViewStub to View
- KT-10841 Support
@android:id/*IDs in Android Extensions
Maven
Gradle
- KT-8487 Experimental support for incremental compilation with project property
kotlin.incremental - KT-11350 Fixed a bug causing Java rebuild when both Java and Kotlin are up-to-date
- KT-10507 Fix IllegalArgumentException "Missing extension point" on parallel builds
- KT-10932 Prevent compile tasks from running when nothing changes
- KT-11993 Fix NoSuchMethodError on access to internal members in production from tests (IDEA 2016+)
1.0.1-2
Compiler
- KT-11584, KT-11514 Correct comparison of Long! / Double! with integer constant
- KT-11590 SAM adapter for inline function corrected
1.0.1-1
Compiler
- KT-11468 More correct use-site / declaration-site variance combination handling
- KT-11478 "Couldn't inline method call" internal compiler error fixed
1.0.1
Compiler
Analysis & diagnostics issues fixed:
- KT-2277 Local function declarations are now checked for overload conflicts
- KT-3602 Special diagnostic is reported now on nullable ‘for’ range
- KT-10775 No compilation exception for empty when
- KT-10952 False deprecation warnings removed
- KT-10934 Type inference improved for whens
- KT-10902 Redeclaration is reported for top-level property vs classifier conflict
- KT-9985 Correct handling of safe call arguments in generic functions
- KT-10856 Diagnostic about projected out member is reported correctly on calls with smart cast receiver
- KT-5190 Calls of Java 8 Stream.collect
- KT-11109 Warning is reported on Strictfp annotation on a class because it's not supported yet
- KT-10686 Support generic constructors defined in Java
- KT-6958 Fixed resolution for overloaded functions with extension lambdas
- KT-10765 Correct handling of overload conflict between constructor and function in JPS
- KT-10752 If inferred type for an expression refers to a non-accessible Java class, it's a compiler error to prevent IAE in runtime
- KT-7415 Approximation of captured types in signatures
- KT-10913, KT-10186, KT-5198 False “unreachable code” fixed for various situations
- Minor: KT-3680, KT-9702, KT-8776, KT-6745, KT-10919, KT-9548
JVM code generation issues fixed:
- KT-11153 NoClassDefFoundError is fixed on primitive iterators during boxing optimization
- KT-7319 Correct parameter names for @JvmOverloads-generated methods
- KT-10425 Non-const values of member properties are not inlined now
- KT-11163 Correct calls of custom compareTo on primitives
- KT-11081 Reified type parameters are correctly stored in anonymous objects
- KT-11121 Generic properties generation is fixed for interfaces
- KT-11285, KT-10958 Special bridge generation refined
- KT-10313, KT-11190, KT-11192, KT-11130 Diagnostics and bytecode fixed for various operations with Long
- KT-11203, KT-11191, KT-11206, KT-8505, KT-11203 Handling of increment / decrement for collection elements with user-defined get / set fixed
- KT-9739 Backticked names with spaces are generated correctly
JS translator issues fixed:
Standard library
- KT-10579 Improved performance of sum() and average() for arrays
- KT-10821 Improved performance of drop() / take() for sequences
Reflection
- KT-10840 Fix annotations on Java elements in reflection
IDE
New features:
- Compatibility with IDEA 2016
- Kotlin Education Plugin (for IDEA 2016)
- KT-9752 More usable file chooser for "Move declaration to another file"
- KT-9697 Move method to companion object and back
- KT-7443 Inspection + intention to replace assert (x != null) with "!!" or elvis
General issues fixed:
- KT-11277 Correct moving of Java classes from project view
- KT-11256 Navigate Declaration fixed for Java classes with @NotNull parameter in constructor
- KT-10553 A warning provided when Refactor / Move result is not compilable due to visibility problems
- KT-11039 Parameter names are now not missing in parameter info and completion for compiled java code used from kotlin
- KT-10204 Highlight usages in file is working now for function parameter
- KT-10954 Introduce Parameter (Ctrl+Alt+P) fixed when default value is a simple name reference
- KT-10776 Intentions: "Convert to lambda expression" works now for empty function body
- KT-10815 Generate equals() and hashCode() is no more suggested for interfaces
- KT-10818 "Initialize with constructor parameter" fixed
- KT-8876 "Convert member to extension" now removes modality modifiers (open / final)
- KT-10800 Create enum entry now adds comma after a new entry
- KT-10552 Pull Members Up now takes visibility conflicts into account
- KT-10978 Partially fixed, completion for JOOQ became ~ 10 times faster
- KT-10940 Reference search optimized for convention functions
- KT-9026 Editor no more locks up during scala file viewing
- KT-11142, KT-11276 Darkula scheme appearance corrected for Kotlin
- Minor: KT-10778, KT-10763, KT-10908, KT-10345, KT-10696, KT-11041, KT-9434, KT-8744, KT-9738, KT-10912
Configuration issues fixed:
- KT-11213 Kotlin plugin version corrected in build.gradle
- KT-10918 "Update Kotlin runtime" action does not try to update the runtime coming in from Gradle
- KT-11072 Libraries in maven, gradle and ide systems are never more detected as runtime libraries
- KT-10489 Configuration messages are aggregated into one notification
- KT-10831 Configure Kotlin in Project: "All modules containing Kotlin files" does not list modules not containing Kotlin files
- KT-10366 Gradle import: no fake "Configure Kotlin" notification on project creating
Debugger issues fixed:
- KT-10827 Fixed debugger stepping for inline calls
- KT-10780 Breakpoints in a lazy property work correctly
- KT-10634 Watches can now use private overloaded functions
- KT-10611 Line breakpoints now can be created inside lambda in init block
- KT-10673 Breakpoints inside lambda are no more ignored in presence of crossinline function parameter
- KT-11318 Stepping inside for each is optimized
- KT-3873 Editing code while standing on breakpoint is optimized
- KT-7261, KT-7266, KT-10672 Evaluate expression applicability corrected