Commit Graph

15942 Commits

Author SHA1 Message Date
Alexander Udalov e73760d4ff Fix test data for empty LHS vs isInitialized
Ignore the "property imported from object" part on JS
2017-10-25 12:10:10 +02:00
Vyacheslav Gerasimov b27334d2a0 Remove GradleProjectImportProvider and GradleProjectOpenProcessor 2017-10-24 19:50:19 +03:00
Alexander Udalov 1a8be635b9 Use ServiceLoader instead of IntelliJ extensions for DefaultErrorMessages
#KT-10473 Fixed
2017-10-24 18:25:38 +02:00
Alexander Udalov 1c6dce3674 Do not use DefaultErrorMessages.Extension as IntelliJ extension in plugins 2017-10-24 18:22:04 +02:00
Dmitry Jemerov 499cfb5772 Show "No SDK configured" notification only in JVM modules 2017-10-24 14:52:12 +02:00
Alexey Sedunov 8a9e28afdc Kotlin Facet: Ensure that API version <= language version after import
#KT-20603 Fixed
2017-10-24 15:43:52 +03:00
Alexey Sedunov 840825704a Misc: Skip duplicates in navigation tests 2017-10-24 15:43:52 +03:00
Alexey Sedunov 4cc1e22a5a Misc: Support light-methodless members in overrider search
In particular, support line markers for expect-class members
and navigation to expect-class members from corresponding base members
2017-10-24 15:43:51 +03:00
Alexey Sedunov 17abce2811 Misc: Support light-classless classes in inheritors search
In particular, support line markers for expect-classes
and navigation to expect-classes from their base class

 #KT-20329 Fixed
2017-10-24 15:43:51 +03:00
Alexey Sedunov 87f3d24f9b Misc: Protect freeArgs with FreezableVar 2017-10-24 15:43:51 +03:00
Alexey Sedunov fa4e4cbb42 Formatter: Insert new line before/after type alias
#KT-20766 Fixed
2017-10-24 15:43:51 +03:00
Dmitry Jemerov 537600b3b3 Add dependency to kotlin-test-annotations-common to new MP projects
#KT-20833 Fixed
2017-10-24 14:18:34 +02:00
shiraji d51fa6d87e Add description for MoveMemberToTopLevelIntention 2017-10-24 14:33:55 +03:00
Mikhail Glukhikh 1ed8aa1cc5 Drop CheckPartialBodyResolveAction 2017-10-24 10:06:09 +03:00
Mikhail Glukhikh 5a6f22cc95 Make editor in SelfTargetingIntention.invoke nullable
This prevents EA-105844 from happening.
Should fix KT-20899.
2017-10-24 10:05:10 +03:00
Alexander Udalov f2be34ca1c Support KClass<*> annotation arguments in serialization/deserialization
#KT-11586 Fixed
2017-10-23 19:16:44 +02:00
Mikhail Glukhikh d0e8f99d60 ResolveElementCache: script can now be analyzable parent
So #KT-20096 Fixed
2017-10-23 19:19:04 +03:00
Simon Ogorodnik cace6624e6 EA-105522, KT-20256: Fix TextRange.<init> "Invalid range specified"
Check when caret inside template, and don't try to create invalid
range then

 EA-105522 fixed
 #KT-20256 fixed
2017-10-23 17:32:39 +03:00
shiraji 31a1fb916a Implement an intention action to move a companion object member to top level
#KT-18828 Fixed

(cherry picked from commit 11f8f8b)
2017-10-23 17:29:28 +03:00
shiraji 7044e46756 Refactor common move member methods
(cherry picked from commit 2dd8148)
2017-10-23 17:29:27 +03:00
Dmitry Jemerov 81615fa551 Correctly propagate dependencies in multiplatform projects with Android 2017-10-23 14:59:56 +02:00
Dmitry Jemerov cc85ac44b3 Rename KotlinPlatformGradleDetector to KotlinGradleModelFacade 2017-10-23 14:59:56 +02:00
Dmitry Jemerov f589c9baf0 Ignore "module per source set" option in Android projects 2017-10-23 14:59:56 +02:00
Dmitry Jemerov 14a30e09c6 Use binary path instead of name to locate libraries from Android deps 2017-10-23 14:59:56 +02:00
Toshiaki Kameyama e76d8bc793 "Convert object literal to class" should create inner class if necessary #KT-20091 Fixed 2017-10-23 15:02:51 +03:00
Mikhail Glukhikh 739b21f519 Introduce "add missing actual members" quick-fix #KT-18449 Fixed 2017-10-20 17:24:19 +03:00
Mikhail Glukhikh 1b0421d27b Fix search scope during inlining #KT-20251 Fixed
Do not use KotlinSourceFilterScope because build scripts are lost otherwise
2017-10-20 16:00:52 +03:00
Mikhail Glukhikh 26c1aec5df Related to DSGN-4505: change expect / actual icons to the new ones 2017-10-20 15:16:04 +03:00
Toshiaki Kameyama fa03632197 Convert lambda to reference: handle named arguments more precisely
For trailing lambda intention inserts parameter names for all arguments
if at least one argument used default value.
Otherwise it just keeps existing named arguments.

