Commit Graph

92434 Commits

Author SHA1 Message Date
Yahor Berdnikau 9850b97ea7 Remove excessive logging 2022-05-10 23:43:55 +02:00
Yahor Berdnikau 1537b2ed3d Update duckduckgo regression benchmarks
Make it compatible with Kotlin 1.7.0 release.
2022-05-10 23:43:55 +02:00
Vyacheslav Gerasimov 6bb36bc5e1 Fix flaky android robolectric tests
#KTI-842
2022-05-10 23:42:55 +04:00
Dmitriy Novozhilov be76cd39d2 [JS] Ignore some tests due to KT-52339 2022-05-10 16:16:55 +00:00
Dmitriy Novozhilov 67e6c7955c Advance bootstrap to 1.7.20-dev-984 2022-05-10 16:16:55 +00:00
Ilya Kirillov bc92831475 [analysis api] fix ArrayIndexOutOfBoundsException on KtDiagnostic creation
The problem was caused by concurrent access to the non-thread safe List.
This list is not needed anymore, previously it was used to store strong
references to FIR diagnostics corresponding references in KtDiagnostics
were weak references.

^KTIJ-21449 fixed
2022-05-10 15:39:28 +00:00
konstantin.tskhovrebov 8b9e91568f KT-49032: Add default framework header search path for Cocoapod cinterop
Similarly Cocoapods logic
https://github.com/CocoaPods/CocoaPods/blob/d18f49392c5e9ed9a2cdcb2ee89391cf7690ee5d/lib/cocoapods/target/build_settings.rb#L1188
2022-05-10 15:10:00 +00:00
Yahor Berdnikau b5449f6ed3 Exclude Android asset-pack and asset-pack-bundle plugins
'kotlin-android' plugins will not try to configure the project, when
any of these two plugins are applied. Usually these plugins are used
to handle Android resources and no compilation is required.

^KT-51898 Fixed
2022-05-10 13:48:02 +00:00
Vyacheslav Gerasimov e9346a7f2c Build: fix disable.verification.tasks property 2022-05-10 15:07:31 +04:00
Ilmir Usmanov 4f53b085ec Do not override collection stub, if the override is suspend
but the stub is not. The other way around should be OK.

 #KT-52237 Fixed
2022-05-09 23:16:58 +00:00
pyos b19b265735 JVM_IR: generate continuation classes for suspend inline references
This is somewhat suboptimal since this results in `::suspendInline`
generating 2 classes while `{ suspendInline() }` only creates 1, but
it's the best allowed by the existing hierarchy of classes in stdlib. At
least it works?

^KT-50832 Fixed
2022-05-09 23:15:05 +00:00
Victor Petukhov 9f31f074da [FE 1.0] Take care callable reference candidates with recursive candidate return type
^KT-51844 Fixed
2022-05-09 19:23:43 +00:00
Victor Petukhov ec6ec20728 [FE 1.0] Fix subtyping for captured integer literal types
^KT-50877 Fixed
2022-05-09 19:23:42 +00:00
Ilya Kirillov 7395f8e019 [low level api] consider property type parameters when matching FIR and PSI declarations 2022-05-09 16:09:02 +00:00
Ilya Kirillov 875da1ea1e [low level api] consider return type when matching FIR and PSI declarations 2022-05-09 16:09:01 +00:00
Victor Petukhov 7675361380 [FE 1.0] Continue completion of calls inside that builder inference call postponed type variables of which has already been inferred 2022-05-09 12:38:39 +00:00
Victor Petukhov b8030ec1de [FIR] Substitute lambda implicit receivers with builder inference stub types
^KT-51988 Fixed
2022-05-09 12:38:38 +00:00
Victor Petukhov 6027c2a9aa [FE] Substitute fixed type variables with inferred stub types
Actually, a type variable might be fixed into a stub type. Such stub type should be substituted before sub calls completion

^KT-51988 Fixed
2022-05-09 12:38:37 +00:00
Yahor Berdnikau 92df5cd67f Revert usage of NormalizeLineEndings
This annotation causes wrong UP-TO-DATE checks leading to unexpected
build failures.

