Commit Graph

64088 Commits

Author SHA1 Message Date
Ilya Gorbunov ec9c7c98cd Use stubs in reduced js-ir runtime instead of new throwable extensions
To avoid bringing a lot of API required for their full implementation
to reduced runtime.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 38b1e6beab Make Throwable.printStackTrace() common
#KT-38044
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 408b441a71 Rename extension toStringWithTrace to stackTraceToString
#KT-37603
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 4cc9909a70 Support Firefox stack format
It doesn't include the exception type and message.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 641f1a55cb Omit common stack frames in JS full stack trace
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 5fe8071d71 Prevent infinite recursion in case of circular suppressed chains
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 552bcdb31b Introduce Throwable.toStringWithTrace
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 7b7263c5bf Implement common Throwable.addSuppressed/suppressed extensions
Instead of `suppressed` Array we provide `suppressedExceptions` List

#KT-23737
2020-04-13 09:32:41 +03:00
Andrey Uskov e8a54d6c75 Fix import of MPP projects in IDEA 2020.1 2020-04-13 09:19:56 +03:00
Ilya Kirillov 22a6cdcc16 Wizard: fix tests 2020-04-11 13:22:49 +03:00
Ilya Kirillov 679ad4ca67 Wizard: fix small ui problems 2020-04-11 13:22:48 +03:00
Ilya Kirillov 63e7520789 Wizard: place build system type components on multiple row when no space left 2020-04-11 13:22:47 +03:00
Ilya Kirillov 7ad7d28d97 Wizard: fix FUS collector for wizard 2020-04-11 13:22:46 +03:00
Ilya Kirillov e395844567 Wizard: add logging for hyperlink handler 2020-04-11 13:22:45 +03:00
Ilya Kirillov be6cd4de4a Wizard: allow creating module without unit test engine & create JPS projects without one by default 2020-04-11 13:22:45 +03:00
Ilya Kirillov 0e199ae94c Enable new experimental project wizard by default 2020-04-11 13:22:44 +03:00
Ilya Kirillov e5cc244b36 Wizard: make build system type action dumb aware 2020-04-11 13:22:43 +03:00
Ilya Kirillov e6a3caa267 Wizard: introduce gradle IR builder 2020-04-11 13:22:42 +03:00
Ilya Kirillov aa3cdc09fc Wizard: update libraries versions
#KT-38124 fixed
2020-04-11 13:22:41 +03:00
Ilya Kirillov 7c011c48dd Wizard: move hardcoded versions to Versions.kt 2020-04-11 13:22:41 +03:00
Ilya Matveev 254a978a06 Gradle, native: Forbid parallel in-process compiler execution
After enabling the in-process compiler execution, we got several
reports related to the race condition that takes place during
system properties configuring (e.g. KT-37442, KT-37444, probably
KT-37362).

The right fix here is to get rid of using system properties at all.
But it requires changes in many places of the K/N compiler and such
a patch is not safe enough to include it into a bug-fix release. So
it's decided to forbid parallel in-process compiler execution in
1.3.71 and 1.4-M2.

Issue #KT-37565 Fixed
Issue #KT-37696 Fixed

Ported from:
https://github.com/JetBrains/kotlin/commit/1c1b637cc46012a22867d8e653bb6d94ed6138ba
https://github.com/JetBrains/kotlin/commit/2128d3dfe77db4e0a8450f4f943cbd13c2e5dd4d
2020-04-11 12:40:50 +07:00
Abduqodiri Qurbonzoda f2c05bf82c IR: Move annotation @JsExport to common source set in stdlib #KT-35966 2020-04-11 04:03:57 +03:00
Abduqodiri Qurbonzoda 4a7b1b210a Add onEachIndexed similar to forEachIndexed #KT-37161 2020-04-11 03:47:47 +03:00
Natalia Selezneva 57d390bab0 Introduce new external listener to avoid failing loading dependencies during new projet creation 2020-04-10 17:50:51 +03:00
Natalia Selezneva a07f455ae5 Fix unexpected loading for script configurations during branch switch 2020-04-10 16:47:49 +03:00
Vladimir Dolzhenko 936801d744 Fix 191 compilation due to changes in findReferences
Relates to #KT-37801
2020-04-10 14:50:58 +02:00
Dmitriy Dolovov d7226f4952 KLIB. Promote KLIB ABI version 2020-04-10 19:38:05 +07:00
Dmitriy Dolovov 101442ad14 KLIB: Store native targets in manifest 2020-04-10 19:33:27 +07:00
Dmitriy Dolovov 1b06256650 KLIB: Add 'native_targets' manifest property 2020-04-10 19:33:19 +07:00
Mikhail Glukhikh e1c78b31a6 [FIR2IR] Convert explicit receiver in advance 2020-04-10 14:49:27 +03:00
Konstantin Tskhovrebov b815cb7e4a Lift up module platform check and add bunch for 191.
191 bunch uses directly PsiTreeUtil instead kotlin extension
because without it class loader's loads different classes in runtime
and ClassCastException happens.

