Anton Bannykh
f20ed39b92
Fix a typo in an error message
2020-02-26 18:57:11 +03:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Roman Artemev
bb43a66716
[Metadata] Add platform dependent type transformer
...
- Fix forward declaration type construction
2020-02-26 14:55:54 +03:00
Roman Artemev
25a91a217e
[KLIB] Fix package for NullFlexibleTypeDeserializer
2020-02-26 14:55:53 +03:00
Ilya Kirillov
870b7d234f
Wizard: refactoring do not use context directly in UI
2020-02-26 11:19:09 +03:00
Ilya Kirillov
ad39d0520a
Wizard: use first enum entry as default value for enumSetting
2020-02-26 11:19:08 +03:00
Ilya Kirillov
4c62f64396
Wizard: minor, not to use reading context directly in some places
2020-02-26 11:19:08 +03:00
Ilya Kirillov
7a3d730aec
Wizard: refactoring: rename contexts
...
TaskRunningContext -> WriteContext,
ValuesReadingContext -> ReadingContext
2020-02-26 11:19:08 +03:00
Ilya Kirillov
05022109fc
Wizard: save some setting values in UI
...
#KT-35585 fixed
2020-02-26 11:19:07 +03:00
Ilya Kirillov
9e47d0b33c
Wizard: move Android SDK Setting to AndroidPlugin
2020-02-26 11:19:07 +03:00
Ilya Kirillov
9c5ff6c131
Wizard: create Gradle wrapper
2020-02-26 11:19:07 +03:00
Ilya Kirillov
2600ebb961
Wizard: use custom module icons for every module kind
2020-02-26 11:19:06 +03:00
Ilya Kirillov
299b0f0102
Wizard: prettify error messages
2020-02-26 11:19:06 +03:00
Ilya Kirillov
72f92d7a3b
Wizard: use IntelliJ validator in UI instead of custom one
2020-02-26 11:19:06 +03:00
Ilya Kirillov
1431649c4d
Wizard: use Kotlin Gradle Icon for Gradle Kotlin build system
2020-02-26 11:19:06 +03:00
Ilya Kirillov
e1b99580eb
Wizard: introduce Android & JS multiplatform project kinds
...
#KT-36155 fixed
2020-02-26 11:19:06 +03:00
Ilya Kirillov
bb455ec8f6
Wizard: make error messages in ui clickable
...
#KT-36162 fixed
2020-02-26 11:19:06 +03:00
Ilya Kirillov
54c9582ac4
Wizard: fix wrong line separators
...
#KT-36328 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
fabb0584da
Wizard: remove module types for some module configurators
...
#KT-36176 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
0123dbce21
Wizard: trim paths in UI
...
#KT-36163 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
152def62cb
Wizard: get current Kotlin version from compiler
...
#KT-35693 fixed
2020-02-26 11:19:05 +03:00
Dmitry Gridin
50c2c38624
Tests: fix some tests in formatter for AS
2020-02-26 13:51:47 +07:00
Dmitry Gridin
ca598b6465
Formatter: fix indent after trailing comma in calls
...
#KT-36917 Fixed
2020-02-26 10:55:58 +07:00
Dmitry Savvinov
428dcd847f
Flip default value of kotlin.gradle.testing.enabled to true
2020-02-25 17:18:49 +03:00
Sergey Rostov
5e16373af6
.gradle.kts, changes notifier: process events async and on pooled thread
...
#KT-36401 Fixed
2020-02-25 16:00:20 +03:00
Dmitry Savvinov
66ef49cecc
Fix CCE under composite mode
...
This commit essentially reverts change in IdeaResolverForProject made in
423aeb9a08
The issue is that 'platform.findAnalyzerServices' may return non-
CompositeAnalyzerServices even under composite analysis mode, when
platform is single-target (e.g. 'JvmAnalyzerServices' for JVM-only)
^KT-36978
2020-02-25 15:09:49 +03:00
Ilya Kirillov
a64526acfb
EA-210533: fix NPE in LiftReturnOrAssignmentInspection
...
It may be still active after its application due to slow IDEA responsiveness
Do not try to apply it again on invalid PSI elements
2020-02-25 13:58:29 +03:00
Ilya Kirillov
7f50dcb3a8
EA-210234: Fix invalid access to Java resolution facade
...
Do not try to get Java resolution facade for non-Java PSI elements
2020-02-25 13:58:28 +03:00
Ilya Kirillov
af6d5b76f5
EA-209576: Fix access to disposed module in gradle importer
2020-02-25 13:58:28 +03:00
Dmitry Gridin
36ebbc49f4
KotlinExpressionMover: trailing comma support
...
#KT-34744
2020-02-25 17:13:43 +07:00
Dmitry Gridin
72c8b38864
KotlinExpressionMover: convert to Kotlin
2020-02-25 17:10:58 +07:00
Dmitry Gridin
bca9242492
KotlinExpressionMover: rename .java to .kt
2020-02-25 17:03:28 +07:00
Dmitry Gridin
56064f2a92
JoinLines: add tests
2020-02-25 17:03:28 +07:00
Dmitry Gridin
feaa53c4f2
Formatter: shouldn't format property chains
...
#KT-36387 Fixed
#KT-36466 Fixed
2020-02-25 16:48:33 +07:00
Vladimir Dolzhenko
c9658eb6e4
Adjust tests due to keep imports for extension functions used in kdoc
...
Relates to #KT-27601
2020-02-25 09:29:39 +01:00
Vladimir Dolzhenko
afd71d3d19
Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
Relates to #KT-34026
Relates to #KT-34332
2020-02-25 09:23:46 +01:00
Toshiaki Kameyama
e406669190
Invert if condition intention: don't add unnecessary 'continue'
...
#KT-12329 Fixed
2020-02-24 11:17:20 +01:00
Toshiaki Kameyama
62e335ac88
Implement members: fix it works correctly for data class
...
#KT-36686 Fixed
2020-02-23 22:00:38 +01:00
Toshiaki Kameyama
d54a35ef56
Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
#KT-34026 Fixed
#KT-34332 Fixed
2020-02-23 10:17:10 +01:00
Toshiaki Kameyama
699ea0aa2b
Replace 'if' with 'when': don't swallow comments if there is no synthetic else branch
...
#KT-34640 Fixed
2020-02-22 16:50:37 +01:00
Toshiaki Kameyama
f487118be5
Change signature: fix it works correctly when call site function has no value argument list
...
#KT-23510 Fixed
2020-02-22 09:07:34 +01:00
kvirolainen
223ed1ad60
KT-27601 review fixes
2020-02-22 08:55:50 +01:00
kvirolainen
90cfa80683
KT-27601 keep imports for extension functions used in kdoc
2020-02-22 08:55:50 +01:00
Dmitry Savvinov
423aeb9a08
Always check project.useCompositeAnalysis in findAnalyzerServices
...
The important things here are changes in
ResovlerElementCache/PerFileAnalysisCache. Previously, we'd always use
'CompositeAnalyzerServices' for common-platform, even with HMPP turned
off.
However, with HMPP turned off, common-platform is always coerced to
[JVM, JS, Native], no matter which platforms that project actually
targets.
So, even if project compiles only for JVM/Native, we'll detect
platform of common module as [JVM, JS, Native], build composite analyzer
services *which include all checkers from all platforms*, and then
report false-positive errors from JS checkers.
^KT-35031 Fixed
^KT-33573 Fixed
^KT-34925 Fixed
2020-02-21 20:00:21 +03:00
Toshiaki Kameyama
e56abcbb85
Inline variable: fix it works correctly for 'when' subject variable
...
#KT-29870 Fixed
2020-02-21 17:30:13 +01:00
Toshiaki Kameyama
d8ab046136
Convert property to function: remove annotation use-site target
...
#KT-36834 Fixed
2020-02-21 17:03:26 +01:00
Toshiaki Kameyama
d5e71ebef1
Invert if condition intention: 'isEmpty' <-> 'isNotEmpty'
...
#KT-34593 Fixed
2020-02-21 16:39:35 +01:00
Toshiaki Kameyama
79c15e49b6
Convert function to property: suggest on fun keyword
...
#KT-34450 Fixed
2020-02-21 16:32:17 +01:00
Toshiaki Kameyama
820b8c3c54
Introduce "Redundant '?: return null'" inspection
...
#KT-34819 Fixed
2020-02-21 16:24:42 +01:00
Toshiaki Kameyama
5f1cc3b152
Introduce "Redundant 'inner' modifier" inspection
...
#KT-3262 Fixed
2020-02-21 16:12:49 +01:00