^KT-52313 Fixed
2022-05-09 11:15:38 +00:00
Yahor Berdnikau 6a901c79a5 Add Gradle test for KT-51913 2022-05-09 11:42:21 +02:00
Jinseong Jeon e830778b46 AA: fix typo in StandaloneProjectFactory 2022-05-09 00:22:53 +02:00
Jinseong Jeon 754a41eb13 LL: handle jrt in LLFirJavaFacadeForBinaries 2022-05-09 00:22:53 +02:00
Jinseong Jeon 3f05ba04a9 AA: add JDK_HOME as dependent SDK module 2022-05-09 00:22:52 +02:00
Jinseong Jeon af32a65c78 AA: use existing utils to define library scope
No visible differences from end clients, and we can avoid uses/shares of
Jar file system across modules
2022-05-09 00:22:52 +02:00
Victor Petukhov 94433a1600 [FE 1.0] Postpone turning NON_VARARG_SPREAD_WARNING into error till 1.8 to have a deprecation cycle of proper duration
^KT-48162
2022-05-08 10:49:16 +02:00
Sergey Bogolepov a8fc2158d0 [K/N] Use toolchainDependency for Linux as well 2022-05-07 13:09:52 +00:00
Sergey Bogolepov db16acb788 [K/N] introduce toolchainDependency property for MinGW
Move all usages of `msys2-mingw-w64-*` dependency to a single
`toolchainDependency` property. It simplifies dependency overriding.
2022-05-07 13:09:51 +00:00
Vyacheslav Gerasimov 7157a54155 Fix unnecessary usages of Locale.getDefault() 2022-05-06 22:08:25 +00:00
Kristoffer Andersen a9479ec8d7 [EE-IR] Anticipate fake overrides in fragment lowerings 2022-05-06 22:10:19 +02:00
Simon Ogorodnik 0b88748623 KT-52284 Kapt. Report error for kapt run with K2 2022-05-06 15:25:41 +00:00
Dmitriy Dolovov 7f1d17c25e [Native][tests] Update testing information in HACKING.md 2022-05-06 15:03:00 +00:00
Dmitriy Dolovov 50de3d6257 [Native][tests] Add "compile only tests" mode 2022-05-06 15:02:59 +00:00
Dmitriy Dolovov edf7319cad [Native][tests] Update testing information in HACKING.md 2022-05-06 15:02:59 +00:00
Dmitriy Dolovov e15000a6c2 [Native][tests] Add "force standalone tests" mode 2022-05-06 15:02:58 +00:00
Dmitriy Dolovov ebcbb9a6a6 Minor: Code style fix 2022-05-06 15:02:57 +00:00
sebastian.sellmair d0e7657035 [Gradle][MPP] Fix test cinterop caching on Windows
KT-52243
2022-05-06 16:08:40 +02:00
sebastian.sellmair d43fdfeb22 [Gradle][MPP] CInteropIdeaSyncIT: Ignore assertion after running leniently failed task again.
KT-52243
2022-05-06 16:08:40 +02:00
Ivan Gavrilovic 4e4508de2b KT-52243: Fix cacheability of CInteropProcess
Remove manual up-to-date checks that were preventing task
from being retrieved from the build cache. When outputs are
not present, task would always run because of
https://github.com/gradle/gradle/issues/9095.

Test: CommonizerIT
2022-05-06 16:08:40 +02:00
Ilya Muradyan 537ae662d7 [Scripting] Pass exception when constructing ScriptDiagnostic 2022-05-06 13:01:32 +00:00
Aleksei.Cherepanov 0d0d7a9659 Fix JPS build for Kotlin
Disable gradle70 sourceSet for JPS buid
2022-05-06 12:52:59 +00:00
Alexander Udalov ba20549e13 Fix JVM target in tests using boolean comparisons
These tests don't work on JVM target 1.6 after 6d664bcd10 because we're
generating `Boolean.compare` which is only available since 1.8. (It is
not a big deal because JVM target 1.6 is prohibited for users now.)
2022-05-06 03:47:25 +02:00
Alexander Udalov 6d664bcd10 JVM IR: fix operand type for CompareTo intrinsic
It's incorrect to take the first parameter type from the expression
itself because it can be nullable if smart casts are used. And if it's
nullable, it's mapped to the wrapper type and calling
`comparisonOperandType` for it makes no sense. Instead, take the type
from the callee function, as it's guaranteed to be mapped to a JVM
primitive type.

E.g. in `test1` function in the added test, the problem was that the
dispatch receiver type of the call expression is `Double?`, which is
mapped to `java/lang/Double`, whereas we clearly wanted to obtain the
primitive `D` (double) type.

 #KT-52163 Fixed
2022-05-05 23:06:21 +02:00
Zalim Bashorov f8ef028da3 [Wasm] Remove no longer existed dirs from exclude list 2022-05-05 21:03:40 +00:00
Zalim Bashorov 11d9751844 [Wasm] Unmute inlineVararg 2022-05-05 21:03:39 +00:00
Zalim Bashorov 76806eba8a [Wasm] Mute failing tests in boxInline 2022-05-05 21:03:38 +00:00
Zalim Bashorov e594cad02a [Wasm] Add tests from "boxInline" 2022-05-05 21:03:38 +00:00
Zalim Bashorov 2c20a71d08 [Codegen tests] Specify JVM as target backend for inferenceFlexibleTToNullable.kt 2022-05-05 21:03:37 +00:00
Zalim Bashorov a6e8912af0 [Wasm] Mute failing tests in box/delegatedProperty 2022-05-05 21:03:36 +00:00
Zalim Bashorov db4888b3d4 [Wasm] Stop excluding a bunch of tests 2022-05-05 21:03:34 +00:00
Zalim Bashorov 92d4c1c275 [Build, JS] Remove redundant setting nodeVersion to 16.13.0
Node.js support already use 16.13.0.

Probably it's useful to use default version for dogfooding propose,
Likely it's cover small cases, but at least could help to catch some
platform dependent issues.
If we need some specific (likely newer) version of node somewhere
in the project it's better to specify it for specific parts and
consider updating version of node inside gradle support and revert
a change.
2022-05-05 15:47:54 +00:00