Commit Graph

93508 Commits

Author SHA1 Message Date
Yahor Berdnikau 99c19dc046 Remove deprecated ConfigureUtil usages in KotlinTargetWithBinaries
^KT-46019 In Progress
2022-07-04 15:24:50 +00:00
Yahor Berdnikau 762ed90a80 Remove deprecated ConfigureUtil usages in CocoapodsExtension
^KT-46019 In Progress
2022-07-04 15:24:49 +00:00
Yahor Berdnikau 06c5884d4d Remove deprecated ConfigureUtil usages in CinteropSettings
^KT-46019 In Progress
2022-07-04 15:24:48 +00:00
Yahor Berdnikau 59025ad742 Remove deprecated ConfigureUtil usages in KotlinJsTest
^KT-46019 In Progress
2022-07-04 15:24:48 +00:00
Yahor Berdnikau 37fd47eee3 Remove deprecated ConfigureUtil usages in Kotlin target containers
^KT-46019 In Progress
2022-07-04 15:24:47 +00:00
Yahor Berdnikau f0cfe60734 Remove deprecated ConfigureUtil usages in HasKotlinDependencies
^KT-46019 In Progress
2022-07-04 15:24:46 +00:00
Yahor Berdnikau 4b0ba493b7 Remove deprecated ConfigureUtil usages in KotlinAggregatingExecution
^KT-46019 In Progress
2022-07-04 15:24:46 +00:00
Yahor Berdnikau ddeb8b0a1f Remove deprecated ConfigureUtil usages in JS configuration DSL
^KT-46019 In Progress
2022-07-04 15:24:45 +00:00
Yahor Berdnikau ae3451e2c8 Remove deprecated ConfigureUtil usages in KotlinNativeBinaryContainer
^KT-46019 In Progress
2022-07-04 15:24:44 +00:00
Yahor Berdnikau e765d65b50 Remove deprecated ConfigureUtil usages in Kotlin presets DSL
^KT-46019 In Progress
2022-07-04 15:24:44 +00:00
Yahor Berdnikau 46d7d73e6f Remove deprecated ConfigureUtil usages in KotlinProjectExtension
^KT-46019 In Progress
2022-07-04 15:24:43 +00:00
Yahor Berdnikau ac14a1e016 Remove deprecated WrapUtil usages
^KT-46019 In Progress
2022-07-04 15:24:42 +00:00
Yahor Berdnikau 23e16dfc5d Fix test project is using deprecated JavaExec.main property
^KT-46019 In Progress
2022-07-04 15:24:42 +00:00
Yahor Berdnikau e902ae7c09 Fix usage of deprecated Report.setEnabled() method
^KT-46019 In Progress
2022-07-04 15:24:41 +00:00
Yahor Berdnikau 851f55e9ec Set Gradle 7.1.1 as max target version for integration tests
^KT-46019 In Progress
2022-07-04 15:24:40 +00:00
nataliya.valtman 398228679a Report build metrics in the end of build 2022-07-04 15:11:34 +00:00
Kirill Shmakov f71564112d [K/N] Add missing LinkerOutputKind to kotlin-backend-native-for-ide
LinkerOutputKind is needed for AndroidProgramType initialization.
2022-07-04 14:33:11 +00:00
Vladimir Sukharev 680fec06d3 Add note comment for protected properties
^KT-51593 Fixed

Merge-request: KT-MR-6593
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-07-04 14:24:21 +00:00
Mikhail Glukhikh 730a5d1a88 FIR: introduce Java vs Kotlin class conflicts checker #KT-44441 Fixed 2022-07-04 13:28:58 +00:00
Simon Ogorodnik d94d832309 FIR Test. Fix isolate not called for FP tests 2022-07-04 12:49:05 +00:00
Victor Petukhov 3ed87c29c7 [FE 1.0] Substituted possible fixed type variables after completion in accordance with @OverloadResolutionByLambdaReturnType
^KT-48031 Fixed
2022-07-04 12:05:57 +00:00
Victor Petukhov 5b5da025f4 [FE 1.0] Don't throw empty intersection exception, return empty intersection type instead 2022-07-04 12:05:56 +00:00
Nikolay Krasko a798fe0b18 Rename space dev files 2022-07-04 10:52:09 +02:00
Mikhail Glukhikh 4aed9511f6 FIR/FE10: fix false positives described in KT-24643 2022-07-03 19:10:02 +00:00
Mikhail Glukhikh 3223d3c3e9 Add test with false/true positives for KT-24643 2022-07-03 19:10:01 +00:00
Nikita Nazarov 65bb6abae4 Add tests on variable spilling with debug mode enabled
#KT-48678 Fixed
2022-07-02 18:29:18 +03:00
Nikita Nazarov 38d97d0621 Add a key to enable spilling of all variables in a suspending context
This commit adds a new key that will allow users to enhance their
debugging experience in suspending contexts when using the IR backend.
After the key is enabled, the following things are changed:
1. All variables in a suspending context are spilled regardless their
liveness.
2. Their LVT records are not shrunk.
3. ACONST_NULL is not spilled to dead variables.