So #KT-20349 Fixed
2017-10-20 13:57:58 +03:00
Kirill Rakhman 4c4427c280 Replace return@forEach with continue in ConvertForEachToForLoopIntention
So #KT-17332 Fixed
2017-10-20 13:44:31 +03:00
Anton Bannykh e90c914802 JS: add kotlin-test testCompile dependency to JS module generated by multiplatform wizard (KT-20346, KT-20831, KT-20832 fixed) 2017-10-19 18:32:24 +03:00
Nikolay Krasko bd2fd1758f Use CompilerPathsEx.getOutputPaths for getting the full list of output dirs (KT-20789)
CompilerPathsEx.getOutputPaths isn't using OrderEnumerationHandler extension
so far and works badly when delegating runnners to gradle is enabled.

 #KT-20789 Fixed
2017-10-19 17:43:36 +03:00
Sergey Mashkov fd12bd904b KT-20822 Maven: import multiplatform projects properly 2017-10-19 13:29:26 +03:00
Simon Ogorodnik 7a991ddc25 KT-13220: Add completion for variable names
Using parameter name completion

#KT-13220 fixed
2017-10-18 19:11:13 +03:00
Alexey Sedunov e65adeb029 Misc: Fix quickfix test data 2017-10-18 18:17:50 +03:00
Alexey Sedunov b8fb002a8f Misc: Update keyword completion test data
It reflects top-level lateinit variables available since 1.2
2017-10-18 18:17:50 +03:00
Alexey Sedunov d89a946c5a Misc: Update default language version in Maven import test 2017-10-18 18:17:50 +03:00
Alexey Sedunov d6ee9c9068 Misc: Update member hierarchy test data to include new stdlib classes 2017-10-18 18:17:50 +03:00
Alexey Sedunov 83b10403d7 Misc: Drop test for implementing abstract members in expect-class
The "not implemented" error is not reported for such classes, so
quick fix is not available anymore (see KT-16099)
2017-10-18 18:17:50 +03:00
Alexey Sedunov 997aa12bcc Misc: Update configuration test data 2017-10-18 18:17:50 +03:00
Alexey Sedunov 2883a92b93 Create from Usage: Work around type renaming
This fixes test failure after changes in KotlinTypeFactory
2017-10-18 18:17:49 +03:00
Pavel V. Talanov 320c5f6f3a Try to approximate "build.gradle.kts" script dependencies on first access
This is a hacky solution to prevent whole file being highlighted as unresolved while we wait for gradle response
2017-10-17 18:49:48 +03:00
Pavel V. Talanov 1cdac78b32 ScriptDependenciesCache, refactor: use delegated properties 2017-10-17 18:49:40 +03:00
Nikolay Krasko c4e3cc0705 Add read action for getting text
Fix "Read access is allowed... exception"
2017-10-17 12:33:01 +03:00
Nikolay Krasko 339b1a3895 Minor: cleanup 2017-10-17 12:33:01 +03:00
Nikolay Krasko 3fda173ced TypeDeclarationProvider should return null for irrelevant symbols
Otherwise other providers won't be checked.
2017-10-17 12:33:01 +03:00
Alexey Sedunov 9fe0681fb6 MPP: Fix implementing module search in Gradle runner 2017-10-16 23:55:28 +03:00
Alexey Sedunov db34bae05b Gradle: Support 'expectedBy' configuration 2017-10-16 23:55:28 +03:00
Alexey Sedunov a2a8335bab Gradle: Add dependencies for indirectly implemented modules
#KT-16926 Fixed
2017-10-16 23:55:28 +03:00
Yan Zhulanow 43a1162b25 Evaluate: Fix for evaluating local variables captured by an inline function (KT-17514) 2017-10-16 21:25:44 +03:00