Mikhail Glukhikh
577b9686c1
K2: fix using compatibility resolve for SAM constructors
2022-07-27 15:29:42 +00:00
Mikhail Glukhikh
32a73968de
Stop tower resolve in K2 in more similar manner with K1
2022-07-27 15:29:41 +00:00
Aurimas
26ed21ec96
KT-52959 stop using project.rootProject in KotlinProperties.kt
...
project.rootProject breaks project isolation. The access is not needed here as we can
simply use project.getRootDir https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getRootDir--
^KT-52959 Fixed
2022-07-27 15:19:48 +00:00
Yahor Berdnikau
a218ad92be
Fix false-positive on checking unused sourcesets in MPP+Android project
...
AGP could create 'AndroidSourceSet' that does not participate in any
compilation. For this 'AndroidSourceSet's plugin should mark
corresponding KotlinSourceSet as orphan and exclude from check.
Unfortunately filtering them on KotlinSourceSet does not work,
as AGP adds sourcesets into variants lazily. And MPP requires all
SourceSets to be created eagerly. This change excludes all
KotlinSourceSets created for Android compilation from such check.
^KT-48436 Fixed
2022-07-27 14:01:55 +00:00
nataliya.valtman
52c4cd7b34
Add custom values limit into build scan statistic
2022-07-27 12:52:04 +00:00
nataliya.valtman
9d465236ee
Add SINGLE_FILE statistic option
2022-07-27 12:52:03 +00:00
Vladimir Sukharev
2313dbeb9e
Don't introduce call to deprecated "StringBuilder.append(String)"
...
Merge-request: KT-MR-6705
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-07-27 11:08:58 +00:00
Pavel Punegov
a961a93da7
[K/N][perf] Use properties file to get TeamCity URL
2022-07-27 09:06:34 +00:00
Pavel Punegov
911512ba96
[K/N][perf] Add try-clause for sending request
2022-07-27 09:06:33 +00:00
Ilya Gorbunov
1addc23b23
Add range iteration tests for rangeUntil
...
#KT-52932
2022-07-26 23:52:10 +00:00
Ilya Kirillov
50247a0346
[Analysis API FIR] fix getNamedClassOrObjectSymbol for MPP classes
2022-07-26 23:41:12 +02:00
Ilya Kirillov
0b285a951a
[Analysis API FIR] do not fail PsiClass.getNamedClassSymbol on Kotlin classes
2022-07-26 23:41:12 +02:00
Ilya Kirillov
fae30cef94
[Analysis API FIR] fix getting class id for non-java declarations
2022-07-26 23:41:11 +02:00
Ilya Kirillov
8be019d9bf
[Analysis API] simplify KotlinDeclarationProvider interface
2022-07-26 23:41:11 +02:00
Ilya Kirillov
8c70a4d51d
[Analysis API FIR] use narrower scope for KtFirStarImportingScope
2022-07-26 23:41:11 +02:00
Ilya Kirillov
9d82eb8fe3
[LL FIR] do not rethrow IndexNotReadyException/ControlFlowException from caches
2022-07-26 23:41:11 +02:00
Ilya Gorbunov
721508f6dd
Add several equality tests for empty open ranges
2022-07-26 18:42:30 +00:00
Steven Schäfer
58e51919bd
Parcelize: Add missing FIR diagnostics
2022-07-26 09:34:10 +00:00
Steven Schäfer
d4aa303acb
Parcelize: Avoid KotlinTypeMapper in ParcelizeDeclarationChecker
2022-07-26 09:34:10 +00:00
Steven Schäfer
d2f6acfd34
FIR: Add resolved type refs to the annotation container context for diagnostics
2022-07-26 09:34:09 +00:00
Alexander Shabalin
29a0bbca4d
[K/N] Fix ScopedThreadTest
...
Merge-request: KT-MR-6744
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-07-26 08:47:08 +00:00
Ivan Kochurkin
80450042c7
[FIR] Ignore KtFakeSourceElementKind in FirRecursiveProblemChecker
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
0af43757e3
[FIR] Implement FirNativeIdentifierChecker
...
* INVALID_CHARACTERS_NATIVE
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
a44d5bf52f
[FIR] Implement FirNativeThreadLocalChecker
...
* INAPPLICABLE_THREAD_LOCAL
* INAPPLICABLE_THREAD_LOCAL_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
987137cf76
[FIR] Implement FirNativeSharedImmutableChecker
...
* INAPPLICABLE_SHARED_IMMUTABLE_PROPERTY
* INAPPLICABLE_SHARED_IMMUTABLE_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
1bb158e45c
[FIR] Add SourceSet.generatedDir() and use it in build.gradle.kts
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
9f9cef392f
[FIR] Minor fixes of FirJvmDefaultChecker
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
ad1fb07a95
[FIR] Implement FirNativeThrowsChecker
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
c47148b8fb
[FIR] Remove FirJsSyntheticNamesProvider and FirNativeSyntheticNamesProvider.kt
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
502349c594
[FIR] Implement Native test infrastructure, add FirNativeSessionFactory
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
2f56b29b3f
[FIR] Extract FirSessionConfigurator and IncrementalCompilationContext to separated classes
...
With FirSessionFactory and FirJsSessionFactory
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
94527e24e8
[FIR] Commonize code for creating common, JVM and JS session
...
Extract FirAbstractSessionFactory
2022-07-25 23:30:09 +02:00
Pavel Kunyavskiy
d6f235679b
[K/N] Get rid of urls in perf infra code
2022-07-25 21:25:23 +00:00
Pavel Punegov
f13c71bb06
[K/N][perf] Add Parameter to specify URL to the performance server
2022-07-25 21:25:22 +00:00
Sergej Jaskiewicz
dbcffeb0ed
[JS] Fix a compiler crash when generating sourcemaps
...
It is possible that the source info has the type `KtPureElement`.
For example, the serialization plugin may create a synthetic companion
object for a `@Serializable`-annotated class.
This results in an instance of
the `SyntheticClassOrObjectDescriptor.SyntheticDeclaration` class being
indirectly set as source info. This class implements the `KtPureElement`
interface.
2022-07-25 19:27:59 +00:00
aSemy
d35656cb9f
KT-52647 remove "projects must be configuring" check
2022-07-25 17:09:48 +00:00
Sergey Bogolepov
89d3b9819b
[K/N] Mute test parts that cause KT-53317
2022-07-25 16:28:49 +00:00
Denis.Zharkov
7d6e133c0d
Refine warning messages for KT-36770
...
^KT-36770 Fixed
2022-07-25 16:08:49 +00:00
Denis.Zharkov
7f7e5c5975
FIR: Fix candidate receivers orders when choosing a context receiver
...
^KT-53257 Fixed
2022-07-25 15:11:29 +00:00
Sergej Jaskiewicz
8299cec66b
[JS] Upgrade YARN_LOCK_MISMATCH_MESSAGE
...
The task was renamed, let's use its new name in the error message
as well.
2022-07-25 08:19:45 +00:00
sebastian.sellmair
90a2141f1c
[Gradle][MPP] KMP <-> AGP compatibility check: Weaken warning when AGP is too high
...
^KT-53138 Verification Pending
2022-07-25 08:07:14 +00:00
sebastian.sellmair
2143180b40
[Gradle][MPP] KMP <-> AGP compatibility check: Restrict AGP minor version
...
^KT-53138 Verification Pending
2022-07-25 08:07:13 +00:00
sebastian.sellmair
1b0b09dd83
[Gradle][MPP] Implement KMP <-> AGP compatibility check
...
^KT-53138 Verification Pending
2022-07-25 08:07:12 +00:00
Yan Zhulanow
0c001cc993
Fix unstable reference provider ordering in IDE's KtIdeReferenceProviderService
...
As a result of unstable reference provider ordering, order of references in 'PsiElements' vary each IDE restart.
It directly affects the 'getReference()' method which returns the first available reference.
2022-07-25 07:35:39 +00:00
Ilya Kirillov
74273c6273
[Analysis API FIR] do not check for write access on inside ShortenCommandImpl as it breaks intention preview in IDE
2022-07-24 18:59:03 +02:00
Ilya Kirillov
91cf194a94
[LL FIR] incrementally update module caches
2022-07-24 15:37:44 +02:00
Ivan Kylchik
b9e2173288
Rewrite interpretation of enum entries to avoid IR data corruption
...
There was a bug here if during enum creation there will be an
exception. Then function `cleanEnumSuperCall` will never be called
and ir will be corrupted.
2022-07-23 18:32:53 +00:00
Ivan Kylchik
008a5f02e5
Make enum entries to be interpreted in right order
...
#KT-53727 Fixed
2022-07-23 18:32:52 +00:00
Ilya Kirillov
76f1744868
[Analysis API FIR] add more info to some exceptions
2022-07-23 19:54:47 +02:00
Rick Clephas
5a5e6ad8cd
[K/N] Add ObjCName annotation ( #4815 )
2022-07-23 18:58:06 +02:00