Commit Graph

92472 Commits

Author SHA1 Message Date
Svyatoslav Scherbina e39fb807a7 Bump Kotlin/Native version to 1.7.20-dev-1094 2022-05-13 16:10:14 +00:00
Svyatoslav Kuzmich 813b600555 [Wasm] Don't write .wat files in box tests
These files take space on CI, but they are not validated or processed
automatically in any way.

Disabled by default, enabled via kotlin.wasm.debugMode=1
2022-05-13 11:20:13 +00:00
Artem Kobzar 6da3b3b274 fix: remove unnecessary warnings for export declarations. 2022-05-13 11:10:17 +00:00
Artem Kobzar 4e06ff26d4 fix(KT-39423): add support of optional parameters to constructor + fix bug with optional parameters inside functions. 2022-05-13 10:46:32 +00:00
Ilya Goncharov 0c24d0ec9f [JS IR]Add case with file-exported class inherited from non-exported int
KT-52252

Merge-request: KT-MR-6270
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
2022-05-13 10:41:16 +00:00
Andrey Uskov a3d8ccfc15 [build statistics] Allow reporting milestostone and RC versions 2022-05-13 11:08:37 +03:00
Andrey Uskov 44834bf82c [build statistics] Truncate long values instead of randomization 2022-05-13 11:08:36 +03:00
dependabot[bot] 33c122d231 Bump ejs from 2.6.1 to 3.1.7 in /kotlin-native/tools/performance-server
Bumps [ejs](https://github.com/mde/ejs) from 2.6.1 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v2.6.1...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 10:00:06 +03:00
Roman Golyshev 254151d82c [FIR IDE] Use proper FirSessions in FirSupertypesResolution
Symbols might be from other modules, so we need to use corresponding
`FirSession`s; otherwise it would be impossible to query symbols
from `firProvider`

^KTIJ-21714 Fixed
2022-05-12 21:22:22 +04:00
Victor Petukhov 11eb5ce39c [FE] Check types in canHaveCommonSubtype for intersection emptiness with erasing nullability
It doesn't affect having common subtypes check but may lead to false positives

^KT-52364 Fixed
2022-05-12 15:11:27 +00:00
Victor Petukhov ba158de848 [FE] Use errorTypesEqualToAnything and stubTypesEqualToAnything for type checker context which is used for type intersection emptiness check 2022-05-12 15:11:27 +00:00
Ilya Kirillov 7ac001b7bd [analysis api] fix KDoc for the analyze function 2022-05-12 16:24:24 +02:00
Ilya Kirillov b5ad6f5db4 [analysis api] move analysis session classes to separate packages, use KtAnalysisApiInternals to mark internal API 2022-05-12 16:15:14 +02:00
Ilya Kirillov eb9085c083 [analysis api] rename analyse -> analyze to match American word spelling 2022-05-12 16:15:13 +02:00
Ilya Kirillov fe35204e9f [analysis api] get rid of additional analyseWithCustomValidityToken 2022-05-12 16:15:11 +02:00
Jiaxiang Chen 7b038860b5 AA: add analyzeWithKtModule API for analyzing without KtElement 2022-05-12 16:15:03 +02:00
Ilya Kirillov ef0160c026 [analysis api] rename ValidityToken -> KtLifetimeToken 2022-05-12 16:15:02 +02:00
Alexander Shabalin d77041aad0 [K/N] Move all knowledge about CompileToBitcode to the plugin.
Merge-request: KT-MR-6215
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-12 12:20:31 +00:00
Dmitriy Novozhilov 2796d21ec6 [FIR] Create snapshot of tower data context for postponed callable referneces
This fixes an issue if type of some implicit receiver was changed because
  of changed smartcast in outer scope

^KT-51228 Fixed
2022-05-12 12:15:31 +03:00
Dmitriy Novozhilov 118073e5d6 [FIR] Cleanup code of transforming callable references 2022-05-12 12:15:31 +03:00
Dmitriy Novozhilov 4301b05e15 [FE] Add API version 1.9
^KT-52208 In progress
2022-05-12 12:14:11 +03:00
Alexander Shabalin 89afa4c5b5 [K/N] Use mimalloc for kotlin objects only ^KT-52130
Merge-request: KT-MR-5805
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-12 08:48:37 +00:00
Ilya Chernikov 6b09ace099 FIR LT: fix bootstrap compilation error
if the existing list in the FRIENDS_PATH config property created with
Arrays.asList, it contains non-extendable list, and attempt to use
addAll on it leads to an exception.
2022-05-12 08:45:40 +02:00
Dmitry Gridin 30b0b09faa [jps] tests: add missing dependency to jar
^KTIJ-20456
2022-05-12 13:04:44 +07:00
Dmitry Gridin 4450368c42 [jps][tests] make test compatible with ide plugin
testModuleRebuildOnPluginClasspathsChange

^KTIJ-20456
2022-05-12 12:46:54 +07:00
Dmitry Gridin c1838cc4f3 [jps] js-ir-runtime-for-ide: remove redundant empty jars
^KTIJ-20456
2022-05-12 11:29:22 +07:00
Sergey Bogolepov b091f1d551 [K/N] Disable test-case for KT-50983. 2022-05-11 18:34:28 +00:00
Sergey Bogolepov 6a8ebeb1bc [K/N] Test case for KT-50983 2022-05-11 18:34:27 +00:00
Sergey Bogolepov 0b5b07f6e2 [K/N] Update MinGW dependencies
Include fixes for KT-50983 and KT-48558
2022-05-11 18:34:27 +00:00
Mads Ager 7bab9a1389 Minor tweaks to HACKING.md. 2022-05-11 19:58:12 +03:00
Mads Ager 46086027c5 Remove duplicate isNullConst extension functions from IrUtils2. 2022-05-11 19:58:12 +03:00
Mads Ager 876cc472b4 Remove unused debug info functions.
These functions return the underlying buffer for a std::string
which you should never do as it is only valid while the std::string
is in scope.
2022-05-11 19:58:12 +03:00
Mads Ager 3d4e025602 Remove variable that is only ever written and never read. 2022-05-11 19:58:12 +03:00
Ilya Goncharov 75bc90f512 rra/ilgonmic/KT-52221-dry-run-with-empty-nodejs
[Gradle, JS] Disable for wasm

[Gradle, JS] Add test on mocha with dry run should report test state

[Gradle, JS] When run in dry mode, we need special adapter which not run tests

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


^KT-52221 fixed
2022-05-11 13:27:31 +00:00
Ilya Kirillov ecbf9cd4d5 [analysis api] fix ISE: No conversion was found for SYNTAX
^KT-51786 fixed
2022-05-11 13:14:44 +02:00
Ilya Kirillov 6e0eba7e00 [low level api] fix ISE: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImpl for CheckDslScopeViolation 2022-05-11 13:14:44 +02:00
Pavel Kunyavskiy 9801a21abb [K/N] Enable new mm for native by default 2022-05-11 10:26:13 +00:00
Ilya Goncharov b739344b1c [Gradle, JS] DCE and minimized names could be falsify
[Gradle, JS] Add test on falsify compiler flags

[Gradle, JS] DCE and minimized names could be falsify

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

^KT-51957 fixed
2022-05-11 08:51:22 +00:00
Yahor Berdnikau 9850b97ea7 Remove excessive logging 2022-05-10 23:43:55 +02:00
Yahor Berdnikau 1537b2ed3d Update duckduckgo regression benchmarks
Make it compatible with Kotlin 1.7.0 release.
2022-05-10 23:43:55 +02:00
Vyacheslav Gerasimov 6bb36bc5e1 Fix flaky android robolectric tests
#KTI-842
2022-05-10 23:42:55 +04:00
Dmitriy Novozhilov be76cd39d2 [JS] Ignore some tests due to KT-52339 2022-05-10 16:16:55 +00:00
Dmitriy Novozhilov 67e6c7955c Advance bootstrap to 1.7.20-dev-984 2022-05-10 16:16:55 +00:00
Ilya Kirillov bc92831475 [analysis api] fix ArrayIndexOutOfBoundsException on KtDiagnostic creation
The problem was caused by concurrent access to the non-thread safe List.
This list is not needed anymore, previously it was used to store strong
references to FIR diagnostics corresponding references in KtDiagnostics
were weak references.

^KTIJ-21449 fixed
2022-05-10 15:39:28 +00:00
konstantin.tskhovrebov 8b9e91568f KT-49032: Add default framework header search path for Cocoapod cinterop
Similarly Cocoapods logic
https://github.com/CocoaPods/CocoaPods/blob/d18f49392c5e9ed9a2cdcb2ee89391cf7690ee5d/lib/cocoapods/target/build_settings.rb#L1188
2022-05-10 15:10:00 +00:00
Yahor Berdnikau b5449f6ed3 Exclude Android asset-pack and asset-pack-bundle plugins
'kotlin-android' plugins will not try to configure the project, when
any of these two plugins are applied. Usually these plugins are used
to handle Android resources and no compilation is required.

^KT-51898 Fixed
2022-05-10 13:48:02 +00:00
Vyacheslav Gerasimov e9346a7f2c Build: fix disable.verification.tasks property 2022-05-10 15:07:31 +04:00
Ilmir Usmanov 4f53b085ec Do not override collection stub, if the override is suspend
but the stub is not. The other way around should be OK.

 #KT-52237 Fixed
2022-05-09 23:16:58 +00:00
pyos b19b265735 JVM_IR: generate continuation classes for suspend inline references
This is somewhat suboptimal since this results in `::suspendInline`
generating 2 classes while `{ suspendInline() }` only creates 1, but
it's the best allowed by the existing hierarchy of classes in stdlib. At
least it works?

^KT-50832 Fixed
2022-05-09 23:15:05 +00:00
Victor Petukhov 9f31f074da [FE 1.0] Take care callable reference candidates with recursive candidate return type
^KT-51844 Fixed
2022-05-09 19:23:43 +00:00