Valentin Kipyatkov
f5d4b1dc8d
KT-14191 FormattingModelInconsistencyException Exception on applying intention Replace with count()
...
#KT-14191 Fixed
2016-10-24 18:32:01 +03:00
Nikolay Krasko
8865c0be34
Step into functions with local variable on first line under "Skip simple getters" (KT-14488)
...
(cherry picked from commit 9423d65)
#KT-14488 Fixed
2016-10-24 16:28:17 +03:00
Alexander Udalov
2076a31094
Improve Collection/Array/String detection logic in intentions
...
Use static methods from KotlinBuiltIns and check all supertypes, support cases
of Collection, Map and CharSequence
2016-10-24 15:30:39 +03:00
Mikhail Glukhikh
44d10672be
KT-7929 related: KtDestructuringDeclarationEntry is not resolved to descriptor in OverridingDeprecatedMemberInspection
2016-10-24 15:17:56 +03:00
Mikhail Glukhikh
6b9252a5d3
KT-7929 related: incorrect KtDestructuringDeclarationEntry is not resolved to descriptor, fixes EA-76715
2016-10-24 15:17:52 +03:00
Mikhail Glukhikh
1c8a2bb4cc
No more attempts to resolve KtDestructuringDeclaration to descriptor #KT-7929 Fixed
...
Also #KT-8442 Fixed
2016-10-24 15:17:48 +03:00
Denis Zharkov
7d89869c02
Do not suggest "Remove parameter" quick-fix on lambdas
...
Only "Rename to _" should work in the case.
The problem is that removing lambda's parameter may lead behaviour changes.
This quick-fix was not being invoked run before KT-14347 had been implemented
# Conflicts:
# idea/tests/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java
2016-10-24 10:19:25 +03:00
Denis Zharkov
5e1b219784
Implement quick-fix replacing parameter name with _
...
This quick-fix is registered for UNUSED_* diagnostic in places
where it can be applied (destructured declarations/lambda parameters)
#KT-14431 Fixed
2016-10-24 10:19:25 +03:00
Denis Zharkov
4c69416f2b
Report warning on unused entities that can be renamed to _
...
Currently it's all about lambda parameters/destructuring entries
#KT-14347 In Progress
2016-10-24 10:19:25 +03:00
Denis Zharkov
a9fcee098d
Support single-underscore named variables in JVM backend
...
There are mainly two kind of changes:
- skipping 'componentX' calls for destructuring entries named _
- fixing local variable table for them
- skip entries for destructuring entries named _
- use $noName_<i> format for lambda parameters named _
#KT-3824 Fixed
#KT-2783 Fixed
2016-10-24 10:19:25 +03:00
Alexander Udalov
4c52ce37d2
Drop TargetPlatform in utilities for module creation
2016-10-21 17:10:40 +03:00
Alexander Udalov
9ec781e859
Get rid of ModuleDescriptor#defaultImports, use DefaultImportProvider
2016-10-21 17:04:59 +03:00
Alexander Udalov
43c2b21987
Move import exclusion logic from ModuleDescriptorImpl to frontend
2016-10-21 17:04:58 +03:00
Nikolay Krasko
770ea75138
Regenerate formatter tests
2016-10-21 15:58:29 +03:00
Nikolay Krasko
355dca2a97
Add toString for KotlinStubBaseImpl
...
Try to simplify "Stub and PSI element type mismatch" exception analyze.
(cherry picked from commit 11aa71e)
2016-10-21 00:18:27 +03:00
Nikolay Krasko
e41886c1e7
J2K: actual convert for AbstractStubBuilderTest
...
(cherry picked from commit 33fa19b)
2016-10-20 19:22:07 +03:00
Nikolay Krasko
17e4cfd400
J2K: rename AbstractStubBuilderTest
...
(cherry picked from commit 31a356a)
2016-10-20 19:22:05 +03:00
Nikolay Krasko
2b231f7e31
Auto-indent line with chain-call continuation
...
(cherry picked from commit fdb4120)
2016-10-20 19:22:02 +03:00
Dmitry Neverov
3cc3ad2b9e
Fix spaces in labeled expression (KT-14131)
...
https://github.com/JetBrains/kotlin/pull/978
(cherry picked from commit fdd5ba7)
2016-10-20 19:22:00 +03:00
Dmitry Jemerov
f933cf5395
Specify test framework to use explicitly in generate test tests
2016-10-19 17:04:42 +02:00
Dmitry Jemerov
32290ec1d3
add missing prepareForWrite() calls
2016-10-19 13:24:42 +02:00
Nikolay Krasko
33f01ca5f3
Ignore not-prepared classes and add diagnostics for not-prepared classes for getting fields (EA-85900)
...
(cherry picked from commit 2ce6069)
2016-10-19 14:05:15 +03:00
Nikolay Krasko
67cc6bb004
Insert '()' under write action in finishing anonymous object template (EA-82700)
...
(cherry picked from commit 3234d76)
2016-10-19 14:05:06 +03:00
Dmitry Jemerov
23c6f6b5ee
Report more details about update checker exceptions.
2016-10-18 16:48:09 +03:00
Dmitry Jemerov
5db67ba2df
diagnostics for EA-79913 - AIOOBE: ByDescriptorIndexer.getDeclarationForDescriptor$idea_analysis
2016-10-18 16:48:09 +03:00
Dmitry Jemerov
221b55550c
handle elements with null containing file (EA-84533 - IAE: KtPsiFactoryKt.getModuleInfo)
2016-10-18 16:48:09 +03:00
Dmitry Jemerov
ada6e2a906
catch I/O exceptions from prepareToInstall() (EA-86183 - SE: AppInputStream.read)
2016-10-18 16:48:09 +03:00
Dmitry Jemerov
1144a5e136
EA-87284 - KNPE: KotlinTestRunLineMarkerContributor.getInfo
2016-10-18 16:48:09 +03:00
Alexey Sedunov
8c3fcf69f2
Convert Receiver to Parameter Intention: Update function descriptor after template is finished (otherwise some references may be processed incorrectly)
2016-10-18 16:48:09 +03:00
Alexey Sedunov
51566942f6
Add Library Quick-fix: Fix exception due to resolution being run in the "dumb mode"
...
#KT-14199 Fixed
2016-10-18 16:48:09 +03:00
Alexey Sedunov
cf69f1a946
Rename: Do not suggest type-based names for functions with primitive return types
...
#KT-14234 Fixed
2016-10-18 16:48:09 +03:00
Nikolay Krasko
74f0bb3d4e
Remove mentioning KT-11395 from the wrong test
...
(cherry picked from commit c4fb0e9)
#KT-11395 Open
2016-10-18 15:41:18 +03:00
Nikolay Krasko
a30d0d0f1e
Commit all documents after J2K (KT-13584, EA-82451)
...
New Kotlin file will be generated after converting, they are created for virtual files that were renamed from Java.
The exception happens when Java file was previously opened in editor, in that case text is restored through getLastCommittedText(document) where
document is resored for virtual file.
See: SingleRootFileViewProvider.VirtualFileContent.getText()
Exception descriptions also mention "Create Test" action as a problem source. The issue was reproduced when J2K convertion was performed
on test creation.
(cherry picked from commit e44260a)
#KT-13584 Fixed
2016-10-18 15:41:15 +03:00
Dmitry Neverov
c3c5805a5f
Fix indent in constructor delegate call (KT-7718)
...
(cherry picked from commit 5699b14)
#KT-7718 Fixed
2016-10-18 14:01:51 +03:00
Valentin Kipyatkov
7ab2d0c951
KT-13810 Kotlin code completion missing last character
...
#KT-13810 Fixed
2016-10-18 11:56:59 +03:00
Dmitry Petrov
b5d81d8e31
Preparations to push to master branch.
...
Introduce tests-ir-jvm module (for IR-based JVM BE tests).
2016-10-18 09:15:19 +03:00
Michael Bogdanov
978a4db07b
Introduced IR CodegenFactory, added configuration key to enable it
2016-10-18 09:09:35 +03:00
Michael Bogdanov
709bc08fbd
Add IR->JVM output to bytecode tool window
2016-10-18 09:09:22 +03:00
Nikolay Krasko
6a72cebe88
Add indent before colon of super types list on new line (KT-13981, KT-5117)
...
#KT-13981 Fixed
#KT-5117 Fixed
(cherry picked from commit dfea3af)
2016-10-17 15:16:48 +03:00
Nikolay Krasko
944b9b5b6c
Evaluate overloaded toString() in watches for Kotlin classes with delegate properties (KT-14068)
...
(cherry picked from commit 7774d2c)
#KT-14068 Fixed
2016-10-17 15:16:46 +03:00
shiraji
a1f1716044
Add inspection/intention for redundant calls of conversion methods #KT-10871 Fixed
...
Also #KT-12625 Fixed
2016-10-17 12:05:18 +03:00
Nikolay Krasko
87fb6dd3b8
Minor: rename ForkJoinPoolPatcherForTeamCityTesting -> ThreadTrackerPatcherForTeamCityTesting
...
(cherry picked from commit c6b128e)
2016-10-14 21:06:28 +03:00
Nikolay Krasko
8c2e61604e
Test for "Debugger: "Step over" dives into recursive call" (KT-12924)
...
Fixed in 7992df7b93
(cherry picked from commit 78e2f05)
#KT-12924 Fixed
2016-10-14 21:06:27 +03:00
Nikolay Krasko
06b72e608e
Do an ordinal step over while stepping over inlined calls in dex
...
(cherry picked from commit d741895)
2016-10-14 18:57:38 +03:00
Kirill Rakhman
09d6e2e0c0
Add quick-fixes for lateinit-related errors #KT-14342 Fixed
2016-10-14 16:14:00 +03:00
Nikolay Krasko
fe901e9516
Use Dex suffix instead of dex prefix for better test sorting
...
(cherry picked from commit 7f3a9c1)
2016-10-14 14:52:56 +03:00
Nikolay Krasko
2511ef2c45
Refactoring: extract KotlinStepOverInlineFilter class
...
(cherry picked from commit 27b0e7d)
2016-10-14 14:52:51 +03:00
Nikolay Krasko
7510ff4864
Check current behaviour of stepping over inline 'hasNext' and 'next' in for
...
(cherry picked from commit 008e574)
#KT-14296 Open
2016-10-14 14:52:44 +03:00
Nikolay Krasko
40d810ce60
Make step over for single thread work in Ultimate
...
(cherry picked from commit a220e64)
2016-10-14 14:52:39 +03:00
Nikolay Krasko
7992df7b93
Change the way 'step over' over inline calls works (KT-13751)
...
Previously it worked by invoking 'Run To Cursor' for the last position of inline function. As there's only one 'run to cursor' breakpoint
available in Idea framework, it couldn't work when inline function call was was used in conditions of control flow statements.
A new approach works through multiple step over operation and controlling stop position. In other words we try to "step over" inlined lines.
Same thing is actually done in "Smart Step Into" action.
(cherry picked from commit 2e8775d)
#KT-13751 Fixed
2016-10-14 14:52:31 +03:00