Yahor Berdnikau
8ffe78dba4
Remove GradleOption from 'includeRuntime' argument
...
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Yahor Berdnikau
c019dbce47
Rename DeprecatedOption into GradleDeprecatedOption
...
This should make it more explicit
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Mads Ager
e2c7290214
[JVM CLI] Prefer source over classpath.
...
If the class `A` is in a jar `previous.jar`, the following CLI
invocation will take that class instead of the `A` class
defined in `A.java`:
kotlinc -cp previous.jar A.java B.kt
This is problematic for build tools that put the jar for a
previous build on the classpath when recompiling some of the
files.
^KT-51025 Fixed.
2022-01-29 00:58:00 +01:00
Mikhail Glukhikh
2a6462ef09
Enable KT-45508 and KT-49017 errors when jvmDefault=all(-compatibility)
2022-01-28 13:40:35 +00:00
Dmitriy Novozhilov
aab66bd623
[FIR] Support rendering diagnostic names in CLI FIR compiler
2022-01-28 16:12:12 +03:00
Simon Ogorodnik
4c5eb9ac32
KT-50889: Fix caching of module descriptors in K2MetadataKlibSerializer
...
Previously, in case of repeated analysis, descriptors cached in
CommonDependenciesContainer was initialized multiple times
#KT-50889 Fixed
2022-01-27 17:32:18 +00:00
Mikhail Glukhikh
eeadd8588d
Drop CommonCompilerArguments.optInDeprecated
...
On the way to KT-22956
2022-01-27 11:48:22 +00:00
Igor Yakovlev
2ec0411a7f
[WASM] DCE implementation
2022-01-26 23:40:41 +03:00
Yahor Berdnikau
35ef8cc6da
Show user-friendly message on OOM compilation error
...
This should provide a hint to user how to mitigate out-of-memory error
on compilation inside Kotlin daemon or in-process.
^KT-47522 Fixed
2022-01-24 10:30:53 +01:00
Dmitriy Novozhilov
dd953908df
[FE 1.0] Add compiler flag for rendering internal diagnostic names in error messages
2022-01-23 11:14:56 +03:00
Alexander Korepanov
59173baf5a
[JS IR] Pass forward -Xir-property-lazy-initialization option
...
Pass forward -Xir-property-lazy-initialization option
for the incremental cache.
^KT-50175 Fixed
2022-01-19 13:28:47 +00:00
Mikhael Bogdanov
92e893bebe
Rework Tune module graph dependencies building
...
#KT-50701 In progress
2022-01-14 11:22:46 +00:00
Stanislav Erokhin
1326ca674e
Introduced IDEAPluginsCompatibilityAPI and returned some API
...
Please read the description of IDEAPluginsCompatibilityAPI.
Also, you may notice, that Deprecation annotation was removed.
That is because with level ERROR it isn't possible to opt-in
to such API in the legit cases. And with level WARNING it won't be
reported because We have diagnostic with level ERROR about OptIn marker.
Sadly, there is no way to add ReplaceWith to the OptIn marker
2022-01-13 18:03:07 +01:00
Nikita Bobko
735d46efb4
Freezable.{frozen, unfrozen} refactoring: add type safety
2022-01-12 15:25:10 +01:00
Andrey Uskov
2adc851f1b
Don't use global state for keeping incremental compilation state
...
Previously IC state was stored in System properties. As result parallel
compilation might cause incorrect state of IC, what led to corruption
of kotlin_module files. Now IC state is stored via CompilerArguments
and CompilerConfiguration
#KT-46038 Fixed
2022-01-12 13:37:46 +03:00
Alexander Udalov
8b57675002
Revert "Remove obsolete check for language version and IR backends"
...
This check is no longer obsolete since language version 1.3 support is
restored for Kotlin/JVM, but JS and Native never supported LV 1.3.
This is a partial revert of 0213c25c9b ,
without the diagnostic in K2JVMCompilerArguments (which is not needed
since the earliest supported LV is 1.3).
#KT-50695 Fixed
2022-01-10 21:15:51 +01:00
Irene Dea
374d287d08
Reorganize TypeAttributeTranslatorExtension
2022-01-08 15:26:38 +03:00
Irene Dea
d444978ebf
Add support for attribute serialization.
2022-01-08 15:25:07 +03:00
Irene Dea
f2a351367c
Implement unionTypeAttributes and replaceTypeAttributes in ConeInferenceContext
2022-01-08 15:25:07 +03:00
Irene Dea
56d817b49f
Union type attributes for common super type calculation
2022-01-08 15:25:07 +03:00
Irene Dea
fad3c1f2f6
Add initial type attributes infra
2022-01-08 15:25:06 +03:00
Igor Yakovlev
82455c849d
[WASM] Lazy properties initialization
2022-01-05 13:12:32 +01:00
Victor Petukhov
29f174f074
Revert "Revert "Temporary workaround for failing tests on teamcity.""
...
This reverts commit 2c51799e0a .
2021-12-27 22:56:01 +03:00
Victor Petukhov
9c225c5b56
Revert "[Compiler CLI] Use LanguageVersion.LATEST_STABLE instead of KotlinVersion.CURRENT for java type enhancement settings to prevent dependency on kotlin version."
...
This reverts commit 0689d74353 .
2021-12-27 22:56:00 +03:00
Roman Artemev
353bfe9018
[JS IR] Cleanup pir IC code
2021-12-24 16:50:40 +03:00
Victor Petukhov
0689d74353
[Compiler CLI] Use LanguageVersion.LATEST_STABLE instead of KotlinVersion.CURRENT for java type enhancement settings to prevent dependency on kotlin version.
2021-12-23 13:42:58 +03:00
Victor Petukhov
2c51799e0a
Revert "Temporary workaround for failing tests on teamcity."
...
This reverts commit 2436ca3d8b .
2021-12-23 13:42:56 +03:00
Mikhael Bogdanov
faa2a67180
Add Java17ModulesIntegrationTest tests, fix problem with wrong diagnostic
2021-12-23 07:26:03 +00:00
Mikhael Bogdanov
9221810d7f
-Xjdk-release. Review fixes. Pass nullable jdkRelease
2021-12-23 07:26:01 +00:00
Mikhael Bogdanov
a6052dce44
-Xjdk-release. Review fixes
2021-12-23 07:26:01 +00:00
Mikhael Bogdanov
3593e45b97
Rename 'RELEASE' fields into 'JDK_RELEASE'
2021-12-23 07:26:00 +00:00
Mikhael Bogdanov
f5da166d7c
Switch -jvm-target default to null
2021-12-23 07:25:59 +00:00
Mikhael Bogdanov
6379ed22d1
Calculate proper roots for JDK 10-11
...
#KT-29974
2021-12-23 07:25:59 +00:00
Mikhael Bogdanov
a062eb04ac
Release flag. Check conflicts with `-jvm-target'
2021-12-23 07:25:59 +00:00
Mikhael Bogdanov
c2d17ded33
Release flag. Add diagnostics
2021-12-23 07:25:58 +00:00
Mikhael Bogdanov
e5e3e9d326
Advanced modules supports
...
#KT-29974
2021-12-23 07:25:58 +00:00
Mikhael Bogdanov
ae81aaa7b0
Tune module graph dependencies building
2021-12-23 07:25:57 +00:00
Mikhael Bogdanov
409d36c911
Basic -Xrelease option support
...
#KT-29974 Fixed
2021-12-23 07:25:57 +00:00
Mikhael Bogdanov
6026a96349
Add flag for ct.sym serch
2021-12-23 07:25:56 +00:00
Mikhael Bogdanov
22b3688493
Support sig files processing
2021-12-23 07:25:56 +00:00
Stanislav Erokhin
2436ca3d8b
Temporary workaround for failing tests on teamcity.
...
This commit should be reverted later with testdata update
2021-12-22 18:51:20 +01:00
Anton Bannykh
4c33cb8016
[JS IR] IC: support per-module in K2JsIrCompiler
2021-12-22 10:14:33 +03:00
Anton Bannykh
ca60caa7e9
[JS IR] IC: pass through the main args
2021-12-22 10:14:32 +03:00
Anton Bannykh
aa628ae7b3
[JS IR] tests both per-module and regular mode
2021-12-22 10:14:08 +03:00
Anton Bannykh
95b5c44fba
[JS IR] IC: emit source maps
2021-12-22 10:13:07 +03:00
sebastian.sellmair
3598ba1d45
[MPP][Test] Implement Diagnostics with mpp composite analysis tests
...
Using the 'MULTIPLATFORM_COMPOSITE_ANALYSIS_MODE' test directive
will add support for testing "cli metadata compilation" and
"ide analysis" _like_ configurations. In this configuration,
dependsOn modules will not be analyzed together with dependents in
the same ModuleDescriptor, but will be passed as separate 'expectedBy'
dependency descriptor.
Used to cover ^KT-50120 inside kotlin.git
2021-12-21 21:31:42 +00:00
Mads Ager
b5b1b38cb0
[FE] Do not repeatedly load inner classes from class files.
...
Java protobufs generate a lot of inner classes and when compiling
Kotlin wrappers for those Java protobufs the inner classes can
be loaded hundreds of times leading to out of memory. This change
avoids reloading by fixing a bug in the cache implementation that
caused inner classes to not be cached.
2021-12-21 13:23:48 +03:00
Alexander Udalov
6acb0c3d06
CLI: load module-info from META-INF/versions/... for any version
...
Not just 9, since at least some libraries are putting module-info to
META-INF/versions/11 nowadays.
#KT-48027 Fixed
2021-12-20 18:59:07 +01:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Vyacheslav Gerasimov
bc2f0936bd
Build: Rename commonDep -> commonDependency
2021-12-16 21:48:19 +03:00