Commit Graph

13455 Commits

Author SHA1 Message Date
Ilya Gorbunov 865f392681 [Docs] Use absolute urls in links, new Dokka doesn't support relative 2023-07-26 10:15:45 +00:00
Sarah Haggarty 8e537ec67d [Docs] Update time API description 2023-07-26 10:15:45 +00:00
Sebastian Sellmair f883079988 [Gradle] IdeBinaryDependencyResolver: Support opaque file dependencies
^KT-60612 In Progress
2023-07-26 09:50:12 +00:00
Sebastian Sellmair 6c4ce81237 [Gradle] Implement 'KotlinOutputDependency' to retain information about kotlin produced dependencies
^KT-60612 In Progress
2023-07-26 09:50:12 +00:00
Stanislav Erokhin ecbc40cf92 [mpp] Mark Kotlin12XMppDeprecation as FATAL
Old MPP plugins are deprecated for a long time. It is time to report
fatal error for such cases.
Our stdlib still and kotlin-test still using them, so we cannot just
completely remove them, but there is a way to suppress this error:
kotlin.internal.mpp12x.deprecation.suppress=true

Code for the old plugins (together with the remaining testsdata)
will be completely removed once stdlib and kotlin-test
migration completed. ETA: ~ 2.0-Mx

#KT-60553 Verification Pending
2023-07-26 09:25:50 +00:00
Stanislav Erokhin 955520f69e [Gradle] Fix the verbose rendering for FATAL diagnostics
During the tests we are using the verbose way of render the diagnostic
meaning, that we are adding the diagnostic id to the diagnostic message.
And we previously didn't have that for one case, so we were unable to
detect in tests that diagnostic with FATAL severity was reported
2023-07-26 09:25:50 +00:00
Ilya Chernikov 3ee07eb015 Scripting: add test for implicit receivers with the same short name 2023-07-26 08:49:27 +00:00
Ilya Chernikov 895a811b47 K2 Scripting: fix capturing from the imported scripts 2023-07-26 08:49:27 +00:00
Ilya Chernikov 1d88c307ea K2 Scripting: fix locality of script declarations
the script declarations are considered public, at least because they
can be reused from another script then used with the `importedScripts`
configuration property. It also improves the compatibility with K1
scripting.
2023-07-26 08:49:27 +00:00
Ilya Chernikov 020a590df7 K2 Scripting: fix order of arguments processing
and base class handling:
Since in K2 we do not distinguish between script arguments taken from
the base class and provided properties, we need this extra functionality
to preserve the argument order of K1 scripts.
This is a temporary measure, since we're going to deprecate base class
usage at some point (KT-60449), so the relevant constructor arguments
should disappear too.
2023-07-26 08:49:27 +00:00
Ilya Chernikov 96bde033e1 K2 Scripting: add support for imported scripts 2023-07-26 08:49:26 +00:00
Ilya Chernikov d24fc3b581 K2 Scripting: add support for result field 2023-07-26 08:49:26 +00:00
Ilya Chernikov 6c7751b0af K2 Scripting: add support for script implicit receivers 2023-07-26 08:49:26 +00:00
Ilya Chernikov 480ea80fc4 Enable K2 scripting tests 2023-07-26 08:49:26 +00:00
Ilya Chernikov 266a223460 Update scripting plugin autoload logic for K2 2023-07-26 08:49:26 +00:00
Ilya Chernikov 0d7a5c6b1b Scripting: fix string script source location
fixes proper script definition discovery for expressions and other
scripts created from a string.
2023-07-26 08:49:26 +00:00
Nikita Bobko f4ba5aaf9a [FE 1.0] Prohibit implicit Java actualization in K1
^KT-58545 Fixed
Review: https://jetbrains.team/p/kt/reviews/10561

It's not yet supported in K2 KT-59213

Related tests:
- ApiTest.testStdlib
- RuntimePublicAPITest.kotlinStdlibRuntimeMerged
- KotlinProjectViewTestGenerated.test_Arrays (in Kotlin plugin)
2023-07-25 22:30:09 +02:00
Abduqodiri Qurbonzoda db908aefff Detect concurrent modification of the parent list in subList
As a part of efforts to stabilize Native stdlib.
2023-07-25 16:00:42 +00:00
Abduqodiri Qurbonzoda 0bc74967b5 Rename testThrowsCME to testIteratorThrowsCME in tests 2023-07-25 16:00:42 +00:00
Abduqodiri Qurbonzoda 92de137cd6 Deprecate HashSet.getElement() and document that it's for ObjC interop.
Will become HIDDEN eventually.