#KT-48678 In progress
2022-07-02 18:29:18 +03:00
Nikolay Krasko 2bdd45f659 Update space images
Follow the https://helpserver.labs.jb.gg/help/space/internal/set-up-a-dev-evnvironment.html#warm-up-dev-environment guide
2022-07-02 00:39:51 +02:00
Ilya Kirillov 445c0deb61 [Analysis] fix race in registering services in test 2022-07-01 21:08:18 +02:00
Ilya Kirillov 21fcb9ccc0 [Analysis API] add checks that KtLifetimeOwners are not leaked to other analyse scope 2022-07-01 21:08:18 +02:00
Ilya Kirillov aca8643262 [Symbol LC] rename analyseForLightClasses -> analyzeForLightClasses 2022-07-01 21:08:18 +02:00
Ilya Kirillov 00b893444c [Analysis API] remove unneeded analyzeWithSymbolAsContext 2022-07-01 21:08:18 +02:00
Ilya Kirillov 3dffe828b1 [Symbol LC] get rid of usage of analyzeWithSymbolAsContext for LC 2022-07-01 21:08:18 +02:00
Nikolay Krasko 397ddb7d2c Add isCacheRedirectorEnabled to kotlin common build properties 2022-07-01 18:44:48 +00:00
Nikolay Krasko 5b8a4ccd56 Use cache-redirector for downloading in parcelize tests
There's a flaky failures when
~/.m2/repository/org/robolectric/android-all/5.0.2_r3-robolectric-r0/android-all-5.0.2_r3-robolectric-r0.jar
is partially downloaded during tests execution.
This led to Parcelize tests failure with:

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
 at java.util.zip.ZipFile.read(Native Method)
 at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
 at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)
 at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)
 at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
 at java.io.FilterInputStream.read(FilterInputStream.java:133)
 at java.io.FilterInputStream.read(FilterInputStream.java:107)
 at org.robolectric.util.Util.copy(Util.java:21)
 at org.robolectric.util.Util.readBytes(Util.java:38)
 at org.robolectric.internal.bytecode.SandboxClassLoader.getByteCode(SandboxClassLoader.java:166)
... 36 more

Option used was found at https://github.com/robolectric/robolectric/blob/7697d1217c5eb0dee454004efe60ba219f398255/plugins/maven-dependency-resolver/src/main/java/org/robolectric/MavenRoboSettings.java#L19

^KTI-842 Fixed
2022-07-01 18:44:48 +00:00
Ilya Gorbunov 3a029b8e80 Fix ValueTimeMark adjustment in rare cases and properly test it 2022-07-01 15:20:22 +00:00
Mikhail Glukhikh 4737bb07df FIR: look for conflicting declarations more precisely 2022-07-01 15:07:48 +00:00
Mikhail Glukhikh 3092a84b6b Drop unreachable when branch in FirConflictsChecker 2022-07-01 15:07:48 +00:00
Nikolay Krasko c7fc4cdfdf Update environment containers
Move to same project to avoid problems with tha authorizations
2022-07-01 13:40:24 +00:00
Nikolay Krasko 48a2ef040e Fix publication for kotlin-gradle-plugin-idea-proto
Javadoc and sources were missing.
2022-07-01 13:40:24 +00:00
Nikolay Krasko c67c615fa3 Allow to disable progressive mode with the false value 2022-07-01 13:40:23 +00:00
Ilya Gorbunov 0546b0902c Fix line endings ruined after applying line filter
Line filtering causes output file have platform-specific line endings.
Apply another filter to fix them to LFs.
2022-07-01 13:16:11 +00:00
Ilya Gorbunov f422845b9c Test open FP ranges with NaN bound
#KT-52932
2022-07-01 13:11:42 +00:00
Ilya Gorbunov 73084e5a68 Add tests for endExclusive property
Now, after a bootstrap, it's possible to use it

#KT-52932
2022-07-01 13:11:42 +00:00
Ilya Gorbunov d825af7a22 Switch language version in Kotlin project to 1.8
Use kotlinx-metadata-jvm:0.5.0 that supports reading 1.8.0 kotlin metadata version
2022-07-01 13:04:03 +00:00
Ilya Chernikov 854127bcc8 Fix testdata after switching Kotlin to version 1.8
(see the previous commit with the same title for details)
2022-07-01 14:31:45 +02:00
Ilya Chernikov 513f490502 Scripting: notify writer in REPL on errors reporting complete
required for restoring compatibility with IDE REPL usages (scratch
files included), since IDE counterpart needs a reliable signal
when the processing of the REPL snippet/command is completed
2022-07-01 10:14:42 +00:00
Ilya Kirillov 77758d1552 [Analysis] do not reregister services in AbstractStubBuilderTest 2022-07-01 11:33:21 +02:00
Ilya Kirillov 271ecfbd68 [Analysis] Try to fix randomly failing tests because of unregistered FileAttributeService
It should be unregistered with the application by ApplicationEnvironmentDisposer
which is registered in :compiler:tests-common-new
2022-07-01 11:33:21 +02:00
Bart van Helvert 7bef560b6b KTIJ-21986 Don't log non-kotlin code fragment context when it's null
This warning shouldn't be logged when the context is null.
2022-07-01 08:15:58 +00:00