Commit Graph

59369 Commits

Author SHA1 Message Date
Yan Zhulanow 49bcb103ef EA-216005: Do not request KotlinFacetSettingsProvider for dead projects 2019-11-25 17:26:28 +09:00
Yan Zhulanow f91a84872a EA-216299: fix SIOOBE in completion 2019-11-25 17:26:28 +09:00
Yan Zhulanow f75288b480 EA-216333: check PsiElement validity before light class generation 2019-11-25 17:26:28 +09:00
Yan Zhulanow 59296d6a6b EA-217068: Add missing read action 2019-11-25 17:26:28 +09:00
Yan Zhulanow e12f17d5dc EA-217069: Add missing read action 2019-11-25 17:26:28 +09:00
Yan Zhulanow 54203100bc EA-217072: Add missing read action 2019-11-25 17:26:28 +09:00
Yan Zhulanow 6a4b658ad4 EA-217153: Add line count check 2019-11-25 17:26:27 +09:00
Yan Zhulanow ab0f841642 Debugger: Provide fixed implementation of 'toString()' for lambdas (KT-32691) 2019-11-25 17:26:27 +09:00
Yan Zhulanow 82a1750d26 Debugger: Forbid 'Nothing' constructor calls in evaluated code (KT-33093) 2019-11-25 17:26:27 +09:00
Pavel Kirpichenkov 55b3637f03 Fix case of inner object usage in missing supertypes checker
FakeCallableDescriptorForObject instance, which is not ConstructorDescriptor,
is checked with call checkers when object's contents are being used.
Checker of missing supertypes should not be run against this fake descriptor.
Object's members belong to separate member scope, so their resolution doesn't
force containing class' supertypes evaluation. I.e. object's methods
may work fine even if some supertypes of containing class are missing.
2019-11-25 10:57:52 +03:00
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00
Dmitriy Dolovov 58dd9a6004 Fix AWT freeze in KotlinNativeABICompatibilityChecker (part 2)
Issue #KT-35052
2019-11-25 09:07:09 +07:00
Dmitriy Dolovov 0747a4d9b7 Fix AWT freeze in KotlinNativeABICompatibilityChecker
Issue #KT-35052
2019-11-25 09:07:02 +07:00
Vladimir Dolzhenko e321c9e4e7 Fix diagnostics calculations for incremental analysis 2019-11-23 23:36:49 +01:00
Vladimir Dolzhenko c7c512d55e Merge pull request #2815 from t-kameyama/KT-35022
Remove `const` modifier on "change to var" quickfix

#KT-35022 Fixed
2019-11-23 13:42:00 +01:00
Vladimir Dolzhenko d599322503 Calculate method parameter hint info in updateParameterInfo method (with a progress till 201)
Fixed #EA-216268
2019-11-23 09:24:14 +01:00
Svyatoslav Kuzmich 84757964bb Advance bootstrap to 1.3.70-dev-1806
Due to updated K/JS klib ABI

Add dependency of KotlinCoverageExtension to idea test classpath because of a new check introduced in 1806.

(cherry picked from commit bffbe89f53)
2019-11-22 22:12:39 +03:00
Nikolay Krasko 73a152ccc7 Re-mute inspection tests in AS34 (KT-32856) 2019-11-22 22:12:39 +03:00
Nikolay Krasko e49d7c86ff Re-mute move refactoring tests (KT-34106) 2019-11-22 22:12:38 +03:00
Nikolay Krasko 0ae677e945 Re-mute checker tests (KT-34105) 2019-11-22 22:12:38 +03:00
Nikolay Krasko 394a812329 Re-mute completion tests (KT-32919) 2019-11-22 22:12:37 +03:00
Nikolay Krasko 6797fb476c Support auto-mute from file for database with mutes 2019-11-22 22:12:37 +03:00
Nikolay Krasko 9356155f60 Minor: add bunch directives for better discoverability banched code 2019-11-22 22:12:36 +03:00
Toshiaki Kameyama f6059c3eb5 "Change to var": remove const modifier
#KT-35022 Fixed
2019-11-23 01:17:38 +09:00
Vyacheslav Gerasimov 027bc671c1 Build: Remove duplicated compiler.xml from idea module
Workaround for JPS build by copying compiler.xml in test runner before tests

For gradle just copy it in the processResourcesTask of idea project

 #KT-34528
