Commit Graph

14997 Commits

Author SHA1 Message Date
Alexey Sedunov 423fb9dfb3 Move/Copy: Warn about usages of JDK when moving to non-JVM module
#KT-18135 Fixed
2017-06-22 19:50:52 +03:00
Alexey Sedunov 1d36c49537 Copy: Copy elements and process usages under the same write action
In some cases doing these operations in separate write actions
may lead to invalidation of copied elements

 #KT-18149 Fixed
2017-06-22 19:50:51 +03:00
Alexey Sedunov 6b18ff1d97 Copy/Move: Fix processing of calls used as callees
#KT-18241 Fixed
2017-06-22 19:50:50 +03:00
Mikhail Zarechenskiy 0579604653 Do not propose to specify constructor invocation in diagnostics
#KT-17188 Fixed
2017-06-22 15:02:10 +03:00
Mikhail Zarechenskiy 0f350f5db8 Don't report error on member that overrides open member from final class
#KT-14598 Fixed
2017-06-22 15:02:09 +03:00
Mikhail Zarechenskiy 9847278699 Report error about invalid if as expression on the if keyword
#KT-14633 Fixed
2017-06-22 14:18:11 +03:00
Mikhail Zarechenskiy 16de991b07 Add test for obsolete issue
#KT-8262 Obsolete
2017-06-22 13:41:30 +03:00
Dmitry Jemerov 24f1bbfb46 Add code for configuring eap-1.2 bintray repo
#KT-18316 Fixed
2017-06-22 11:01:03 +02:00
Dmitry Jemerov 2407f8b9ac Add collection building methods to default blacklist
#KT-18030 Fixed
2017-06-21 19:09:23 +02:00
Dmitry Jemerov 16c8a092ca Correctly show parameter name hints for non-ambiguous overloads 2017-06-21 19:09:21 +02:00
Nikolay Krasko 3ffd63a17c Attempt for fix flaky debugger tests - wait for the resume before exit 2017-06-21 17:49:03 +03:00
Alexander Udalov 5a25ba199a Micro optimization to avoid computing class FQ name when not necessary
KotlinBuiltIns.isConstructedFromGivenClass checks the simple name of the
class first, and only computes the full FQ name if it matches the last
segment of the expected FQ name
2017-06-21 15:42:57 +03:00
Alexey Sedunov 7bc42f89d3 Configuration: Fix API version selection on language version change 2017-06-21 12:36:53 +03:00
Alexey Sedunov 3460a31e3a Kotlin Facet: Do not import dependency-based classpath from Gradle
JPS obtains it automatically via imported module dependencies

 #KT-18475 Fixed
2017-06-21 12:36:52 +03:00
Alexey Sedunov f68689b5e4 Kotlin Facet: Do not import jdkHome from Gradle/Maven model
#KT-18151 Fixed
2017-06-21 12:36:51 +03:00
Alexey Sedunov 0570592952 Kotlin Facet: Avoid rewriting platform version with project settings
#KT-18373 Fixed
2017-06-21 12:36:49 +03:00
Ilya Chernikov 2e823a4816 Fix compatibility with renamed Gradle Kotlin DSL 2017-06-21 11:35:21 +02:00
Mikhail Zarechenskiy 1e020644e1 Fix getting right bracket element for collection literal 2017-06-21 01:22:08 +03:00
Mikhail Zarechenskiy 837df66c19 Register reference contributor for collection literals
#KT-18551 Fixed
2017-06-21 00:16:28 +03:00
Alexey Andreev 62fb149f08 Add support for sourceMapPrefix option (JS) in IDEA 2017-06-20 17:40:34 +03:00
Nikolay Krasko 44d3b8fb1a Ignore sub-queries for other operators with the same receiver (KT-18566)
ExpressionsOfTypeProcessor searches for all occurence of expression
with given type. It start from usages of the class, searches for sub-classes,
declarations that return those classes, usages of these declarations,
and so on.

During this search, find usages for all operators that return the
subject type is executed as sub-queries. Full search for such queries
can't give addition types. And it also shouldn't give additional scopes
for search, because same scopes should be located by operands. In other
words, if sub-query can spot the scope of usage starting from the same
type, the original query should also process same scope.

 #KT-18566 Fixed
2017-06-20 16:53:05 +03:00
Yan Zhulanow d07fd52c43 SamWithReceiver: Add general-purpose plugin and Gradle/Maven integrations 2017-06-19 20:28:47 +03:00
Alexey Sedunov db3172a750 Configuration: Inline createDefaultArguments() methods
It's a superficial fix: the bug is actually caused by
uninitialized companion instance reference in
Kotlin2JvmCompilerArgumentsHolder class

 #KT-18505 Fixed
