Dmitriy Novozhilov
4ab39b908e
[Build] Fix compilation of kotlinx-atomicfu-runtime in 1.9.0
...
^KT-56400
2023-02-18 13:26:53 +00:00
Artem Kobzar
d39fd9416a
[Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test)
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
6d6c6f072b
[Build] Set language version in project to 1.9
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
1422654470
[Build] Update version of binary-compatibility-validator to 0.13.0
...
0.12.0 was incompatible with kotlinx.metadata:0.6.0
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
20610a7c89
[Build] Bump kotlinx.metadata version to 0.6.0
2023-02-18 13:26:51 +00:00
Ilya Goncharov
a4ce2ced6d
[Gradle, JS] Not sync files which are not changed
...
[Gradle, JS] Try to fix test in windows
[Gradle, JS] Support hierarchical sync compile
[Gradle, JS] Add test on syncing only changed files
[Gradle, JS] Use relative path instead of just name
^KT-56719 fixed
2023-02-17 14:36:45 +00:00
Ilya Kirillov
fbcaf3efeb
[Analysis API] add information about KtModule to reported exceptions
2023-02-17 14:19:09 +00:00
Ilya Kirillov
c37ee83791
[Analysis API] add more debug info to "pointer already disposed" error
2023-02-17 14:19:08 +00:00
Dmitriy Novozhilov
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Alexander.Likhachev
18752fc1ad
Revert "[Build] Add a temporary workaround for KT-56357"
...
This reverts commit ca60a4fcf9 .
2023-02-17 15:03:53 +01:00
Alexander Udalov
b152600e35
IR: add flag to IrGenerationExtension for executing in kapt mode
...
#KT-56635 Fixed
2023-02-17 14:00:54 +00:00
Dmitrii Gridin
0eb90cccd1
[SLC] enum entries should be psi reference instead of psi expression
...
^KT-56728 Fixed
2023-02-17 13:11:14 +00:00
Dmitrii Gridin
e65c863f8c
[SLC] add test on single target annotation
...
^KT-56728
2023-02-17 13:11:14 +00:00
Sebastian Aigner
0e03fc265e
[Gradle][MPP] Include links on V2 MPP Source Set layout
...
^KT-56700 Fixed
2023-02-17 12:31:44 +00:00
Dmitriy Novozhilov
e70e85d51a
[FIR] Move unwrapSmartcastExpression util into :compiler:fir:tree module
2023-02-17 12:29:17 +00:00
Dmitriy Novozhilov
d52b52ff5c
[FIR] Drop unused ResolvedStatusCalculator class
2023-02-17 12:29:17 +00:00
Pavel Punegov
9ea299b0e7
[K/N][build] Fix Native plugin: remove archive file before adding
...
Merge-request: KT-MR-8783
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-02-17 11:28:41 +00:00
Dmitriy Novozhilov
86af01439c
[FIR] Allow to access uninitialized member properties in non-inPlace lambdas in class initialization
...
^KT-56696 Fixed
^KT-56408
2023-02-17 11:26:18 +00:00
Dmitriy Novozhilov
914acd841f
[FIR] Add special kind for graph of init blocks and local functions
2023-02-17 11:26:17 +00:00
Dmitriy Novozhilov
c87e489dc9
[FIR] Run CFA for member properties even if they have initializer
...
^KT-56678 Fixed
^KT-56682 Fixed
2023-02-17 11:26:17 +00:00
Dmitriy Novozhilov
de84cb8038
[Test] Don't compare descriptors dump if there is no expected .txt file
...
Descriptors dump has not much sense, because at this point diagnostic
tests for FE 1.0 mostly used only to compare diagnostics with FIR
2023-02-17 11:26:16 +00:00
Dmitriy Novozhilov
8ccd7c7d12
[FIR] Create context and scope for incremental compilation separately
...
Scope for incremental compilation refers to binaries from previous step
of IC. It is used not only in IC context itself, but also it is
subtracted from original libraries scope. Before previous commit there
was such scheme:
1. create incremental compilation context for files of specific session
2. subtract IC scope from main libraries scope
3. use updated libraries scope to create library session
4. create all needed source session(s)
So here was a side effect of creating new IC context, which
1. is smelling code, because it increases mind complexity
2. hard to implement with new session utilities
So to fix this problem this commit changes the scheme above:
1. create IC scope and modify libraries scope
2. create libraries session
3. create source session(s) and IC context for them
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov
79e4df72bf
[CLI] Introduce utilities for creating FirSession hierarchy in CLI for all platforms
...
Also support session creation and compilation for HMPP projects
^KT-56209 Fixed
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov
30ea4b6b53
[FIR2IR] Adapt IrActualizer to HMPP modules
...
Previously it collected actual declaration only from platform module
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov
d4bb740a62
[CLI] Store information about HMPP module for source files
2023-02-17 11:08:50 +00:00
Dmitriy Novozhilov
77caa31640
[CLI] Add CLI arguments to pass HMPP module structure to the compiler
...
^KT-56209
2023-02-17 11:08:50 +00:00
Svyatoslav Scherbina
ec59cc050c
[K/N][tests] Support tag expressions for :native:native.tests:test
...
This commits adds a Gradle project property 'kotlin.native.tests.tags',
which can be used when running :native:native.tests:test task to filter
tests by tags. The property value can contain an arbitrary JUnit tag
expression. See
https://junit.org/junit5/docs/current/user-guide/#running-tests-tag-expressions
for more details.
2023-02-17 10:37:04 +00:00
Svyatoslav Scherbina
74c39df0d8
[K/N][tests] Allow running :native:native.tests:test on TeamCity
...
With this task, we can be more sure that TeamCity runs all the tests.
Other test tasks in :native:native.tests project run only tests with
specific pre-defined tags, so running them on TeamCity was discovered to
be more error-prone in that regard, and is generally less flexible.
2023-02-17 10:37:04 +00:00
Svyatoslav Scherbina
72f9cdf49b
Native: fix curl sample test
...
Don't publish libcurl to a local Maven repo, but consume it directly
as a project dependency.
Publishing appears to be fragile here, and the intention of the test
does not involve checking Gradle anyway.
2023-02-17 10:35:02 +00:00
Svyatoslav Scherbina
dd7a1a8c1c
[CODEOWNERS] Move kotlin-native/backend.native/tests/**.gradle.kts to Native
...
These files are in fact tests.
The **.gradle files in this directory are already owned by the
Kotlin Native team.
2023-02-17 10:33:30 +00:00
Ilya Kirillov
4c3672de0a
[LL FIR] optimize FirCacheValue, do not create ConcurrentHashMap to store a single value
...
^KTIJ-24640
^KTIJ-24641
2023-02-17 10:24:20 +00:00
Aleksei.Cherepanov
57da858810
[JPS] Don't use non-optimal Files.exist() in JPS context check on dry start-up
...
After moving JPS from the IJ repo back to the Kotlin repo, some file operations were accidentally changed to non-optimal ones.
#KTIJ-21161 Fixed
2023-02-17 09:58:00 +00:00
Aleksei.Cherepanov
772745b0ad
[JPS] Don't compute compiler args on start-up of the build process
...
Initialization of compiler arguments takes a long time because of its copying, but for initial context check, there is no need to do it at all for all targets except Common.
#KTIJ-21161 In Progress
2023-02-17 09:58:00 +00:00
Nikolay Lunyak
516efe77c9
[FIR] KT-56612: Fully-expand types when casting bare types
...
^KT-56612 Fixed
Merge-request: KT-MR-8849
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2023-02-17 09:15:59 +00:00
Nikolay Krasko
0963bd25a8
Test links reference existing files
2023-02-16 22:56:21 +00:00
Nikolay Krasko
3c6e64b560
Test links definitions in license/README.md
2023-02-16 22:56:21 +00:00
Polina Mitrikovskaia
0484f7b108
Complete license links
...
Add links for [jspecify].
2023-02-16 22:56:20 +00:00
Matt McClure
800afa8817
Link to Sun, asmble licenses
2023-02-16 22:56:20 +00:00
Nikolay Lunyak
3c36a4fabd
[FIR] KT-56665: Filter-out valid cycles
...
^KT-56665 Fixed
Merge-request: KT-MR-8861
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2023-02-16 17:48:38 +00:00
Ilya Kirillov
c60fd38e05
[LL FIR] allow recursive access to the same FirThreadSafeCache
...
^KT-56721 fixed
2023-02-16 17:42:29 +00:00
Egor Kulikov
d670e5a695
[FIR] Do not get expressions from contract effect list in lazy mode
...
Eleventh step for ^KT-52615
2023-02-16 17:18:10 +00:00
Leonid Startsev
c564dd973b
Add declarations from serialization plugin to FIR metadata declarations provider.
...
These declarations should not be visible to users (and therefore are not added to FIR),
but plugin itself can reference them in already compiled serializable classes,
and therefore they should be available in metadata:
- synthetic deserialization constructor
- static write$Self function
See also:
^KT-55885
2023-02-16 15:36:18 +00:00
Leonid Startsev
8953b25c5b
Improve documentation for FIR builders
2023-02-16 15:36:18 +00:00
Sebastian Sellmair
1cce57b50b
[Gradle] KT-56712: Add assertions for ide dependencies
...
^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
b83a490034
[Gradle] MppDependencyProjectStructureMetadataExtractorFactory: Cache on rootProject...
...
Because composite builds might have isolated classloaders,
therefore caching the MppDependencyProjectStructureMetadataExtractorFactory
on a compositeBuildRoot will lead to ClassCastExceptions
^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
70a44ccc67
[Gradle] ExtraPropertiesExtension.getOrPut: Use castIsolatedKotlinPluginClassLoaderAware
...
To provide better error messages for users when this function
fails due to isolated classpaths
... for KT-56712
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
45a99d197a
[MPP] MppCompositeBuildIT: Implement sample6-KT-56712-umbrella-composite test
...
... for KT-56712
2023-02-16 13:51:09 +00:00
Pavel Punegov
83d1de56bf
[K/N][build] Add coroutines dependency for bootstrap test
...
Bootstrap test builds compileKotlin that fails to resolve
coroutines.
2023-02-16 11:56:35 +00:00
Pavel Punegov
cc258934c4
[K/N][build] Cleanup obsolete build tasks
...
* Remove obsolete reporting
* Remove old build tasks: BuildPusher and CollisionDetector
* Gradle build file cleanup
* Remove old wrappers
Merge-request: KT-MR-8788
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
(cherry picked from commit a9cae3fe87 )
2023-02-16 11:56:34 +00:00
Alexander Udalov
0e767a7020
Log Kotlin compiler classpath with File.pathSeparator in Gradle
...
To make it easier to copy-paste it to run the compiler outside of
Gradle.
2023-02-16 11:29:30 +00:00