Commit Graph

100952 Commits

Author SHA1 Message Date
Mikhail Glukhikh 6ae648f6f6 K2: reproduce KT-58379 2023-05-08 07:43:54 +00:00
Alexander Shabalin 142e2b4b2a [K/N] Add RosettaExecutor
Merge-request: KT-MR-9986
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2023-05-06 13:44:25 +00:00
Alexander Shabalin 917f64c893 [K/N] Fix ObjCAction, ObjCOutlet not switching state. ^KT-58441 2023-05-05 19:02:34 +00:00
Alexander Shabalin 860d0e32f7 [K/N] Add tests on ObjCAction and ObjCOutlet. ^KT-58441 2023-05-05 19:02:34 +00:00
Artem Daugel-Dauge 927db1bb56 [Gradle] Try to fix flaky testSyntheticProjectPodfilePostprocessin 2023-05-05 18:04:18 +00:00
Sebastian Sellmair 543ab6c390 [Gradle] Implement test - multiplatform - with K2 - source filter on compile task is respected
KT-58466
2023-05-05 16:30:00 +00:00
Sebastian Sellmair 86b54fadcc [Gradle] Remove unused 'buildKotlinNativeKlibCompilerArgs' as it cannot satisfy correct sourceFileFiltering
^KT-58466 Verification Pending
2023-05-05 16:30:00 +00:00
Sebastian Sellmair 75d771fc39 [Gradle][K2] Respect compile task's sourceFileFilter when building -Xfragment-sources
^KT-58466 Verification Pending
2023-05-05 16:30:00 +00:00
Yahor Berdnikau 82786fe6bf On OOM in Kotlin daemon also show message how to increase heap size
^KT-58320 Fixed
2023-05-05 16:25:52 +00:00
Ivan Kylchik 73cc73115e [FIR2IR] Simplify logic around annotationMode
#KT-58005 Fixed
2023-05-05 16:15:00 +00:00
Alexander Udalov 59ea7717dd Codeowners: add JVM team to kapt tests 2023-05-05 13:51:25 +00:00
Dmitrii Gridin c2b09d3b1e [LL FIR] rewrite LLFirSuperTypeTargetResolver
The previous implementation had issues with
locks, publication and performance

Also, this change fixed a problem with mixed cycle inheritance

