Alexey Sedunov
ed8b4b761a
Override/Implement: Add 'actual' modifier to overrides of 'expect'
...
#KT-23106 Fixed
2018-06-19 12:22:40 +03:00
Alexey Sedunov
5f87e84966
Override/Implement: Do not insert super-call into extension body
...
Such super-calls are not are supported yet
#KT-4311 Fixed
2018-06-19 12:22:39 +03:00
Alexey Sedunov
c49eede054
Generate hashCode()/equals(): Support deep array equality
...
#KT-19102 Fixed
2018-06-19 12:22:39 +03:00
Mikhail Glukhikh
9ef89447b3
Sealed sub-class -> object: handle equals, suggest "add equals"
...
Before this commit, sealed sub-class without state was considered
a style issue.
After this commit, sealed sub-class without state AND custom equals
is considered a probable bug,
because comparison of its instances is very fragile.
Alternative fix (generate equals & hashCode by identity) is added.
2018-06-19 11:20:26 +03:00
Mikhail Glukhikh
84c369dc6c
Highlighting settings provider: skip inspections on libraries *only*
...
This keeps inspection running e.g. in build.gradle.kts scripts
2018-06-19 10:42:37 +03:00
Mikhail Glukhikh
cbec005055
Add test for KT-21710 (gutters inside library sources)
2018-06-19 10:42:36 +03:00
Mikhail Glukhikh
1819878c2b
Switch off inspections on Kotlin files not in project source
...
To switch them off, KotlinDefaultHighlightingSettingsProvider
was introduced.
So #KT-19377 Fixed
2018-06-19 10:42:34 +03:00
Mikhail Glukhikh
ef0eb5cbe9
KotlinProblemHighlightFilter: *perform* highlighting on library sources
...
This commit reverts fixing commit for KT-19377
So #KT-21710 Fixed
So #KT-19377 Submitted
2018-06-19 10:42:33 +03:00
Nikolay Krasko
423e8f9979
Depend on jre8 kotlin stdlib in idea
...
Use jre artifact for now because of KT-24730.
2018-06-16 01:19:15 +03:00
Nikolay Krasko
e37cbe51d2
Remove outdated runtime notification
...
#KT-23122 Fixed
#KT-21634 Fixed
#KT-20324 Fixed
#KT-18366 Fixed
#KT-20910 Fixed
Outdated runtime notification was abandoned.
2018-06-15 16:13:17 +03:00
Natalia Selezneva
0adfa7b038
182: Converting J2K: save file path before conversion to use it in commit dialog
...
^KT-9945 Fixed
2018-06-14 21:33:11 +03:00
Natalia Selezneva
adfa7a2418
Create new module with dependency on IDEA Git plugin
2018-06-14 21:33:10 +03:00
Mikhail Glukhikh
cbcd35e2f5
Implement Kotlin sub-classes tooltip to handle MPP correctly
...
Before this commit, Java tooltip was in use which could not
work correctly with expect / actual classes
So #KT-21011 Fixed
2018-06-14 15:42:37 +03:00
Mikhail Glukhikh
90b6f369e0
Module-specific list cell renderer: wrap into runReadAction
...
This should fix KotlinGoto*ModuleTestGenerated.testExpectClassSuperclass
and related exception in IDEA
Additional fix for KT-23685
2018-06-14 13:55:31 +03:00
Mikhail Glukhikh
3d4b407d0c
MPP wizard: introduce structure: root <- common <- js / jvm
...
This commit also removes deprecated structure with common root
So #KT-20554 Fixed
2018-06-14 13:14:45 +03:00
Vyacheslav Gerasimov
992a31af88
Build: introduce javaPluginConvention extension on project
...
`ExtensionAware.the<T>()` introduced in gradle 4.7 made existing calls `the<JavaPluginConvention>()` invalid (on wrong receiver)
2018-06-13 19:43:03 +03:00
Vyacheslav Gerasimov
94c636adc3
Build: Fix usage of jvmArgs which became nullable
2018-06-13 19:43:03 +03:00
Mikhail Glukhikh
37124e0c0d
Make collectSlowLineMarker handle parents to deal with changes correctly
...
So #KT-20825 Fixed
So #KT-21113 Fixed
Related to IDEA-141330 fix
2018-06-13 19:23:41 +03:00
Mikhail Glukhikh
232d340118
Expect/actual companion object: set gutter on leaf element
...
May fix KT-21113
2018-06-13 19:23:40 +03:00
Mikhail Glukhikh
0a2ed054f1
Add module-specific cell renderers to navigate to actuals correctly
...
So #KT-23685 Fixed
2018-06-13 19:23:39 +03:00
Mikhail Glukhikh
efd6b7a035
KotlinGotoTargetRenderProvider: .java -> .kt
2018-06-13 19:23:38 +03:00
Mikhail Glukhikh
ab32a9a564
Minor enhancement of "actual" gutter
...
This makes hint about Ctrl+Alt+B available
2018-06-13 19:23:37 +03:00
Mikhail Glukhikh
f139847e47
Cleanup: KotlinLineMarkerProvider
2018-06-13 19:23:36 +03:00
Mikhail Glukhikh
cfd1a54463
Do not create expect / actual gutters for primary constructor
...
So #KT-22177 Fixed
So #KT-21063 Obsolete
2018-06-13 19:19:26 +03:00
Mikhail Glukhikh
b235af0656
Can be private: correct detection of calls inside inline accessors
2018-06-13 19:17:50 +03:00
Mikhail Glukhikh
542f0a61d1
Unused receiver: optimization
2018-06-13 18:12:37 +03:00
Mikhail Glukhikh
faa8d92560
Unused receiver: do not report on actual declarations #KT-24562 Fixed
2018-06-13 18:12:36 +03:00
Mikhail Glukhikh
38632c2937
Can be private: correct detection of calls inside inline function
...
So #KT-22180 Fixed
So #KT-22094 Fixed
2018-06-13 18:12:34 +03:00
Mikhail Glukhikh
a8737a1278
Can be private -> could be private (violation of naming convention)
2018-06-13 18:12:33 +03:00
Mikhail Glukhikh
88974ee32b
Can be private: simplification
...
Related to KT-22030
2018-06-13 18:12:31 +03:00
Toshiaki Kameyama
7786896e9b
Can be private: don't report when object or subclass calls the function
...
Questionable
So #KT-22030 Fixed
2018-06-13 18:12:30 +03:00
Mikhail Glukhikh
6c8276b701
Do not report "can be private" on annotated declarations #KT-24422 Fixed
2018-06-13 18:12:28 +03:00
Mikhail Glukhikh
d1155070a7
Do not report "can be private" on expect or actual declarations
...
So #KT-24374 Fixed
So #KT-24537 Fixed
2018-06-13 18:12:27 +03:00
Mikhail Glukhikh
11acea51b7
Reformat: can be private inspection
2018-06-13 18:12:25 +03:00
Mikhail Glukhikh
a09f6e14a5
Do not suggest "convert to object" for sealed sub-classes with state
...
So #KT-24816 Fixed
2018-06-13 18:12:18 +03:00
Nicolay Mitropolsky
79487a6a21
KotlinLanguageInjector: injecting into returned literals (#KT-21673)
2018-06-09 22:56:25 +03:00
Vyacheslav Gerasimov
7fb2452dba
182: Fix toNullability clash in j2k
2018-06-09 16:51:24 +03:00
Vyacheslav Gerasimov
272f8b832b
182: Set since build to 182.3040
2018-06-09 14:44:50 +03:00
Yan Zhulanow
e57463e5fd
182: Fix compatibility with the Android plugin from AS 3.1
...
(cherry picked from commit 0592121)
2018-06-09 14:44:50 +03:00
Yan Zhulanow
3df6d63580
Minor: Fix compilation after unsuccessful rebase. Add back the isMultiplatformModule() method
2018-06-09 00:19:17 +03:00
Yan Zhulanow
3ec33f4193
Debugger: Evaluate expression in MPP common module: @JvmName is unresolved (KT-23162)
2018-06-08 19:37:47 +03:00
Yan Zhulanow
e334f693b2
Minor: Do not place line markers in code fragments and in non-Kotlin files
2018-06-08 19:37:47 +03:00
Yan Zhulanow
ab5614eaac
Minor: Replace a number of trivial Guava usages with constructor calls and kotlin-stdlib function calls
2018-06-08 19:37:47 +03:00
Yan Zhulanow
61ffde54fd
Minor: Remove unneeded bunch file
2018-06-08 19:37:21 +03:00
Yan Zhulanow
5f43808cfd
Revert "Debugger: Fix breakpoints and stepping for inline-only function lambda arguments (#KT-23064)"
2018-06-08 19:37:20 +03:00
Yan Zhulanow
d851c8679a
Fix a number of potential exceptions in debugger (EA-119717)
2018-06-08 19:37:20 +03:00
Yan Zhulanow
0f15dfdfdc
Handle AbsentInformationException correctly (EA-119717)
2018-06-08 19:37:20 +03:00
Yan Zhulanow
4dfcb72fa1
Print source file location/contents if possible (EA-120038)
2018-06-08 19:37:20 +03:00
Yan Zhulanow
fc6057e34f
Fix NPE in DelegateSourcePosition (EA-120042)
2018-06-08 19:37:20 +03:00
Yan Zhulanow
d08dcb9f0f
Add missing read action in debugger (EA-120163)
2018-06-08 19:37:20 +03:00