Fix #KT-38149
2020-04-10 14:47:28 +03:00
Harry 27827cd364 New J2K: Convert Number.[type]Value() to Number.to[type]() (#2908)
New J2K: Convert Number.[type]Value() to Number.to[type]()
2020-04-10 14:25:49 +03:00
Dmitriy Dolovov cdbc272aca IDE. Drop redundant test in GradleNativeLibrariesInIDENamingTest 2020-04-10 18:14:13 +07:00
Ilya Gorbunov 15319eb88e Implement in-place shuffle for arrays
Minor: reorder shuffle/shuffled extensions more consistently

#KT-25651 Fixed
2020-04-10 11:04:51 +03:00
Ilya Gorbunov e58f1c8932 Introduce Sequence.shuffled
#KT-37751
2020-04-10 10:59:40 +03:00
Dmitry Petrov f42d9eefa1 KT-30330 Support KotlinNothingValueException in JVM 2020-04-10 08:47:03 +03:00
Dmitry Petrov 9941c255b9 KT-30330 KotlinNothingValueException 2020-04-10 08:47:02 +03:00
Alexey Tsvetkov 6acf9385bd Add tests for lookup tracker with JS KLIB compiler 2020-04-10 05:35:45 +03:00
Alexey Tsvetkov 1c38466a22 Pass LookupTracker to deserialized scopes in JS KLIB compiler
Before this change, deserialized scopes were not tracking lookups properly,
because lookup tracker was not passed from compiler configuration correctly.
Because of that, lookups from dependencies were not tracked,
so multi-module IC was not working (chages were passed between modules,
but affected source files were not invalidated).
2020-04-10 05:35:45 +03:00
Alexey Tsvetkov 98f561bbed Add separate flag to control JS KLIB IC in Gradle 2020-04-10 05:35:45 +03:00
Ilya Gorbunov fc9ac67980 Tune parameters of time-sensitive tests
Lessen CPU load on the main thread.
Remove fragile checks.
2020-04-10 01:38:46 +03:00
Ilya Kirillov b049a55cca Wizard: remove redundant text from removing module dialog 2020-04-10 01:04:18 +03:00
Yaroslav Chernyshev ebb225fa4e [Gradle, Native] Fix CocoaPods plugin regression related with Xcode build 2020-04-10 00:41:29 +03:00
Vladimir Dolzhenko b51ae78b84 Do not resolve alias imported references on rename
#KT-38096 Fixed
2020-04-09 20:38:01 +00:00
Ilya Kirillov ac0d34089a Wizard: add run configuration for Ktor server template 2020-04-09 23:11:40 +03:00
Ilya Kirillov 67f95c21da Wizard: fix missed setting in Ktor template
#KT-38120 fixed
2020-04-09 23:11:40 +03:00
Ilya Kirillov 4cfa2f95a7 Wizard: add m2 Gradle plugin repository for non-stable Kotlin versions
#KT-36136 fixed
2020-04-09 23:11:40 +03:00
Ilya Kirillov 367699a853 Wizard: fix js Gradle dsl
#KT-38121 fixed
2020-04-09 23:11:39 +03:00
Ilya Kirillov 4e91f1c607 Wizard: update Kotlin version for tests to dev one
Needed for support latest syntax of Gradle dsl for js
2020-04-09 23:11:39 +03:00
Ilya Kirillov 9badcae692 Wizard: move some hardcoded versions to constants 2020-04-09 23:11:39 +03:00