As a part of efforts to stabilize Native #KT-55765.
2023-07-25 15:01:49 +00:00
Abduqodiri Qurbonzoda 7a0af5d058 Mark the CName annotation with ExperimentalNativeApi 2023-07-25 15:01:49 +00:00
Abduqodiri Qurbonzoda e5ab1d9ccf Commonize the ExperimentalNativeApi annotation 2023-07-25 15:01:49 +00:00
Timofey Solonin cd073690fa [MPP] Add LC_ALL to CocoaPods IT
^KT-60394
2023-07-25 13:11:02 +00:00
Timofey Solonin f47ebcf1b7 [MPP] Fail pod install in IT if it returns non-zero exit code
^KT-60394
2023-07-25 13:11:02 +00:00
Ilya Goncharov 54debac4c5 [Gradle, JS] Remove K/JS legacy support from Gradle plugin 2023-07-25 13:08:23 +00:00
Svyatoslav Scherbina 61dbe7fb75 [Gradle] temporarily change error to warning for linuxArm32Hfp
^KT-58864
2023-07-25 12:33:46 +00:00
Svyatoslav Scherbina ec985b1ffe [Gradle] Add ExperimentalForeignApi opt-ins to integration tests
3f3f6eb marks all cinterop-generated declarations with
@ExperimentalForeignApi. As a result, all usages of such declarations
have to opt-in explicitly. This commit adds those opt-ins to all
usages in the Kotlin Gradle plugin integration tests.

^KT-58362
2023-07-25 11:49:35 +00:00
Mikhail Glukhikh 3547b404d5 Use language version 1.9 in KAPT3 tests to avoid 2.0 migration problems 2023-07-24 12:45:07 +00:00
Ilya Gorbunov 61175889b9 KT-53154 extract implementation of enumEntries into an expect/actual internal helper function
It's required, so it can be implemented in different backends
at a different pace and in a different manner
2023-07-24 11:18:44 +00:00
Roman Efremov 8ce1417621 [Stdlib] Fix reports of MPP annotation checker
^KT-58551
2023-07-24 09:48:49 +00:00
Roman Efremov 12eb6d97bf [Stdlib] Remove @InlineOnly from expect declarations of minOf(), maxOf()
to satisfy MPP annotation checker.
It has reporting because @InlineOnly is absent on declarations with
Long parameter (removed in 233376eef0).

^KT-58551
2023-07-24 09:48:49 +00:00
Alexander Udalov 1cd24c61b8 Build: suppress warnings in kotlin-gradle-plugin
There's a lot of warnings which are distracting during each build.

 #KT-60498 Fixed
2023-07-21 15:33:09 +00:00
Alexander Korepanov ad3583ac38 [JS IR] Fix KClass equals for Nothing type 2023-07-21 14:48:30 +00:00
Alexander Korepanov 90498593f3 [JS IR] Fix review comments. 2023-07-21 14:48:30 +00:00
Alexander Korepanov 09501224e8 [JS IR] Add comments
^KT-59001
2023-07-21 14:48:30 +00:00
Alexander Korepanov bfb7f74e47 [JS IR] Add linkedHashMap tests
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 2fdb605a03 [JS IR] Fix tests
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 0b4a9499f0 [JS IR] Catch concurrent modifications of HashMap
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 5e2c1761fc [JS IR] Implement InternalStringLinkedMap
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 058cc9def2 [JS IR] Rework HashSet
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov f834007da6 [JS IR] Remove unused code & comments & style fixes
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 2300facead [JS IR] Rework HashMapEntries, get rid of LinkedHashMap
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov f202865080 [JS IR] Improve InternalStringMap iterators & Extend InternalMap interface
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 6f0628cb8a [JS IR] Replace InternalHashCodeMap with InternalHashMap
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 6a1e14df0b [JS IR] Implement InternalMap interface
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 6a77514a83 [JS IR] Get rid of HashMap EqualityComparator
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov 402d5e63fd [JS IR] Cleanup InternalHashMap
^KT-59001
2023-07-21 14:48:29 +00:00
Alexander Korepanov e26c06f0e1 [JS IR] Copy paste native-wasm HashMap implementation
Copy from libraries/stdlib/native-wasm/src/kotlin/collections/HashMap.kt

^KT-59001
2023-07-21 14:48:29 +00:00
Sebastian Sellmair 96b33007e5 [Gradle] Implement 'publishJvmEnvironmentAttribute' flag
When the flag is 'on', then publications will include
The 'org.gradle.jvm.environment' Gradle attribute.

We previously did not publish this attribute, as it lead
to problems for 'old' consumers.

We will roll out publications gradually with this feature flag.
The external Android target is expected to opt into this flag
as it is necessary for disambiguating Android from JVM targets
when the external Android target also uses KotlinPlatformType.jvm
2023-07-21 14:24:10 +00:00
Anton Lakotka 67f4343137 [Gradle] rework addSourceSet to not let sourceSets be exposed in groovy
Also mark it as deprecated to prevent internal misuses.

^KT-58234 Verification Pending
2023-07-21 11:47:01 +00:00