^KT-56550
^KTIJ-25430 Fixed
^KTIJ-23520 Fixed
^KT-57623 Fixed
^KTIJ-25372 Fixed
^KT-58357 Fixed
2023-05-05 12:35:46 +00:00
Ilya Goncharov 09d17d88d7 [Gradle, JS] Add printing of build output to composite build test 2023-05-05 12:27:42 +00:00
Vladimir Sukharev 98be76295f [K2/N] Insert asserts to reveal wrongly recursive Fir2IrLazy*.overriddenSymbols
^KT-58459
[Merge-request: KT-MR-9962
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-05-05 12:06:22 +00:00
Stanislav Ruban 47c32ef37f KT-52671: Add CLI test
The issue in question was obsoleted by development of K2/MPP.

^KT-52671
2023-05-05 11:58:22 +00:00
Sergej Jaskiewicz bfa2c92c7f [IR] Support stable ordering in Kotlin-like IR dump
This is needed for signature tests to work with the same golden data
on both K1 and K2, since sometimes K1 and K2 produce IR with different
order of declarations and supertypes.
2023-05-05 11:12:37 +00:00
Nataliya.Valtman 71e81aa30e Fix build reports when no kotlin task is executed
#KT-58313: Fixed
2023-05-05 10:48:11 +00:00
Nataliya.Valtman 750ff32241 Avoid using project.getProperties() for customSessionLoggerRootPath 2023-05-05 10:48:11 +00:00
Kirill Rakhman 3c66ae0f8b [FIR, LT] Report syntax error by traversing LT after parsing
#KT-57756 Fixed
2023-05-05 09:34:24 +00:00
Kirill Rakhman b07e4f26ef [LT, Parsing] Parse blocks and lambdas eagerly for Light Tree 2023-05-05 09:34:23 +00:00
Kirill Rakhman 6119606cb6 [FIR LT] Make syntax error reporting in tests consistent with cli 2023-05-05 09:34:23 +00:00
Kirill Rakhman bdf0b41026 [FIR] Consolidate SYNTAX and SYNTAX_WITH_MESSAGE diagnostics 2023-05-05 09:34:23 +00:00
Kirill Rakhman 871a148529 [FIR] Prevent duplicate SYNTAX diagnostic for top-level destructuring 2023-05-05 09:34:23 +00:00
Kirill Rakhman 9918526556 [FIR] Visit error properties in ErrorNodeDiagnosticCollectorComponent 2023-05-05 09:34:23 +00:00
Kirill Rakhman 9e34a5ad82 [FIR] Ignore error declarations in conflict checking 2023-05-05 09:34:23 +00:00
Kirill Rakhman 4c6b6dd700 [FIR] Render error properties and function in FirRenderer 2023-05-05 09:34:23 +00:00
Dmitriy Dolovov 5beec6b543 [Native][tests] Avoid failing with IO exceptions when the process under test is intentionally killed 2023-05-04 23:17:58 +00:00
Anna Kozlova 799210262d [decompiler] skip return type check for src functions without return type 2023-05-04 21:31:43 +00:00
Xin Wang 7b4e6bae0e JVM: ensure the $ENTRIES field is initialized before use
#KT-57784 Fixed
2023-05-04 23:11:39 +02:00
Vladimir Sukharev 79599ab69e [K2/N] Add ObjCExport test for kdoc strings
^KT-56090

Merge-request: KT-MR-9926
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-05-04 19:17:00 +00:00
Evgeniy.Zhelenskiy d24eaf13b5 [FIR] Fix value parameter indexes when using context receivers
#KT-1179 #KT-10468
2023-05-04 16:44:18 +00:00
Evgeniy.Zhelenskiy bf5fa61ffb [IR] Unify MFVC bridge redirection, fix related bugs, support MFVC overriding functions with default parameters
#KT-1179
2023-05-04 16:44:18 +00:00
Jinseong Jeon 384ed9cc9e AA: regression test for default value that calls previous params 2023-05-04 18:26:32 +02:00
Anton Lakotka 6e6659fc2a [Gradle] Remove workarounds for KT-57483 from tests
^KT-57483
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Anton Lakotka a1eff2cd85 [Gradle] Test kotlinNativeFrameworkNameAttribute on fat frameworks
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Anton Lakotka 7c5d1b4030 [Gradle] Add kotlinNativeFrameworkNameAttribute to fat frameworks as well
^KT-58316 Verification Pending
2023-05-04 15:35:34 +00:00
Ilya Kirillov ba3a3915c7 [Analysis API] tests: use tagged caret to find declaration to analyze in the air against
We cannot use a KtFile as analysis context.

^KT-55527
2023-05-04 15:26:50 +00:00
Ilya Kirillov 66de893963 [LL FIR] refactoring: rename LowLevelFirApiFacadeForResolveOnAir.onAirGetTowerContextProvider -> getOnAirGetTowerContextProvider
so it matches its counterpart getOnAirTowerDataContextProviderForTheWholeFile
2023-05-04 15:26:50 +00:00
Ilya Kirillov eeac3f53b4 [Analysis API] add tests for getImportingScopeContext
^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov 20f921c0bf [Analysis API] fix getScopeContextForFile and clarify its semantic
It was used to get importing scope, so it was renamed to getImportingScopeContext.

It was broken after changing the behaviour of `LowLevelFirApiFacadeForResolveOnAir.onAirGetTowerContextProvider` for the whole file

^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov 254092a267 [Analysis API FIR] tests: add ability to ignore specific scope kind in TestScopeRenderer
^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov 349e55cb00 [Analysis API FIR] refactor, extract createScopesWithKind to a separate function
it will be reused in the following commits

^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov 67041851fc [LL FIR] tests: extract scope rendering utilities to a separate object
For further reuse

^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov e9f75b1350 [LL FIR] add test which checks reference shortening for the whole file
^KT-57966
2023-05-04 15:26:50 +00:00
Ilya Kirillov bb7037aa8e [LL FIR] extract shortening rendering for tests to a separate file
So it can be reused from other tests

^KT-57966 fixed
2023-05-04 15:26:50 +00:00
Ilya Kirillov 3b85715f0f [LL FIR] fix KtFirReferenceShortener collection for the whole file
previously it worked only for separate declarations

^KT-57966 fixed
2023-05-04 15:26:49 +00:00
Ilya Kirillov 793cb02c7d [LL FIR] allow collecting tower data context for entire FirFile
Before, it was done only for import statements

^KT-57966
2023-05-04 15:26:49 +00:00
Ilya Kirillov 8073e65162 [LL FIR] allow passing FirTowerDataContextCollector to
`LLFirModuleLazyDeclarationResolver.lazyResolveTarget`

so we can collect tower data context for any LLFirResolveTarget

^KT-57966
2023-05-04 15:26:49 +00:00
Sergej Jaskiewicz 89ecd1e0e2 [FIR] Respect exception suppression in Fir2IrResultsConverter
Only Fir2IrJvmResultsConverter respected
the IGNORE_FIR2IR_EXCEPTIONS_IF_FIR_CONTAINS_ERRORS test directive.
Fir2IrJsResultConverter didn't.

This is fixed here.
2023-05-04 14:58:06 +00:00
Sergej Jaskiewicz a74df3b4b4 [IR] Store manglers used for signature computation in IrBackendInput
We will need them in signature dump tests later.
2023-05-04 14:58:06 +00:00