Repository navigation
1.2.20-eap-11
Pre-release
Pre-release
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-20742Dan Balla (@serializable) and parcelize do not work togetherKT-20928parcelize. Verify Error for Android Api 19
Binary Metadata
KT-11586Class literal annotation arguments are not yet supported in AnnotationSerializer
Compiler
New Features
KT-17944Allow 'expect' final member be implemented by 'actual' open member
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 module
IDE
New Features
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 version
Performance Improvements
KT-17367Rebuild requested for index KotlinJavaScriptMetaFileIndexKT-21557IntelliJ 2017.3 Gradle Performance RegressionKT-21632Freezing on typingKT-21701IDEA 2017.3 high CPU usage
Fixes
-
KT-15254Please use Platform icons for "Run" icon in gutter -
KT-17254Remove obsolete unfold-icons in structure view -
KT-17838Can't report exceptions from the Kotlin plugin 1.1.4-dev-119 in IDEA #IU-171.4424.37 -
KT-19012Data Flow from here: doesn't find template usages -
KT-19017Data Flow from here doesn't find usage in range position of for cycle -
KT-19018Data Flow from here doesn't find any usages of for-variable -
KT-19036Data Flow from here: please find calls of extension too -
KT-19039Data Flow from here: please find cases when an investigated variable is transferred as a parameter into a library function -
KT-19087Data flow to here: usages with explicit receiver are not found -
KT-19089Data Flow to here: assigned values are not found if an investigated property is a delegated one -
KT-19104Data Flow from here: usage of parameter or variable not found when used as lambda receiver/parameter -
KT-19106Data Flow from here: show point of call of a function used as a parameter investigated parameter/variable -
KT-19112Data Flow to here for a function (or its return value) doesn't find shorten forms of assignments -
KT-19519Structure view is not updated properly for function classes -
KT-19823Kotlin Gradle project import into IntelliJ: import kapt generated classes into classpath -
KT-19824Please provide a separate icon for a common library -
KT-20096Kotlin Gradle script: SOE after beginning of Pair definition before some script section -
KT-20329multiplatform: gutter "Is subclassed by" should show expect subclass from the common module -
KT-20521Kotlin Gradle script: valid build.gradle.kts is red and becomes normal only after reopening the project -
KT-20603Facet import: when API version > language version, set API version = language version, not to 1.0 -
KT-20782Non-atomic trees update -
KT-20813SAM with receiver: call with SAM usage is compiled with Gradle, but not with JPS -
KT-20880Add documentation quick fix should create multiline comment and place caret in right place -
KT-20883Provide more information in "Missing documentation" inspection message -
KT-20884Functions with receivers should allow [this] in KDoc -
KT-20937Exception thrown on RMB click on folder in Kotlin project -
KT-20938IDE: kotlinc.xml with KotlinCommonCompilerArguments/freeArgs: XSE: "Cannot deserialize class CommonCompilerArguments$DummyImpl" at BaseKotlinCompilerSettings.loadState() -
KT-20953"Choose actual" popup shows redundant information -
KT-20985Additional reimport is required in 2017.3/2018.1 idea after creating or importing mp project -
KT-20987(PerModulePackageCache miss) ISE: diagnoseMissingPackageFragment -
KT-21002"Highlight usages of identifier under caret" should work for "it" -
KT-21076Recursive Companion.ivoke() call should be marked with according icon -
KT-21132containsKey() in SoftValueMap considered pointless -
KT-21150Do not infer compiler version from build.txt -
KT-21200The Structure-view for Kotlin files could be improved -
KT-21318Highlighting of function exit points does not work if the function is a getter for property -
KT-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/visited -
KT-21418Gradle based project in IDEA 181: Kotlin facets are not created -
KT-21441Folding multiline strings adds a space at the start if there is not one. -
KT-21546java.lang.IllegalArgumentException: Unexpected container fatal IDE error -
KT-21575Secondary constructor call body is missing -
KT-21733Structure view is not updated -
KT-21745Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in Maven -
KT-21746Warning and quickfix about kotlin-stdlib-jre7/8 -> kotlin-stdlib-jdk7/8 in Gradle -
KT-21756Find Usages for "type" in ts2kt provokes exception -
KT-21770Pasting$this into an interpolated string shouldn't escape $ -
KT-21852Custom API version is lost when settings are reopen after restarting IDE
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-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-21560Inspection to sort 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-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 literal
IDE. Refactorings
New Features
KT-20095Nice to have: Allow conversion of selected companion methods to methods with @JvmStatic
Fixes
KT-15840Introduce type alias: don't change not-nullable type with nullable typealiasKT-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-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 variable
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 enums
Language design
KT-10532ISE by ThrowingLexicalScope at compile time with specific override chain
Libraries
KT-18789Delegating val to out-projected MutableMap results in cast to NothingKT-18869Generating intrinsified 'for-in-progression-with-step' loop requires exposing getProgressionLastElement functions (currently internal)KT-20968Improve docs for String.format and String.Companion.formatKT-21828JS: The List produced by the IntArray.asList function causes weird results
Reflection
KT-20875Support Void.TYPE as underlying Class object for KClassKT-21453NPE in TypeSignatureMappingKt#computeInternalName
Tools
-
KT-20298Lint warning when using parcelize with delegated properties -
KT-20299Android non-ASCII TextView Id Unresolved Reference Bug -
KT-20717parcelize Creator.newArray method is generated incorrectly -
KT-20751kotlin-spring compiler plugin does not open validated classes -
KT-21171_$_findViewCache and _$_findCachedViewById are created in Activity subclass without Kotlin Android Extensions.
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 cache
Tools. Incremental Compile
KT-21622Make IC work more accurately with changes of Android layouts xml filesKT-21699JS IC produces different source maps when enum usage is compiled separately
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 module
Tools. Maven
KT-20816Repeated Maven Compiles With Kapt Fail
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"