Commit Graph

55305 Commits

Author SHA1 Message Date
Igor Yakovlev 852a4bc0ca Add support UL for FileFacade 2019-06-03 17:23:39 +03:00
Anton Bannykh e996705b45 JS: simplify package metadata cache invalidation 2019-06-03 15:53:00 +03:00
Anton Bannykh 8ab9ef2afa JS: don't visit all descriptors on metadata serialization 2019-06-03 15:53:00 +03:00
Ilya Chernikov 0a6ade88cc Fix classpath detection from classloader resources 2019-06-03 13:57:20 +02:00
Sergey Igushkin 27aa3a573e Fix MPP source set dependencies missing in Android tests (KT-29343)
Add Kotlin source set dependencies to the Android source sets, and also
add aggregated Kotlin compilation dependencies to the dedicated
Android source sets of the Android variants.

Issue #KT-29343 Fixed
2019-06-03 14:53:38 +03:00
Sergey Igushkin 988df517dd Gradle HMPP support fixes after review
* Add version to project structure metadata
* Use a data class for module dependencies in project structure
* Use task registering API for new tasks
* Simplify code
* Extract compatibility wrappers
* Fix multi-file dependencies that transformations silently ignored
2019-06-03 14:47:09 +03:00
Sergey Igushkin 5d7bd6c01a Add API for IDE import of metadata dependency transformations 2019-06-03 14:47:08 +03:00
Sergey Igushkin 3c3a338770 Setup versions consistently only among published source sets
The common source sets that are not published (like commonTest) should
not affect dependency resolution for other source sets.