2019-11-22 18:52:00 +03:00
Pavel Kirpichenkov 8c103629a6 Disable FIR box test for callable references to vararg function 2019-11-22 18:22:04 +03:00
Nikolay Krasko 4267e9e3d0 Revert "Advance bootstrap to 1.3.70-dev-1806"
This reverts commit bffbe89f
2019-11-22 16:24:04 +03:00
Alexey Tsvetkov e506efb5b2 Include Klib metadata utils into jps-plugin
#KT-34958 Fixed
2019-11-22 15:35:30 +03:00
Vladimir Ilmov a0d4d0da58 [coroutine][debug] rollback compilation failed exception as it breaks test scenarios 2019-11-22 13:17:37 +01:00
Denis Zharkov 9dc628bd72 Fix FirJavaElementFinder.kt.183 compilation 2019-11-22 13:01:56 +03:00
Alexey Tsvetkov d3f906a1a2 Minor: extract method & reformat to improve readability 2019-11-22 12:54:42 +03:00
Kevin Bierhoff ed6b90002e conservatively generate code if descriptor unavailable, which happens for some suspend inline functions
KT-33604
2019-11-22 12:54:42 +03:00
Kevin Bierhoff 0285b26e40 make FunctionCodegen skip method bodies we don't need, which avoids problems with inlining methods inside methods we don't need
KT-33604
2019-11-22 12:54:42 +03:00
Natalia Selezneva b10f47b50e Minor: merge util methods for scripting to one file in idea-gradle 2019-11-22 11:43:35 +03:00
Natalia Selezneva 23f95872ad Minor: fix packages after moving classes to idea-gradle module 2019-11-22 11:43:35 +03:00
Sergey Rostov 75a23b4bc4 Minor: changes after review 2019-11-22 11:43:35 +03:00
Sergey Rostov fc100d13dd Scripting: move gradle specific logic to idea-gradle 2019-11-22 11:43:34 +03:00
Sergey Rostov 0fb58ed94c Scripting loading tests and extension points 2019-11-22 11:43:34 +03:00
Natalia Selezneva ca71b2fe90 Add script configuration dependencies to script classpath
It was missing during configuration refinement thought new scripting API and during loading script configuration on Gradle project import

Do not pass additional classpath to configuration classpath: this may only affects Gradle with New scripting API (because it isn't used from other places)
In additional classpath kotlin-compiler and kotlin-stdlib was passed and there is no needs for this during loading Script Definitions through new scripting API

^KT-34626 Fixed
2019-11-22 11:43:34 +03:00
Natalia Selezneva 29ef10a919 Check gradle version for loading script configuration during import option 2019-11-22 11:43:33 +03:00
Natalia Selezneva 72ef43f462 Show filePattern in settings for new script definitions if present 2019-11-22 11:43:32 +03:00
Natalia Selezneva c40cd07cf0 Do not show duplicated error gradle templates in settings
^KT-34530 Fixed
2019-11-22 11:43:32 +03:00
Natalia Selezneva d355a9f686 Minor: fix typo 2019-11-22 11:43:32 +03:00
Natalia Selezneva 229665d2fc Remove unused environment properties from gradle configuration resolver
getScriptContents is no longer used by Gradle
see https://github.com/gradle/gradle/blob/master/subprojects/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ResolverEnvironment.kt
2019-11-22 11:43:32 +03:00
Natalia Selezneva 9710f1da77 Minor: move class 2019-11-22 11:43:32 +03:00
Natalia Selezneva 6c4de96dcb Minor: extract class to separate file 2019-11-22 11:43:31 +03:00
Natalia Selezneva 4b0844b21d Minor: move classes in idea-gradle module related to scripting 2019-11-22 11:43:31 +03:00
Roman Golyshev 28e2d2faf2 KT-34740 Make getImplicitReceiversWithInstanceToExpression keep script implicit receivers
- This makes completion aware of scripts implicit receivers (it matters in .gradle.kts files, for example)
- ^KT-34740 Fixed
2019-11-22 11:22:46 +03:00
Roman Golyshev be2fe256ba KT-34740 Refactor implicitReceiversUtils.kt 2019-11-22 11:22:46 +03:00
Pavel Kirpichenkov 34b8b96cde Generate forgotten FIR box test 2019-11-22 11:10:47 +03:00