Ilya Kirillov
da88ddfc71
FIR IDE: always approximate non-denotable types for creating PsiType
2021-11-04 12:05:04 +01:00
Ilya Kirillov
bec9cec31c
LL API: correctly resolve FirSyntheticPropertyAccessor
2021-11-04 12:05:04 +01:00
Ilya Kirillov
79f30755a5
FIR LC: do not create light classes for non-source declarations
2021-11-04 12:05:03 +01:00
Ilya Kirillov
55e6df6920
Analysis API: do not consider ValidityToken when comparing symbols and types
...
Symbols with the same FirDeclaration may come from the different analysis sessions
2021-11-04 12:05:02 +01:00
Ilya Kirillov
d63c136854
Analysis API: recreate analysis session when not found by resolve state
2021-11-04 12:04:54 +01:00
Igor Laevsky
0915dac1f9
[Wasm] Handle unsigned arrays in the vararg lowering
2021-11-03 18:50:06 +03:00
Igor Laevsky
d1d2bd246b
[Wasm] Bump nodejs version
2021-11-03 17:56:53 +03:00
Igor Laevsky
22c161bcee
[Wasm] Run unit tests for the wasm stdlib (fail on verifier for now)
2021-11-03 16:23:02 +03:00
Igor Laevsky
36d9001d54
[Wasm] Teach gradle plugin to run wasm unit tests for nodejs and Mocha
2021-11-03 16:23:02 +03:00
Igor Laevsky
46b56c7642
[Wasm] Improve string constructor in stdlib
2021-11-03 16:23:01 +03:00
Igor Laevsky
8dc81b6c57
[Wasm][Temporary] Stubs for typeOf and ::class constructs
2021-11-03 16:23:01 +03:00
Igor Laevsky
43eeaa925f
[Wasm] Add ability to choose flavor for the wasm launcher
2021-11-03 16:23:01 +03:00
Igor Laevsky
cb10bd3a95
[Wasm] Port stdlib and kotlin.test build to wasm gradle plugin
2021-11-03 16:23:01 +03:00
Yahor Berdnikau
5a11446c79
Migrate KotlinDaemonIT tests to new test dsl.
...
^KT-45745 In Progress
2021-11-03 13:34:52 +01:00
Yahor Berdnikau
a6436adc17
Add KGPDaemonsBaseTest class as test base for daemons test.
...
This class will stop Gradle and Kotlin daemons after each test
execution.
^KT-45745 In Progress
2021-11-03 13:34:48 +01:00
Elena Lepilkina
8ed4279759
[K/N] Fix wasm build
2021-11-03 10:32:27 +00:00
Ilya Goncharov
f22de86954
[JS IR] Possibility to use export for nested inside object
...
[JS IR] Fix test data after master rebase
[JS IR] Use stdlib's listOfNotNull
[JS IR] Possibility to use export for nested inside object
- Add tests for such cases
Merge-request: KT-MR-4883
^KT-49363 fixed
2021-11-03 09:56:22 +00:00
Ilya Goncharov
540419a5d7
[Gradle, JS] Do not force dukat in separate dukat task
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:54 +00:00
Ilya Goncharov
9c4aa8fe84
[Gradle, JS] Fix unit test after changes of test infrastructure
2021-11-03 09:53:54 +00:00
Ilya Goncharov
99f686af39
[Gradle, JS] Fix according to recently Gradle test ifrastructure changes
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:53 +00:00
Ilya Goncharov
ce57826ed3
[Gradle, JS] Configure requires NPM dependencies inside rootPackageJson
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:53 +00:00
Ilya Goncharov
4bf6e6d722
[Gradle, JS] Use node_modules dir existence as marker of up-to-date
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:52 +00:00
Ilya Goncharov
21249a1dcb
[Gradle, JS] Use separate task class for good configuration caching
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:52 +00:00
Ilya Goncharov
4caa3ad562
[Gradle, JS] Configure tasks in after evaluate block
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:52 +00:00
Ilya Goncharov
e496c638ad
[Gradle, JS] Ignore scripts by default
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:51 +00:00
Ilya Goncharov
a03f346296
[Gradle, JS] Persist yarn lock by default
...
^KT-34014 fixed
^KT-49505 fixed
2021-11-03 09:53:51 +00:00
Ilya Goncharov
b11f2fb2af
[Gradle, JS] Update verification-metadata.xml
...
^KT-49530 fixed
2021-11-03 11:33:24 +03:00
Ilya Goncharov
c34884b0b6
[Gradle, JS] Update Node.JS onto 16.13.0 and Yarn onto 1.22.17
...
^KT-49530 fixed
2021-11-03 11:33:24 +03:00
Yahor Berdnikau
21d208341e
Move few kapt tests into daemon tests.
...
This tests does assertion that require having fresh Gradle daemon.
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
8991c78ae6
Migrate only Kapt tests to new test dsl.
...
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
550287105a
Add additional file assertions.
...
File does not exist, file exists in the tree, file does not exist in
the tree.
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
a5ff409c11
Also provide for tests JDK 1.8 as a parameter.
...
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
adbf075a68
Add method to include other test project as module.
...
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
7cda2e9859
Add 'testResolveAllConfigurations' assertion for new test DSL.
...
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
5989e0936f
Add helper methods to find all Kotlin or Java source files.
...
^KT-45745 In Progress
2021-11-03 08:59:35 +01:00
Yahor Berdnikau
7583d4d74e
Add KGP tests task dependency on sample annotation processor install.
...
Kapt tests expected it to be available in maven local.
^KT-45745 In Progress
2021-11-03 08:59:31 +01:00
Pavel Kunyavskiy
948dc4f374
Fix annotation class modality in stubs
...
^KT-49428
2021-11-03 07:22:28 +00:00
Pavel Kunyavskiy
c5f6c2acbd
Better pre-1.6.20 compatibility fix for AnnotationImplementation
...
^KT-49428
2021-11-03 07:22:28 +00:00
Pavel Kunyavskiy
d127815626
Refactor DataClassMembersGenerator.kt for better work with LazyIr
...
^KT-49428
2021-11-03 07:22:28 +00:00
Pavel Kunyavskiy
f4a88bde4e
[K/N] Force static constants and boxing caches be same values
...
^KT-49403
2021-11-03 07:21:25 +00:00
Yahor Berdnikau
2adf19c2bb
Move Gradle/Js tests into Js platform test tag.
...
^KT-45745 In Progress
2021-11-02 23:39:53 +01:00
konstantin.tskhovrebov
b0c34e217b
FatFrameworkTask: Fix dSYM extension check.
2021-11-02 21:08:16 +00:00
Ivan Gavrilovic
0ee4e386be
KGP - Fix flaky tests invoking javac through JDK APIs
...
Tests invoking javac APIs were flaky because ClasspathAnalyzerTest
was using Gradle's ProjectBuilder, which appends tools.jar to
the system class loader. Other tests do not do that, and they
invoke javac APIs directly.
In some executions, this causes some javac classes to be loaded
from the system class loader (the one patched by Gradle), while
some of them will be loaded by UrlClassLoader which points to tools.jar
in java.home. Having javac classes from different class loaders causes
java.lang.IllegalAccessError as package private access across class loaders
is not allowed. https://bugs.openjdk.java.net/browse/JDK-8068152 has more
information on this issue.
This change fixes the issue by fully removing usage of ProjectBuilder.
Test: ClasspathAnalyzerTest
2021-11-02 18:03:34 +01:00
Ivan Gavrilovic
4d208b529d
Kotlin Gradle plugin - Remove assertions from integration tests
...
This is because AGP 3.4 and 3.6 have version of R8 that is unable
to handle kotlin-stdlib 1.6+. Issue https://issuetracker.google.com/148661132
has more details on this.
Instead of adding logic to remove assertions based on the AGP version,
this change fully removes them to keep things simple. Also, running with
assertions enabled may be too much for the integration tests.
2021-11-02 17:53:30 +01:00
Denis.Zharkov
360d67410d
FIR: Fix overridability rule for Java declarations with different return type kinds
...
See the class at org/jmock/Expectations
public <T> T with(Matcher<T> matcher);
public boolean with(Matcher<Boolean> matcher);
When we extending such class it we start assuming
that fake generic override overrides both of the overridden that is wrong
from POV of Java and it fails at FIR ultimate build
NB: It's hard to write a test because such Expectation-like
class is impossible to write in pure Java
2021-11-02 19:08:28 +03:00
Denis.Zharkov
2e37ec6f0c
FIR: Fix false-positive ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL on invokeExtension calls
2021-11-02 19:08:27 +03:00
Denis.Zharkov
37b5237e97
FIR: Fix type alias case for callable reference resolution type
2021-11-02 19:08:26 +03:00
Yahor Berdnikau
a29dfb3b48
Disable finalizing by 'cleanTestKitDir' for 'kgpDaemonTests' task.
...
Seems jna dependency file descriptor is leaking on Windows agents,
leading to '.testKitDir' directory remove error.
2021-11-02 15:13:26 +01:00
Mads Ager
6622846bc1
[JVM IR] Do not put destructuring params or underscores in LVT.
...
Putting them in the local variable table means that the debugger
needs to have special handling for parameters with specific names.
That forces us to generate mangled names for these.
Instead of also implementing the name mangling for FIR, this
change gets rid of the parameters from the LVT instead.
2021-11-02 15:13:14 +03:00
Elena Lepilkina
1b4ee63f30
[K/N] Deprecate and remove from supported list relaxed memory model
2021-11-02 12:04:46 +00:00