Signed-off-by: Sergey Igushkin <hotkeytlt@gmail.com>
2019-06-03 14:47:07 +03:00
Sergey Igushkin 0c9d962f9f MPP granular source set metadata support 2019-06-03 14:47:07 +03:00
Sergey Igushkin fcb006b42a (minor) Rewrite CompilationSourceSetUtil
Add the API to access compilations by source set, which will be widely
needed for further MPP logic.
2019-06-03 14:46:51 +03:00
Alexander Gorshenev 10a54c2581 Moved the common klib writer from Kotlin/Native to util-klib 2019-06-03 14:38:48 +03:00
Alexander Gorshenev 7ddbd8ca80 Moved the common klib reader functionality from Kotlin/Native to util-klib 2019-06-03 14:38:48 +03:00
Alexander Gorshenev d1390365de Moved basic classes from konan/utils to util-io 2019-06-03 14:38:48 +03:00
Igor Yakovlev f5190f195d Add correct UL-method hasTypeParameters realization (#KT-30970 Fixed)
Incorrect realization is breaking-down of IDEA generic-type inference algorithm that leads to SOE.
2019-06-03 14:11:06 +03:00
Ilya Kirillov f660faed97 New J2K: Wrap single annotation parameter to arrayOf if array type is required
#KT-31726 fixed
2019-06-03 13:02:48 +03:00
Dmitry Gridin 7bc2fcd657 Convert RemoveCurlyBracesFromTemplateIntention to inspection
Relates to #KT-31717
2019-06-03 16:37:37 +07:00
Dmitry Gridin 7f4d2891e8 Cleanup ReplacementPerformer 2019-06-03 16:36:50 +07:00
Dmitry Gridin f5e83d7b47 Explicit package prefix should override implicit
#KT-29716 Fixed
2019-06-03 16:35:58 +07:00
Dmitry Gridin 20114a0868 Minor: cleanup packageUtils 2019-06-03 16:35:58 +07:00
Dmitry Gridin f6a61e8034 Minor: cleanup ChangePackageIntention 2019-06-03 16:35:58 +07:00
Dmitry Gridin 4fa83a2fd7 Decrease severity of PackageDirectoryMismatchInspection to INFO
#KT-31716 Fixed
2019-06-03 16:35:58 +07:00
Dmitriy Novozhilov ef91960fe9 [NI] Fix testdata after enabling NI in IDE tests 2019-06-03 12:13:31 +03:00
Dmitry Savvinov dca23f871c Allow to force-require syntetic SAM-adapters even in NI
This is needed for some IDE clients, particularly, completion: even
though presenting only non-converted member (e.g., 'foo(Consumer<Int>')
is nominally OK, as resolution with NI is smart enough to accept 'foo { }'
for such a call, it is inconvenient for users (for example, hitting
enter would insert round brackets instead of a figure brackets)

This commit adds very-very narrow API (borderline hacky) in
JavaSyntheticScopes, to allow clients explicitly ask for a scopes with
force-enabled synthetic conversions. It fixes several tests, which had
started to fail after corresponding commit about NI and SAM-adapters
(fe5976d7f4), e.g.:
- Java8BasicCompletionTestGenerated.testCollectionMethods
- Java8BasicCompletionTestGenerated.testStreamMethods
- JvmBasicCompletionTestGenerated$Common$StaticMembers.testJavaStaticMethods
- JvmBasicCompletionTestGenerated$Java.testSAMAdaptersStatic
- JvmWithLibBasicCompletionTestGenerated.testSamAdapter
- JvmWithLibBasicCompletionTestGenerated.testSamAdapterAndGenerics

Note that changes are made in ReferenceVariantsHelper, which is used by
several other clients in IDE. Presumably, those changes are needed for
them too.
2019-06-03 10:46:53 +03:00
Dmitry Savvinov eda975d317 Minor: reformat ReferenceVariantsHelper.kt 2019-06-03 10:46:53 +03:00
Sergey Rostov 00f8f09274 Gradle, js, npm: don't setup package manager without npm dependencies
#KT-31729 Fixed
2019-06-03 10:00:27 +03:00
Dmitry Savvinov 8caafa874e Advance Kotlin versions in some Gradle Tests
Those versions have been resolved from -dev repository, which got
cleared and those tests started to fail.

In long term, it would be nice to not use fixed Kotlin versions in
tests, but for now we just advance it to prevent tests from failing.
2019-06-03 08:17:25 +03:00
Mikhail Zarechenskiy e15cb67e29 Fix exception from UAST on attempt to map non-fixed type variable
#KT-31723 Fixed
 #EA-126269 Fixed
 #EA-143705 Fixed
 #EA-143703 Fixed
 #EA-143694 Fixed
2019-06-03 02:04:56 +03:00
Mikhail Zarechenskiy 91bd11a6db Fix UAST tests for new-inference: adapt SAM-converted descriptors 2019-06-03 02:04:55 +03:00
Mikhail Zarechenskiy 010ac50243 Enable new type inference for UAST tests as for IDE tests 2019-06-03 02:04:53 +03:00
Roman 0163019295 [JVM IR] Unmute fixed test 2019-05-31 18:49:54 +03:00
Mikhail Zarechenskiy 268dddcb3d Remove restriction about JS_IR backend for test 2019-05-31 17:23:58 +03:00
Vyacheslav Gerasimov cb7cdff2e0 192: Fix ultimate tests compilation for 192 platform 2019-05-31 16:32:11 +03:00
Vyacheslav Gerasimov cf3a98123f 192: Fix uast tests compilation for 192 platform 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov 15c46aa9cc 192: Fix compiler.pro for 192 platform 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov 91bff66f29 192: Remove accessors for module introduces in 192 platform 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov b7be99ffde 192: Fix variance related problems for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov 637f7a8cab 192: Fix InlayHintTypeTestUtil for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov fac959ba1e 192: Fix FormatSettingsUtil for 192, can't access getProject any more 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov d5b7b520e0 192: Fix completion KotlinConfidenceTest for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov d58df2c107 192: Fix AbstractJavaToKotlinConverterForWebDemoTest for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov f935cfeda2 192: Remove override createAddPropertyActions, no more in JvmElementActionsFactory 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov 979df225a7 192: Fix uast-kotlin for 192 platform 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov c2522535d9 192: Fix KotlinMPPGradleProjectTaskRunnerUtil usages of deprecated api 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov cd18d9d534 192: Add property accessor for myModule which is removed in 192 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov cf1e1e3a0c 192: Fix accessors to module & project in tests 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 05a2f5bda5 192: Fix nullability related problems for 192 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 57943768bf Build: Remove bunches for kotlin-compiler build script 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 593e67d47d 192: Add 192 platform IdeCompatibilityDsl 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 2d74560523 192: Build against Idea 192.4205.45 2019-05-31 16:32:08 +03:00
Vyacheslav Gerasimov d740455e9f Build: Update list of redirected repositories 2019-05-31 16:32:08 +03:00