Commit Graph

95113 Commits

Author SHA1 Message Date
Nikita Nazarov bd742bb95c Account for context class receivers when creating the ExpressionReceiver
^KT-54084 Fixed
2022-09-28 18:59:56 +04:00
Nikolay Lunyak f578381726 [FIR] KT-46483: Forbid annotations in where Clauses
Merge-request: KT-MR-7208
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-28 13:38:18 +00:00
Leonid Startsev a20ce06102 Support @Serializable(ContextualSerializer) on class
It was fixed some time ago (https://github.com/Kotlin/kotlinx.serialization/issues/957)
but for some reason only for old backend.

Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1776
2022-09-28 12:40:20 +00:00
Yahor Berdnikau 1967c49914 Fix wrong jitpack.io repository url in test project 2022-09-28 14:34:54 +02:00
pyos 72e671c8f1 FIR Parcelize: allow anonymous local objects if they're enum entries 2022-09-28 15:14:25 +03:00
Svyatoslav Scherbina 1f1fef1067 Bump Kotlin/Native version to 1.8.20-dev-247 2022-09-28 12:04:51 +00:00
Alexander Likhachev daf14d0931 [Gradle, K/N] Deprecate endorsed libraries
#KT-54177 Fixed
2022-09-28 10:23:12 +00:00
Yahor Berdnikau 5924a80ec8 Use Task.doNotTrackState api
This api is faster replacement for 'task.outputs.upToDateWhen { false }'
 approach.

^KT-52624 Fixed
2022-09-28 09:07:27 +00:00
Yahor Berdnikau 037f41526f Run Gradle integration tests against Gradle 7.3.3
^KT-52624 In Progress
2022-09-28 09:07:27 +00:00
Sebastian Sellmair 05700e09f4 [Gradle] Fix CInteropCommonizerTask.CInteropCommonizerDependencies.dependencies resolving to early
^KT-54202 Verification Pending
2022-09-27 20:21:31 +00:00
Alexander Shabalin c561b1a861 [K/N] Manually compact mimalloc heap with stms ^KT-53182
Merge-request: KT-MR-7222
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-27 17:25:18 +00:00
Igor Chevdar eb1f81b404 [K/N][IR] Moved tests dumping to the lowering 2022-09-27 17:06:49 +00:00
Igor Chevdar 1963860a92 [K/N][caches] Removed old slow and hacky version of per-file caches building 2022-09-27 17:06:48 +00:00
Igor Chevdar 9250de42a5 [K/N][IR][codegen] Introduced NativeGenerationState 2022-09-27 17:06:48 +00:00
Igor Chevdar 77f24a22dd [K/N][IR][codegen][caches] Speed-up of per-file caches 2022-09-27 17:06:48 +00:00
Igor Chevdar aba8d8a859 [K/N][caches] Aligned caches layout for per-module and per-file cases 2022-09-27 17:06:47 +00:00
Igor Chevdar b92580937a [K/N][codegen] Slightly refactored invocation of CAdapterGenerator 2022-09-27 17:06:47 +00:00
Ilmir Usmanov 4a10dbf383 FE: Warn about generic inline class parameter in LV < 1.8
#KT-54192 Fixed
2022-09-27 16:50:43 +00:00
Alexander Korepanov 252dc01dd5 [JS IR] IC: Propagate dependencies from nested declaration to parent
JsIrLinker can't load nested declarations,
 therefore it is required to load their parent.
 This patch adds a dependency in the incremental cache graph
 between nested declaration user and nested declaration parent.

^KT-53931 Fixed
^KT-54120 Fixed
2022-09-27 15:27:20 +00:00
Vladimir Dolzhenko bd085fbf43 Optimize isDefinitelyNotSamInterface
Do not generate intermediate garbage and no reason to iterate over
all non-SAM candidates when more than one found

#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko b2b88662d8 Clean up
#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko a32c660a67 Optimize contributedDescriptors
Take kindFilters into account on early stage.

#KTIJ-23032
2022-09-27 15:17:26 +00:00
Yahor Berdnikau c198d4d90d Simplify cache-redirector script apply method
Now it could be only be applied inside settings file pluginManagement
block. This will update both settings repositories and all projects in
the repo with cache redirection settings.
2022-09-27 14:04:43 +00:00
Nikolay Krasko 8af5ade2f4 Fix regular expressions in testHostSpecificSourceSetsInTransitiveDependencies
Test is now flaky because sometimes the expected names has checksum with
the `-` char.
`published-dependency-1.0-commonMain-Q-PvLQ.klib`
2022-09-27 13:15:05 +00:00
Nikolay Krasko 20fdd50cc0 Add javadoc to analysis-api-test-framework for fix publishing 2022-09-27 13:15:05 +00:00
Nikolay Krasko 54c7efe1cb Refactorings for toolchains 2022-09-27 12:49:55 +00:00
Nikolay Krasko 076125282d Define default build JVM toolchain 2022-09-27 12:49:54 +00:00
Nikolay Krasko 13a68b0e2d Explicitly define the set of environment variables needed for tests 2022-09-27 12:49:54 +00:00
Simon Ogorodnik 8799b9b751 Build: Add auto-setup of JDKs for tests based on Gradle Java Toolchains 2022-09-27 12:49:54 +00:00
Pavel Mikhailovskii 1b8a60b5a5 KT-51282 Add tests 2022-09-27 12:17:19 +00:00
Pavel Mikhailovskii ca221cc6f2 Unused import 2022-09-27 13:34:09 +02:00
Aleksei.Cherepanov be71d8841e Use case-sensitive logic in PathStringDescriptor for all platforms
This is especially needed for portable caches. Now hash counting on mac/windows is the same as logic on linux, which allows to create caches on remote servers and use them together with incremental compilation locally.

#KT-53932 Fixed
2022-09-27 11:29:22 +00:00
Alexander Udalov c410c5d3cd Do not reset freeCompilerArgs for some kotlin-native modules
Otherwise common compiler arguments which are set for all modules in the
project in `buildSrc/src/main/kotlin/common-configuration.gradle.kts`
are not applied. The most interesting of those are `-Xuse-k2` (if K2 is
enabled) and `-Xjvm-default=all`.
2022-09-27 11:04:31 +00:00
Svyatoslav Scherbina b1a26f7439 Bump Kotlin/Native version to 1.8.20-dev-204 2022-09-27 10:56:14 +00:00
Marat Akhin f73897fcea [K/N][KLIB][Tests]: mark klib binary compatibility tests as klib-abi
This is to avoid the need to change all our TC configurations to include
another test task run
2022-09-27 10:03:07 +00:00
Marat Akhin aca390263e [K/N][KLIB][Tests]: regenerate klib binary compatibility tests 2022-09-27 10:03:06 +00:00
Marat Akhin d6230a2e7b [K/N][KLIB][Tests]: support for klib binary compatibility tests on K/N
The impl supports both regular and caching testing modes.
Also add Gradle target for klib binary compatibility tests.
2022-09-27 10:03:06 +00:00
Marat Akhin 1594dd6d67 [KLIB][Tests]: fix typos in klib binary compatibility test suite 2022-09-27 10:03:05 +00:00
Alexander Shabalin 822e341d76 [K/N] Remove marker check from mark phase ^KT-54163
Markers can't appear in object fields.

Merge-request: KT-MR-7201
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-27 09:08:29 +00:00
Dmitrii Gridin 64c9a9f137 AbstractResolverForProject: do not include modules info to default message
^KT-54188 Fixed
2022-09-27 08:03:53 +00:00
Nikolay Krasko cb0fc0aa6f Downgrade logger level for hacky disabling NPM/Yarn tasks 2022-09-27 07:38:23 +00:00
Sergey Bogolepov 357983389c [K/N] KT-54164
Extract CFBase.h and CFAvailability.h to CoreFoundationBase on macOS
for the sake of unification with *OS. Also, it fixes commonizer.
2022-09-26 14:35:30 +00:00
Alexander Udalov 4a00d1f978 Add internal way to enable old backend
Needed for tests on debugger in Kotlin IDE plugin.
2022-09-26 13:35:41 +00:00
Nikolay Krasko 7da7c4e0bb Distinguishable output and failure reports for gradle integrations tests 2022-09-26 12:48:28 +00:00
Nicklas Ansman Giertz b02948b5f7 KAPT: Kapt generates illegal stubs for private interface methods
Interface methods that were private got both the `default` and `private`
modifiers when using `jvm-default=all` which is not valid.

The stub will now just contain `private` in this case.

This fixes KT-48013.
2022-09-26 12:21:56 +02:00
Nicklas Ansman Giertz 1cc46ab7fa KAPT: allow setting aptMode in the maven plugin
This fixes KT-41129
2022-09-26 12:20:33 +02:00
Dmitriy Novozhilov 7ce3934cf7 [FIR] Add type resolution service into SerializationFirSupertypesExtension
This service allows resolve custom user types from plugins, which allows
  to support specifying type arguments of generated supertypes basing
  on arguments passed to annotations
2022-09-26 10:09:09 +00:00
Dmitriy Novozhilov 5461ef6172 [FIR] Add utility function for constructing user type ref on the air 2022-09-26 10:09:09 +00:00
Dmitriy Novozhilov 519f6aeff1 [FIR] Make source in qualifier parts nullable
This is needed to be able to create no-source user type refs from plugins
2022-09-26 10:09:08 +00:00
Sebastian Sellmair 2845929bc0 [Gradle][MPP] Add documentation to CompositeMetadataArtifactContent
^KT-54135 Verification Pending
2022-09-26 08:18:19 +00:00