2017-06-19 18:15:40 +03:00
Mikhail Zarechenskiy 2a4cac024b Add test for obsolete issue
#KT-13813 Obsolete
2017-06-19 17:36:10 +03:00
Mikhail Zarechenskiy aeac2ea384 Fix 'add not-null asserted call' quick fix for operation in
#KT-18529 Fixed
2017-06-19 17:36:09 +03:00
Mikhail Zarechenskiy b53a3b324f Fix 'infix call' diagnostic for in operation
#KT-8845 Fixed
2017-06-19 17:36:08 +03:00
Mikhail Glukhikh e8b0d47765 PlainTextPasteImportResolver: use relevant facade for Java classes
Fixes EA-75803 for this particular case
2017-06-16 17:17:38 +03:00
Vyacheslav Gerasimov f51e3ab90c Fix Android extensions property usage highlighting
#KT-10736 Fixed
2017-06-16 17:13:34 +03:00
Mikhail Zarechenskiy f8617f6676 Adapt collecting synthetic constructors in IDE for completion 2017-06-16 16:44:53 +03:00
Mikhail Glukhikh e9e028f987 Minor: add getName() for three local quick fixes to fix 162 / AS23 2017-06-16 16:20:55 +03:00
Mikhail Glukhikh ace3bfbbf9 Fix if -> ?: / ?. highlight type
if should be transformed, default level used (weak warning);
if should not be transformed, no highlighting (information) used.
2017-06-16 15:23:48 +03:00
Mikhail Glukhikh 9e85b0c2ba Has platform type inspection: do not enforce weak warning type
So #KT-17954 Fixed
2017-06-16 15:17:50 +03:00
Mikhail Glukhikh c3f3392f0c Minor 2017-06-16 15:04:29 +03:00
fitermay 81f5a29526 Make overridden member open: invalidate cached state on PSI modification
Before, waiting for inspection rerun was necessary
Also rename: computeState --> computeInfo
Related to KT-17740
2017-06-16 15:04:22 +03:00
fitermay 289286c8cd Avoid mutating state and do not rely on side effects for proper function
So #KT-17740 Fixed
2017-06-16 15:04:16 +03:00
fitermay 0dced8d29c Do not suggest "Make overridden member open" for already open ones
So #KT-18148 Fixed
2017-06-16 15:04:10 +03:00
shiraji cbccf932a7 Add inspection removing redundant spread operator for arrayOf call
So #KT-17920 Fixed
2017-06-16 15:04:04 +03:00
Mikhail Glukhikh ce55d9e364 Fix of "Replace array of with array literal"
Do not apply if module does not support the relevant feature
Related to KT-17164
2017-06-16 15:03:58 +03:00
Toshiaki Kameyama b9fb7cc3a5 Add quick fix to generate equals / hashcode in data class with arrays
So #KT-15893 Fixed
2017-06-16 15:03:52 +03:00
Dmitry Neverov 5df5a001a1 Support implicit receiver in if-then intentions #KT-16069 Fixed 2017-06-16 15:02:44 +03:00
Kirill Rakhman 13a2612e20 Add inspection for ranges with start > endInclusive #KT-18438 Fixed 2017-06-16 15:02:31 +03:00
shiraji 647558c98a Add inspection for potentially wrongly placed unary operators
So #KT-18236 Fixed
2017-06-16 15:02:24 +03:00
Alexey Sedunov eaea160f0e Kotlin Facet: Fix detection of source set name by Gradle compile task
#KT-17492 Fixed
2017-06-15 17:26:40 +03:00
Alexey Sedunov 1544467725 Presentation: Fix NPE on star projection rendering
EA-100480 Fixed
2017-06-15 17:26:39 +03:00
shiraji ab4eb1dd20 Add better quickfix for scope functions #KT-13676 Fixed 2017-06-15 15:01:42 +03:00
Mikhail Glukhikh 09d8c31433 Change highlight type of many inspections to GENERIC_ERROR_OR_WARNING
This way they will use highlight type depending on their level.
Otherwise highlight type is enforced and changing level in IDE
actually changes nothing.
2017-06-15 15:01:41 +03:00
Dimach d369fa094a Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00
Nikolay Krasko 6e9c0a0fda Move test logging processing in find usages to single place 2017-06-15 14:00:43 +03:00
Nikolay Krasko 60c8d5dcc0 Fix search usages for invoke() with vararg parameter (KT-18479)
#KT-18479 Fixed
2017-06-15 14:00:42 +03:00
Nikolay Krasko 018d4653e8 Fix search usages for invoke() extension operator (KT-18269)
#KT-18269 Fixed
2017-06-15 14:00:41 +03:00