Mikhail Glukhikh
d30536addc
Minor: explicitly use LinkedHashSet in LabelResolver
2022-03-09 15:19:27 +00:00
Mikhail Glukhikh
14eec6cfc0
FE 1.0: implement typed this label resolve warning for KT-51433
...
#KT-51433 Fixed
2022-03-09 15:19:27 +00:00
Mikhail Glukhikh
b5e2c492c6
FE 1.0: implement initial label resolve warning for KT-51433
2022-03-09 15:19:26 +00:00
Mikhail Glukhikh
31b234a261
Code cleanup: LabelResolver
2022-03-09 15:19:26 +00:00
Alexander Udalov
1e26888dd9
Psi2ir: fix parameter indices when generating extension invoke call
...
Incorrect `valueParameter` was passed to `generateValueArgument`, which
resulted in incorrect type being considered for generating suspend
conversion.
#KT-50949 Fixed
2022-03-09 15:19:38 +01:00
sebastian.sellmair
c2ab23ed70
kotlin-tooling-core: Update api reference
2022-03-09 13:17:08 +00:00
sebastian.sellmair
6d87fbddf4
kotlin-tooling-core: Rename singleClosure to linearClosure
2022-03-09 13:17:07 +00:00
sebastian.sellmair
6a96b6ec3f
kotlin-tooling-core: Setup binary compatibility tests
2022-03-09 13:17:07 +00:00
sebastian.sellmair
93e04c0b33
kotlin-tooling-core: Implement KotlinToolingVersion API
2022-03-09 13:17:06 +00:00
sebastian.sellmair
14046b81ff
Replace transitiveClosure (commonizer-api) with closure (tooling-core)
2022-03-09 13:17:06 +00:00
sebastian.sellmair
530a3bb6ea
kotlin-tooling-core: Implement closure util
2022-03-09 13:17:05 +00:00
sebastian.sellmair
fe45214d23
Create new kotlin-tooling-core module
2022-03-09 13:17:05 +00:00
dependabot[bot]
872bda01e0
Bump node-fetch in /kotlin-native/tools/performance-server
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-09 14:30:08 +03:00
Svyatoslav Scherbina
63a396b51d
Native: fix classpath in KonanCliRunner
...
It included "konan/lib/*.jar", which became incorrect after adding
kotlin-native-compiler-embeddable.jar to K/N dist in 2baf344f5f :
after that, the classpath included both kotlin-native.jar and
kotlin-native-compiler-embeddable.jar, so it contained duplicating
classes.
Fix this by choosing particular .jar files from konan/lib, and use
kotlin-native-compiler-embeddable.jar.
2022-03-09 11:09:25 +00:00
Alexander Udalov
f7f64be269
Remove unneeded .txt dumps in codegen box tests
...
These are only used in diagnostic tests, and for codegen tests they are
basically useless.
2022-03-08 14:19:37 +01:00
Alexander Udalov
328853dffe
Add tests for obsolete issues
...
(Test for KT-37331 is added to multiplatform/defaultArguments/suspend.kt.)
#KT-30080
#KT-33641
#KT-36237
#KT-36952
#KT-37331
#KT-38920
#KT-39256
#KT-42415
#KT-44636
#KT-45704
#KT-47084
#KT-47894
2022-03-08 14:19:37 +01:00
Nikita Bobko
f0290d8c98
Freezable: fix binary compatibility
...
Intellij API Compatibility Check reports that compatibility was broken
for IJ Bazel plugin. This commit fixes this problem.
Binary compatibility was broken in
705a2881fab109ab7d3e365255d01e0491b17d6d.
Ideally, I'd rename extension functions to names other than "frozen" and
"unfrozen" because this would allow keeping source compatibility for
Java clients as well. But the new extension functions API has been
already released in EAP versions of IDEA, and I don't want change the
API back and forth for clients that already migrated to the new API. I
wish I knew earlier that this API is used by external plugins
2022-03-08 11:53:43 +00:00
Hung Nguyen
aaef41cf64
KT-45777: Clean up handling around LookupSymbols and ProgramSymbols
...
Make it clearer and more efficient.
^KT-45777 In Progress
2022-03-07 19:05:09 +03:00
Yahor Berdnikau
70581c2979
Remove TestRootAffectedIT test suite
...
These cases are covered by other incremental tests.
^KT-45745 In Progress
2022-03-07 11:51:13 +01:00
Yahor Berdnikau
9ce32e5a9e
Migrate PluginsDslIT tests to new dsl
...
^KT-45745 In Progress
2022-03-07 11:50:06 +01:00
Yahor Berdnikau
c596ced62d
Remove in tests excessive logs
2022-03-07 11:34:40 +01:00
Svyatoslav Scherbina
5a1513ad59
Native build: make distCompiler no-op when using custom dist
...
Custom dist is already in place and has the compiler, so we don't have
to build and copy the compiler to dist.
Moreover, if we do copy it, it might overwrite the compiler files
already loaded by this Gradle process (including the jar loaded to the
custom classloader), causing hard-to-debug errors.
To workaround this, we disable the distCompiler task and don't add any
dependencies to it when custom dist is used.
2022-03-06 12:17:06 +00:00
Svyatoslav Scherbina
7470aaf06c
Native build: don't read klib files in KonanCacheTask.cacheFile
...
It is `@OutputDirectory`, so Gradle can invoke it early, even before the
klib itself is built.
Instead of reading `uniqName` from klib files, require specifying it
explicitly.
2022-03-06 12:16:17 +00:00
Ilya Gorbunov
dea149ab47
Advance Kotlin version used in build to 1.7
...
Also update kotlinx-metadata-jvm used in kotlin-reflect build to 0.4.1
in order to support reading Kotlin 1.7 metadata version.
2022-03-05 22:15:59 +03:00
Dmitriy Novozhilov
6f5488e774
Update yarn.lock
2022-03-05 15:53:48 +03:00
Dmitriy Novozhilov
db914c0e54
Advance bootstrap to 1.7.0-dev-2437
2022-03-05 15:53:48 +03:00
Aleksei.Cherepanov
b308ce3f65
Fix Configuration cache tests after ee756638
...
Fix flaky tests:
* ConfigurationCacheIT.testInstantExecutionWithBuildSrc
* ConfigurationCacheIT.testInstantExecutionWithIncludedBuildPlugin
#KT-51374 Fixed
2022-03-05 11:17:22 +00:00
Yahor Berdnikau
7b7ed8c110
Disabled test in UpToDateIT on Windows OS
...
^KT-45745 In Progress
2022-03-04 20:45:17 +01:00
nataliya.valtman
41fc5e24e9
Fix unstable testIncrementalCompilationAfterCacheHit test
2022-03-04 20:49:22 +03:00
nataliya.valtman
bbafa67122
Add only one warning for failed statistics
2022-03-04 20:49:22 +03:00
Yahor Berdnikau
10f43b9fd7
Migrate UpToDateIT to new test dsl
...
^KT-45745 In Progress
2022-03-04 18:44:37 +01:00
Yahor Berdnikau
745b591b2e
Migrate AllOpenModelBuilderTest to new test dsl
...
^KT-45745 In Progress
2022-03-04 18:44:37 +01:00
Aurimas
90f41b8a84
Make KotlinJvmTest Cacheable
...
In Gradle tasks need to be explicitly marked as cacheable. `org.gradle.api.tasks.testing.Test`
is marked with @CacheableTask but this annotation is inherited by subclasses. See:
https://docs.gradle.org/current/userguide/build_cache.html#sec:task_output_caching_details
^KT-51454 Fixed
2022-03-04 14:03:23 +01:00
Dmitry Petrov
78be4f302a
JVM prune exception edges in inliner-specific DFA
2022-03-04 06:00:21 +00:00
Ilmir Usmanov
254ada88d1
Minor. Add test with inline class inside inline class's init block
2022-03-04 05:23:23 +03:00
Ilya Kirillov
092550aaee
[Symbol LC] fix invalid caching for FirLightClassBase
...
Previously, value created by FirLightClassesLazyCreator was never recalculated based on dependencies changes
2022-03-03 20:12:56 +03:00
Ilmir Usmanov
f89588011e
Make FunctionalArgumentInterpreter stateless
...
So, we can use fast basic interpreter.
2022-03-03 17:32:16 +03:00
Mikhail Glukhikh
eb42a01926
Inject languageVersionSettings into VarianceChecker
2022-03-03 12:57:05 +00:00
Mikhail Glukhikh
ebed224f82
FE 1.0: use TYPE_VARIANCE_CONFLICT deprecation factory
2022-03-03 12:57:04 +00:00
Mikhail Glukhikh
7781413a93
FE 1.0: report TYPE_VARIANCE_CONFLICT also on qualifier type arguments
...
#KT-51439 Fixed
2022-03-03 12:57:04 +00:00
Dmitry Petrov
fdb01d96f0
JVM_IR JavaSamConversionEqualsHashCode
2022-03-03 09:01:42 +00:00
Jinseong Jeon
870cdfd226
AA: add an API to configure proj env w/o explicit KtFiles
...
We can retrieve source files from compiler configuration.
Then, we can search for corresponding KtFiles for them.
2022-03-02 21:11:54 +01:00
Jinseong Jeon
47b0e66ca1
AA: remove unnecessary source path retrieval/cache
...
Instead, use source module's contentScope
2022-03-02 21:11:54 +01:00
Jinseong Jeon
a68fd25982
AA: relax the assertion about referenced ClassId and qualified access
...
If an import alias is involved, they could be not identical.
Since an import alias ends with a simple identifer, we can simply drop
the first segment of qualified access and try the assertion again.
2022-03-02 20:30:31 +01:00
Ilya Kirillov
7fbfb1bd95
Fix cooperative development setup for kt-master
2022-03-02 13:46:24 +01:00
Dmitry Petrov
8576265108
Enable KotlinFunInterfaceConstructorReference in LV 1.7
2022-03-02 13:12:08 +03:00
Yahor Berdnikau
aca2e46e62
Fix failing kapt test
...
Dependency test is using was not available. Updated it to the latest
stable version.
2022-03-02 11:05:26 +01:00
Ilya Goncharov
8b34be9490
rra/ilgonmic/update-lock-files
...
[Gradle, JS] Update npm versions
[JS] Update package.json's and lock files
Merge-request: KT-MR-5852
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
^KT-51503 fixed
2022-03-01 10:24:56 +00:00
Pavel Kunyavskiy
dae24ff6d1
[K/N] Support IrDefinitelyNotNullType in type erasure
2022-03-01 08:03:28 +00:00
Nikolay Krasko
0b4aea4103
Fix exhaustive when error in :ring:compileKotlinNative
2022-03-01 02:28:52 +03:00