Commit Graph

1158 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 20c46738b4 Advance bootstrap to 1.9.30-dev-1098 2023-08-23 14:57:21 +00:00
Ilya Gorbunov ffbff15839 Add .idea/artifacts to .gitignore and delete already committed files from there, KTI-1337 2023-08-22 13:41:27 +00:00
Dmitriy Dolovov d691ab61d7 [KLIB] Keep "API for KLIB ABI" test data under "compiler/testData/klib/" dir
The test data is used both in ":kotlin-util-klib-abi" and
":native:native.tests" modules. It's better to keep it together with
the test data for other KLIB tests which are also used in more than one
module, i.e. in "compiler/testData/klib/" dir.
2023-08-16 19:11:35 +00:00
Dmitriy Dolovov d7e9fcea04 [PL][JS] Add missing PL test to the IDEA run configuration 2023-08-16 19:11:34 +00:00
Hung Nguyen 894ba9ab80 [IC] Relocatable IC caches for projects with custom buildDir
IC caches often contain file paths. To make them relocatable, we need
to convert these file paths into relative paths, relative to a base
directory.
  - If the file paths are source files, we can use the root project
    directory as base.
  - If the file paths are class files, we should use the classes
    directory as base (before this commit, we used the root project
    directory in both cases, that's why we hit KT-58547).

The key changes in this commit include:
  - RelocatableFileToPathConverter: converts paths to relative paths
  - IncrementalCompilationContext: contains 2 different path converters,
    one for source files and one for class files
  - SourceToOutputFilesMap: maps source files to class files using the
    above path converters
  - IncrementalCompilerRunner: creates the path converters based on file
    locations

Test: RelocatableFileToPathConverterTest unit test
      SourceToOutputFilesMapTest unit test
      BuildCacheRelocationIT.testCustomBuildDirectory integration test
^KT-58547 Fixed
2023-08-16 13:40:19 +00:00
Timofey Solonin d2728e0baf Advance bootstrap to 1.9.20-dev-9102 2023-08-08 04:12:08 +00:00
Dmitriy Dolovov 76e24e5093 [KLIB] JS K1 & K2 tests for API for dumping KLIB ABI
^KT-54402
2023-07-31 20:22:20 +00:00
Dmitriy Dolovov 5171d92fb9 [KLIB] API for dumping KLIB ABI
^KT-54402
2023-07-28 09:52:18 +00:00
Dmitriy Novozhilov 8acf6b1bd0 Advance bootstrap to 1.9.20-dev-6963 2023-07-19 12:16:31 +00:00
Dmitriy Novozhilov edc7df517c Revert "Advance bootstrap to 1.9.20-dev-6571"
This reverts commit 4797d30837.
2023-07-14 15:05:07 +00:00
Dmitriy Novozhilov 4797d30837 Advance bootstrap to 1.9.20-dev-6571 2023-07-14 12:59:56 +00:00
Sebastian Sellmair 42d648f775 [Gradle] KotlinPluginLifecycle: Implement CoroutineStart and start futures 'Undispatched' by default
This API was inspired by kotlinx.coroutines and shall help
making Kotlin Gradle Plugins 'Future' type more applicable for situations
when the Future is used inside the Configuration Phase

^KT-60158 In Progress
2023-07-10 13:44:02 +00:00
Dmitriy Novozhilov 3ac009ea38 Advance bootstrap to 1.9.20-dev-5788 2023-07-05 20:24:06 +00:00
Dmitriy Novozhilov c29482f25f Advance bootstrap to 1.9.20-dev-4459 2023-06-21 09:49:49 +00:00
Vyacheslav Gerasimov b06ec464d9 Minor: .idea/dictionaries update 2023-06-16 12:19:01 +00:00
Dmitriy Novozhilov 48c7af171a Advance bootstrap to 1.9.20-dev-3234 2023-06-08 15:04:42 +00:00
Sebastian Sellmair 7fbdd8e0bc [Gradle] Update multiplatform test run configurations to 'run as test' 2023-06-05 14:25:01 +00:00
Dmitriy Novozhilov 0c34b20e3d Advance bootstrap to 1.9.20-dev-2357 2023-05-26 18:26:44 +03:00
Nikolay Krasko 3eeb867f56 Minor: cleanup warnings in codebase-tests 2023-05-23 16:52:40 +00:00
Brian Norman f149b69df5 Update project icon for Toolbox and IDEA 2023-05-22 17:10:05 +00:00
Sergej Jaskiewicz 6e8283a6fe [IR] Dump IdSignatures and mangled names in irText tests
The reason #1 for this feature is that we want to test IdSignatures
generated for declarations. Currently, there is no (easy) way to ensure
that a change in the signature building logic doesn't cause any breaking
changes wrt klibs.

Now, most IdSignatures include hashed mangled names in them, so even if
we catch a regression where the included hash changes, there would be no
way of knowing immediately what caused it, unless we'd also have mangled
names in the expectations.

The reason #2 is to test the manglers themselves. Currently, there are
no tests for them. They heavily duplicate each other, this is already
causing issues (see KT-57427) that would be very hard to catch without
these tests.

^KT-58238 Fixed
2023-05-15 18:20:45 +00:00
Dmitriy Novozhilov 7585a406e4 Advance bootstrap to 1.9.20-dev-1095 2023-05-10 09:32:30 +00:00
Sergej Jaskiewicz c022c451a4 Adjust the code style to use trailing commas in parameter lists 2023-05-02 13:36:56 +00:00
Dmitriy Novozhilov 172501b9e0 Advance bootstrap to 1.9.20-dev-154 2023-04-30 17:43:20 +00:00
Dmitriy Novozhilov fe45e26d83 Advance bootstrap to 1.9.0-dev-6976 2023-04-26 17:48:14 +03:00
Dmitriy Novozhilov 7f07b2a82c Revert "Advance bootstrap to 1.9.0-dev-6379"
This reverts commit fe44727f97.

Revert is needed because of KT-58160
2023-04-21 13:15:45 +00:00
Dmitriy Novozhilov fe44727f97 Advance bootstrap to 1.9.0-dev-6379 2023-04-20 18:37:29 +00:00
Dmitriy Novozhilov 43dd8571d3 Revert "Advance bootstrap to 1.9.0-dev-5560"
This reverts commit e079d9d405.

Revert is needed because of KTIJ-25227
2023-04-12 18:20:00 +00:00
Dmitriy Novozhilov e079d9d405 Advance bootstrap to 1.9.0-dev-5560 2023-04-12 11:08:22 +00:00
Leonid Shalupov 7480befe32 Replace reflection-based compiler arguments copying with generated code
Using of Kotlin reflection for simple operations like bean management is very slow

First time initialization time: 261 ms for `copyBean(K2JVMCompilerArguments())`
Subsequent calls of `copyBean(K2JVMCompilerArguments())` take 1.7 ms per call

Unfortunately compiler argument handling is also used in Kotlin IntelliJ plugin
to parse facet settings. Big projects may have thousands of Kotlin facets

The same `ArgumentUtilsKt.copyProperties` frame is seen across various freezes:
IDEA-252440 2-3 minutes freeze on Kotlin project reimporting in last 203 eap
IDEA-253107 A lot of short freezes (1-3 sec) during Kotlin project development
KTIJ-23501 Make main run configuration detection lighter
KTIJ-22435 Unresponsive UI with 100% cpu

Reflection issue:
KT-56358 KClasses.getMemberProperties takes too much time

This commit replaces all reflection stuff with a simple code generation
Now `K2JVMCompilerArguments().clone()` goes to hard-to-measure time
2023-04-03 15:47:35 +02:00
Dmitriy Dolovov 8380a1ed54 [PL][tests] Update IDE run configurations 2023-03-29 15:41:06 +00:00
Dmitriy Novozhilov 0149ac3dbd Advance bootstrap to 1.9.0-dev-4392 2023-03-28 19:42:13 +03:00
Dmitriy Dolovov 295c578f44 [PL] Rename IDEA run configurations for ABI compatibility tests
Also: Run Native ABI tests with '--stacktrace' option turned on.
2023-03-23 10:24:27 +00:00
Sergej Jaskiewicz 70bcb1fdea [native] Support Native tests in Test Data Helper Plugin 2023-03-22 15:18:41 +00:00
Dmitrii Gridin 0863e9c589 [Test] Add testdata of LL Fir tests to Test Helper plugin path 2023-03-20 15:06:15 +01:00
Dmitriy Novozhilov 7a25e885b1 Advance bootstrap to 1.9.0-dev-3768 2023-03-18 00:44:36 +02:00
Dmitrii Gridin b7370f0156 [Test] Add testdata of SLC tests to Test Helper plugin path 2023-03-14 16:09:50 +01:00
Dmitriy Novozhilov 088109a660 Advance bootstrap to 1.9.0-dev-2695 2023-03-01 11:07:06 +00:00
Sergej Jaskiewicz c940eb25b0 [Test Data Helper Plugin] Update paths to JS output files
417fef0d58 updated the output paths,
but the plugin settings were not updated there.
2023-02-28 13:19:40 +00:00
Dmitriy Novozhilov 81c1014391 Advance bootstrap to 1.9.0-dev-1777 2023-02-15 16:35:15 +00:00
Sebastian Sellmair d24092e467 Demote LoggingStringTemplateAsArgument inspection to 'consideration' 2023-02-09 10:58:10 +00:00
Dmitriy Novozhilov 4e04a8bc69 Advance bootstrap to 1.9.0-dev-877 2023-02-01 11:31:44 +00:00
Svyatoslav Kuzmich bebb9b1392 [Wasm] Move compiler tests to :wasm:wasm.tests module
They don't belong in K/JS test module.
2023-01-31 13:12:12 +00:00
Kirill Rakhman e9b8d6db80 Add words to dictionary 2023-01-31 08:39:41 +00:00
Pavel Kirpichenkov 4dbb2b01fe [Tests] Give clear name to functional dependency resolution tests
KT-55530
2023-01-10 16:02:54 +00:00
Pavel Kirpichenkov c3ea93f4a4 [Tests] Split functional tests by Gradle tasks
KT-55530
2023-01-10 16:02:53 +00:00
Pavel Kirpichenkov cee5d568a5 [MPP, tests] Rearrange functional tests
Split tests into groups: unit tests, regression tests and
ide importing tests. Create additional run configurations for them.

KT-55530
2023-01-10 16:02:52 +00:00
pyos 803abfeba8 FIR: rewrite lambda return type inference
* `return` should only be added to the last statement if the return
   type is not Unit

 * If there is a `return` without an argument, then the expected return
   type is Unit and the last expression is not a return argument (unless
   it's an incomplete call, in which case it is inferred to return Unit;
   this behavior is questionable, but inherited from K1)

 * There should be a constraint on return arguments even if the expected
   type is Unit, otherwise errors will be missed

 * When the expected type is known, using the call completion results
   writer is pointless (and probably subtly wrong).

^KT-54742 Fixed
2023-01-10 15:40:45 +02:00
Abduqodiri Qurbonzoda 4af0f110c7 Fix 'Test: stdlib-js public kotlin api test' IDEA run configuration
Moving tests to another package made the IDEA run configuration obsolete.
To prevent this problem in the future a separate task (jsStdlibApiTest)
was introduced. The task is run in TC and will fail if the tests are missing.

Merge-request: KT-MR-8128
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2023-01-07 12:30:52 +00:00
Ilya Kirillov ae68f08856 [FIR] make FirJavaClass.superTypes to be lazily enhanced
This should solve the problem with deadlocks/performance in the K2 IDE

This is a temporary solution until the ^KT-55387 is properly fixed

^KT-55387
^KT-54890
2023-01-06 18:55:43 +00:00