Commit Graph

63632 Commits

Author SHA1 Message Date
Ilya Gorbunov b4d7dfd02c Advance minimal Gradle version for .gradle.kts tests to 5.0
Kotlin compiler 1.2 bundled in Gradle 4.10 and lower cannot read
binaries produced by 1.4 compiler and thus cannot compile .gradle.kts
scripts that depend on  1.4 Kotlin gradle plugin artifacts.
2020-03-31 16:02:36 +03:00
Ilya Gorbunov bc5605dcdc Mute stepping test, KT-37879 2020-03-31 16:02:34 +03:00
Ilya Gorbunov 4a8dbcccee Advance bootstrap to 1.4.0-dev-5087
Temporary fix kotlin gradle plugin version in buildsrc at 1.4.0-dev-1818, otherwise it causes problems in main buildscripts, when compiled with -dev-5087 (KT-37235).
2020-03-31 16:02:32 +03:00
Ilya Gorbunov 6b11decf52 Enable option -Xno-optimized-callable-references in the whole project
A workaround to reduce dependency on the new stdlib version
of compiler parts used by gradle plugin.

#KT-37435
2020-03-31 16:02:29 +03:00
Mikhail Zarechenskiy 38a719cb22 [NI] Fix trace manipulations for builder inference and ::-expressions
For a class literal Type::class we are resolving Type as a constructor,
 getting all diagnostics (about missing arguments, for example) and then
 just not committing this trace with errors

 #KT-37626 Fixed
2020-03-31 15:50:58 +03:00
Natalia Selezneva 6213680604 Mute GradleKtsImportTest.testError for AS
^KT-37864
2020-03-31 15:38:16 +03:00
Ilya Goncharov ccf5a2b4ad [Gradle, JS] KT-36784 Add additional args for npm install
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:54 +03:00
Ilya Goncharov 14f0091c84 [Gradle, JS] KT-36784 Add tests on local npm dependencies in composite
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:54 +03:00
Ilya Goncharov 149d7fb33a [Gradle, JS] KT-36784 Fix requireing of node modules
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov f30875f79b [Gradle, JS] KT-36784 Move fromSrcPackageJson
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov 253b8587e4 [Gradle, JS] KT-36784 Composite build test
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov 568ef5dc5f [Gradle, JS] KT-36784 Fix depends on for package json umbrella
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov e27c334d4a [Gradle, JS] Fix package.json file
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov fa632a2aea [Gradle, JS] KT-36784 Input as composite package.json
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov e85501337e [Gradle, JS] Imported dependencies as file dependencies, not workspaces
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov 98f012b1c8 [Gradle, JS] KT-36784 Dependencies for workspaces
But it should be done as a file dependencies

This reverts commit c5f2ff30

#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov 2cee63f753 [Gradle, JS] KT-36784 Remove inter workspace dependencies
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov d0f4cdef68 [Gradle, JS] KT-36784 Fix relative folder
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:53 +03:00
Ilya Goncharov 1ef37b6203 [Gradle, JS] KT-36784 Add composite dependencies to hook
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov d3cb31c584 [Gradle, JS] KT-36784 Add internalCompositeDependencies as inputs
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov 1c04ac71e9 [Gradle, JS] Formatting dependency resolution for npm
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov ba6cadfc38 [Gradle, JS] Use name of included build by root project
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov c5c3f52b81 [Gradle, JS] Umbrella package json task
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov 63487c3836 [Gradle, JS] Scan all packages in included build
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov 7ad489883d [Gradle, JS] Hardcode with composite build
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov ae021e21db [Gradle, JS] GradleNodeModuleBuilder use files instead of artifacts
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov be4c301808 [Gradle, JS] Abstractize GradleNodeModulesCache.kt
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Goncharov 77139a3a10 [Gradle, JS] Add internal composite dependencies
#KT-32466 fixed
#KT-36784 fixed
#KT-36864 fixed
2020-03-31 14:56:52 +03:00
Ilya Gorbunov cdc53f5fec Minor kotlin-test doc fixes
- fix JUnit5Contributor docs reference
- fix typo
2020-03-31 13:37:35 +03:00
Ilya Gorbunov 96ed87d81b assertFailsWith: set unexpected exception as a cause of assertion error
#KT-23514
2020-03-31 13:37:03 +03:00
Ilya Gorbunov 2bb36899da Introduce 'fail' method to throw AssertionError with cause
#KT-37804
2020-03-31 13:37:03 +03:00
Ilya Gorbunov d2ff98fcb1 Pack kotlin-test common tests into stdlib tests zip for native 2020-03-31 13:35:27 +03:00
Jinseong Jeon ff104f4037 [FIR2IR] Set proper visibility of backing fields 2020-03-31 13:12:36 +03:00
Toshiaki Kameyama 6a1923a477 "Convert to anonymous object" intention: suggest for kotlin fun interface
#KT-37749 Fixed
2020-03-31 12:17:16 +03:00
Pavel Kirpichenkov 0abe3a6c39 [NI] Report not-a-class LHS error for callable reference arguments
^KT-37531 Fixed
2020-03-31 12:04:01 +03:00
Pavel Kirpichenkov b7ea590e23 [IDEA] Add HTML render for ambiguous callable references diagnostic
^KT-36125 Fixed
2020-03-31 12:04:01 +03:00
Pavel Kirpichenkov a416fde814 [NI] Move abstract class instantiation check to call checkers
This way the check works for callable reference arguments.
Also candidate applicability during resolution does not change compared to the old inference.
^KT-37530 Fixed
2020-03-31 12:04:01 +03:00
Nicolay Mitropolsky 3f00de5d7b Uast: fallback to call braces in getting the anchor for call-expressions in complex cases (KT-36273) 2020-03-31 11:56:31 +03:00
Nicolay Mitropolsky f98a1de7c3 Uast: making convertDeclaration always convert the originalElement (KT-35848) 2020-03-31 11:56:31 +03:00
Miguel Serra 61ad32f012 Samples of Map functions "contains" and "isNotEmpty"
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
2020-03-31 04:54:51 +03:00
Ilya Gorbunov 606b4db48a Improve samples for partition: add destructuring 2020-03-31 02:04:56 +03:00
n-p-s 7bb7c86fa9 Add samples for partition 2020-03-31 02:04:55 +03:00
Ilya Gorbunov dd2aa3de28 Add sample for filterNot and improve sample for filter 2020-03-31 02:04:55 +03:00
Brian Plummer f887a29279 Add sample for filter 2020-03-31 02:04:55 +03:00
adammc331 840f222867 Add sample for filterNotNull 2020-03-31 02:04:55 +03:00
Scott Weber e8ee405cdb Add sample for text version of chunked 2020-03-31 02:04:55 +03:00
Vladimir Dolzhenko 3f9892a49d Revert "Avoid run DefinitionsCollectorBackgroundTask on AWT in tests"
This reverts commit 52cc7aa1
2020-03-30 21:17:04 +02:00
Dmitry Petrov 4ade669b9b Minor: unmute 2 tests fixed in FIR 2020-03-30 21:10:59 +03:00
anastasiia.spaseeva 0397470b85 [Spec tests] Update tests with spec version 0.1-313 2020-03-30 19:12:55 +03:00
Vladimir Dolzhenko 52cc7aa117 Avoid run DefinitionsCollectorBackgroundTask on AWT in tests 2020-03-30 17:38:58 +02:00