Commit Graph

93853 Commits

Author SHA1 Message Date
Victor Petukhov bab8047bb3 [FE 1.0] Resolve this and super calls through the new type inference infra
^KT-48961 In progress
2022-07-22 16:03:48 +00:00
Yahor Berdnikau 3c0c477f06 Enable filesystem watching by default in Gradle tests
This should reduce flakiness on CI.
2022-07-22 12:02:43 +00:00
Sergey Bogolepov cd54afea8f [K/N] Add option to omit generation of binary when producing framework
`-Xomit-framework-binary` is useful when the user does not care about
generated machine code, but only about its public interface.
Current use-case is for development purposes only: to iterate faster
on ObjCExport. But potentially it can be turned into user-facing feature
2022-07-22 11:57:15 +00:00
Sergey Bogolepov 30f1af7ce0 [K/N] Move isFinalBinary and involvesLinkStage checks to KonanConfig
It allows to make more precise checks by accessing KonanConfig
properties.
2022-07-22 11:57:13 +00:00
Sergey Bogolepov ebe292ffe9 [K/N] Simplify phases configuration
Group simultaneously disabled phases into single `if` to improve
readability and avoid repetition.
2022-07-22 11:57:12 +00:00
Sergey Bogolepov 88eee13837 [K/N] Destroy symbol table when producing metadata library.
Probably it wasn't destroyed by mistake.
2022-07-22 11:57:12 +00:00
Sergey Bogolepov 7055893605 [K/N] Move framework interface generation to "Produce Output" phase
It allows to invoke interface generation even if we don't compile a
binary.
2022-07-22 11:57:11 +00:00
Mikhail Glukhikh 78da5907c8 K2 checkers: separate report committer from other diagnostic components 2022-07-22 11:35:28 +00:00
Mikhail Glukhikh eba0e94429 K2: get rid of manual diagnostic suppression in checkers 2022-07-22 11:35:28 +00:00
Mikhail Glukhikh 07f16ef378 K2 LL API: implement automatic diagnostic suppression 2022-07-22 11:35:27 +00:00
Mikhail Glukhikh 9add6f3d55 K2: add more accurate & more automatic control of diagnostic suppression
#KT-51363 Fixed
2022-07-22 11:35:26 +00:00
Mikhail Glukhikh 179b267d9f K2: add test with some samples of diagnostic suppression 2022-07-22 11:35:25 +00:00
Ilya Goncharov 4284f6b573 [Gradle, JS] make state in KotlinRootNpmResolverStateHolder public 2022-07-22 07:00:37 +00:00
Ilya Kirillov 6759263ae9 [Analysis API FIR] fix getClassOrObjectSymbol for classes actualized by typealias 2022-07-22 00:59:01 +02:00
Ilya Kirillov 10dea730b3 [Analysis API] fix invalid KtAnalysisScopeProvider. analysisScope 2022-07-22 00:59:00 +02:00
Ilya Kirillov 18b6a8b6a1 [Analysis API] make KtFunctionLikeSymbol to be sealed class 2022-07-22 00:59:00 +02:00
Ilya Kirillov b55f36f0fd [Analysis API] introduce some basic API to create KtSymbol by Java PSI
^KT-50240
2022-07-22 00:58:59 +02:00
Ilya Kirillov e4d00eea0f [Analysis API FE10] fix candidate creation for KtSuperTypeCallEntry 2022-07-22 00:58:59 +02:00
Ilya Kirillov a0f0fa5a47 [Analysis API FIR] fix candidate collection for delegatedConstructor call
^KTIJ-20446
2022-07-22 00:58:59 +02:00
Ilya Kirillov 2c48d25c96 [Analysis API FIR] fix call candidate collection on calls without () 2022-07-22 00:58:58 +02:00
Ilya Kirillov e8bf8cb182 [Analysis API FIR] fix type rendering for type with "Cannot infer type for parameter" error 2022-07-22 00:58:58 +02:00
Ilya Kirillov 51cd5fb5d8 [LL FIR] reuse source sessions 2022-07-22 00:58:58 +02:00
Ilya Kirillov a43ed57be5 [LL FIR] add basic supoport of handling not under content root modules 2022-07-22 00:58:58 +02:00
Aurimas Liutikas 7b48c892be Move to using projectLayout 2022-07-21 22:05:07 +00:00
Aurimas 8921270f36 Make GenerateProjectStructureMetadata configuration cache compatible
GenerateProjectStructureMetadata was accessing project  object through a lazy getter of resultFile.
Since calculating this value is not expensive, do it without it being lazy, which makes it configuration
cache compatible.
2022-07-21 22:05:07 +00:00
Vladimir Sukharev 26149be44a KT53100: Optimization: <T-unbox>(CONSTANT_PRIMITIVE(x: T?)) => x
Merge-request: KT-MR-6684
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-07-21 21:45:03 +00:00
Ilya Goncharov 5979e6e5de Revert "make state in KotlinRootNpmResolverStateHolder public"
This reverts commit 65f712ab2d.
2022-07-21 20:11:34 +02:00
aSemy 65f712ab2d make state in KotlinRootNpmResolverStateHolder public
https://youtrack.jetbrains.com/issue/KT-52647
2022-07-21 19:46:15 +03:00
dependabot[bot] 494962bf95 Bump terser in /libraries/tools/kotlin-test-js-runner
Bumps [terser](https://github.com/terser/terser) from 5.11.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-21 19:15:14 +03:00
Nikolay Krasko 683322e45a Explicit restriction for maximum memory in js box tests
There were failures during jsCompilerTest execution on the machine
with 16GB and 8 CPU.
2022-07-21 15:47:30 +00:00
Ilya Chernikov ceea563d63 Scripting: avoid creating multiple PSIs for every imported script
#KT-53009 fixed
#KT-42810 should be possible now too, but more testing is needed
#KT-42101 can also be addressed now, but first the serialization
 of the imported scripts property should be solved
2022-07-21 13:53:41 +00:00
Sergej Jaskiewicz 9bc057afb2 [JS IR] Generate the correct relative paths in source maps 2022-07-21 12:18:45 +00:00
Sergej Jaskiewicz 62f957a482 [JS IR] Respect the kotlinOptions.sourceMap = false setting
^KT-52830 Fixed
2022-07-21 12:18:45 +00:00
Sergej Jaskiewicz d49ca87cd2 [test] Enable Gradle integration testing for JS sourcemaps 2022-07-21 12:18:44 +00:00
Sergej Jaskiewicz 54c2839a7f [JS] J2K for SourceMapBuilderConsumer 2022-07-21 12:18:43 +00:00
Sergej Jaskiewicz 9f5f5bcab2 Rename .java to .kt 2022-07-21 12:18:43 +00:00
Yahor Berdnikau b28819a186 Enable signing for publication into Gradle plugin portal
^KT-53172 Fixed
2022-07-21 11:52:46 +02:00
Yahor Berdnikau ef28967216 Update Gradle publish plugin to final 1.0.0 version
^KT-53172 In Progress
2022-07-21 11:52:31 +02:00
Ilya Goncharov 3e0b50c924 [Gradle, JS] Reporting in case when yarn.lock was changed during build
----
[Gradle, JS] Change naming

[Gradle, JS] storeYarnLock not finalizing kotlinNpmInstall

[Gradle, JS] Add double clean to test for check correctness without input yarn.lock

[Gradle, JS] Consider reportNewYarnLock in yarn.lock service

[Gradle, JS] actualizeYarnLock for explicit actualizing yarn.lock

[Gradle, JS] Not update yarn.lock automatically

[Gradle, JS] Add test on yarn.lock reporting

[Gradle, JS] Error report by default

[Gradle, JS] Report with failing after build, not failing task

[Gradle, JS] Report about yarn.lock mismatch reporting

Merge-request: KT-MR-6614
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-52950 fixed
2022-07-21 09:16:11 +00:00
Johan Bay 151448274b [K/N] Add concurrent version of Splay benchmark 2022-07-21 07:57:27 +00:00
Sergey Bogolepov be29052a64 [K/N] Update tests for KT-42641 2022-07-21 06:50:25 +00:00
Sergey Bogolepov 3dfb6dc622 [K/N] KT-42641
Remove synthetic componentN methods from Objc header
2022-07-21 06:50:24 +00:00
Vladimir Sukharev d378d7d5f5 KT53119: Implement String Concatenation Type Narrowing to improve escape analysis
Merge-request: KT-MR-6661
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-07-20 16:28:33 +00:00
konstantin.tskhovrebov 73226aba00 [KT-53256] Setup K/N distribution downloading for KPM. 2022-07-20 15:20:33 +00:00
Dmitriy Dolovov 8adb0528d7 [Native][tests] Don't use non-default runtime assertions mode with cache
^KT-53032
2022-07-20 14:43:08 +00:00
Dmitriy Dolovov d094a2dcaf Revert "[K/N] Temporary allow caches with non-default assertions mode"
This reverts commit b482b0e86d.

^KT-53032
2022-07-20 14:43:07 +00:00
Alexander Likhachev 40b8e3ce4b [Gradle] Format build report path as URI
#KT-34464 Fixed
2022-07-20 13:29:02 +00:00
Alexander Likhachev 783f394006 [Gradle] Remove dead code of KotlinBuildReporterHandler 2022-07-20 13:29:01 +00:00
Dmitriy Novozhilov 02901aeb10 Update kotlinc.xml 2022-07-20 10:12:26 +00:00
Dmitriy Novozhilov 0ec6c49464 [Test] Remove obsolete commented tests model of idea-android plugin tests from test generator 2022-07-20 10:12:25 +00:00