Commit Graph

17003 Commits

Author SHA1 Message Date
Mikhail Glukhikh ab973b2ff0 Fix several false positives and make safer "redundant companion ref"
Don't report it on an import directive #KT-23520 Fixed
Don't report it if companion nested class is referenced #KT-23519 Fixed
Check companion reference both by descriptor and by name
2018-04-03 17:45:14 +03:00
Mikhail Glukhikh 23488fac56 Optimization: RedundantCompanionReferenceInspection 2018-04-03 17:30:46 +03:00
Mikhail Glukhikh 66d134ef5c "Can be private" inspection: don't analyze data class parameters
So #KT-23566 Fixed
2018-04-03 13:44:37 +03:00
Yan Zhulanow 78f2fe1eab Pill: Add idea-android-output-parser module to JPS model 2018-04-02 19:26:32 +03:00
Yan Zhulanow 5d9bdbec10 Tests: Disable inspections after test as Platform test framework requires 2018-04-02 19:26:30 +03:00
Yan Zhulanow 8f02d338a6 Android: Extract dependencies to Android plugin to extensions 2018-04-02 19:26:28 +03:00
Yan Zhulanow b3fbec9ec3 Fix EA-117939: Add a read action 2018-04-02 19:17:56 +03:00
Yan Zhulanow 81f3346329 Evaluate: Fix annotation value evaluation (#KT-23058) 2018-04-02 19:16:46 +03:00
Yan Zhulanow 4d13e38948 Show warning alert when the installed Kotlin plugin version is incompatible with the IDE platform version 2018-04-02 19:16:16 +03:00
Yan Zhulanow c8a1517190 Fix EA-113820: Accept also nullable elements in 'getRelevantElement()' 2018-04-02 19:15:33 +03:00
Yan Zhulanow ff4cdfb43e Remove "New Kotlin Activity" action as Android plugin can generate it by itself (#KT-22845, EA-114706) 2018-04-02 19:14:40 +03:00
Yan Zhulanow 966480a155 Debugger: A dirty fix for setting breakpoints inside finally {} in case if exception is thrown from try {} (#KT-22654) 2018-04-02 19:14:28 +03:00
Yan Zhulanow eec9c6bffa Debugger: Fix breakpoints and stepping for inline-only function lambda arguments (#KT-23064) 2018-04-02 19:14:14 +03:00
Alexey Sedunov ae37cc30a1 JS: Use the same output paths for JPS and Maven-based builds
#KT-22586 Fixed
2018-04-02 15:28:35 +03:00
Vyacheslav Gerasimov 22496353b6 Fix KotlinReferenceImporter, add safe call to quickFixActionRanges
HighlightInfo.quickFixActionRanges is nullable in 181
2018-03-30 17:05:55 +03:00
Natalia Selezneva 3d73786e98 Highlight scripts according to ScriptLocation annotation in ScriptDefinition 2018-03-30 14:43:17 +03:00
Natalia Selezneva 27f1eb1e13 Do not reload dependencies for scripts that wasn't recently touched 2018-03-30 14:43:17 +03:00
Natalia Selezneva f52441d64e Do not show "Gradle Project needs to be imported" notification for gradle script if only spaces are added 2018-03-30 14:43:17 +03:00
Alexey Sedunov b0a99c7945 Move Out Of Object Intention: Fix assertion error
#KT-22983 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov 14b1bdf627 Rename: Fix renaming of backquoted property accessors
#KT-23298 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov 2104a0fa2b Extract Function: Drop extra space in modifier list
#KT-23274 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov 0a0043a851 Convert Function to Property: Forbid for properties with both initializer and getter
#KT-23293 Fixed
2018-03-30 12:37:29 +03:00
Alexey Sedunov 43b4a496e3 Rename: Increase precedence of RenameSyntheticDeclarationByReferenceHandler
Otherwise it's not applicable references to Java declarations

 #KT-20241 Fixed
2018-03-30 12:37:29 +03:00
Nikolay Krasko 6adf7eaf04 Check stubs consistency in decompiler tests 2018-03-29 19:49:02 +03:00
Nikolay Krasko 70d236cb8d Always configure "idea.home.path" system variable
When TestLoggerFactory is initialized in tests it checks that variable
and it it's not present uses classpath to search for logger configuration.

If this search is unsuccessful a lot of exceptions are written to log:

java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
     	at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:96)
     	at com.intellij.testFramework.TestLoggerFactory.reconfigure(TestLoggerFactory.java:67)
2018-03-29 19:49:00 +03:00
Alexander Podkhalyuzin b78869ecfc Fixed aliased imports cache #KT-23430 Fixed 2018-03-29 16:05:00 +02:00
Nikolay Krasko 9a831bf7dd Collect statistics for inlay parameter options 2018-03-29 14:14:34 +03:00
Dmitry Jemerov 9516c638ea Use more efficient file type check (avoid identifying file type by file) 2018-03-29 13:11:37 +02:00
Dmitry Jemerov 85ebe97597 Avoid unnecessary collection copy (KT-23384) 2018-03-29 13:11:36 +02:00
Dmitry Jemerov 6f1881b9ff Import reference at offset uses existing import fix (KT-23235)
If we have a valid autoimport fix at given offset, don't recalculate
variants; use existing ones
2018-03-29 13:11:36 +02:00
Mikhail Glukhikh 05db4b3ccf Optimization: LeakingThisInspection 2018-03-29 11:39:10 +02:00
Mikhail Glukhikh 5e9ca6f466 Optimization: AddVarianceModifierInspection 2018-03-29 11:39:09 +02:00
Mikhail Glukhikh 34de241154 Add inspection to detect public API with implicit type 2018-03-29 11:39:01 +02:00
Dmitry Jemerov 6a619d0aa5 Ensure that multiplatform Gradle task runner runs first
In order to have effect, the runner needs to be registered before the
main Gradle runner, which also has order="first" in plugin.xml.
2018-03-29 09:50:34 +02:00
Dmitry Jemerov 8f19e95bd0 Set SDK from JVM module when running JUnit tests for common module 2018-03-29 09:50:34 +02:00
Dmitry Jemerov 6bee25cad2 Reformat 2018-03-29 09:50:34 +02:00
Dmitry Jemerov 20cd193030 Delete remains of external annotations support from compiler 2018-03-29 09:45:07 +02:00
Mikhail Zarechenskiy 81ac3a4f2f Add ability to enable new inference in the platform 2018-03-28 18:32:28 +03:00
Toshiaki Kameyama e96b5f3117 Fix false positive in redundant companion reference #KT-23435 Fixed 2018-03-28 13:27:45 +02:00
Mikhail Glukhikh 7e711eaf30 Memory optimization: CanBeParameterInspection 2018-03-28 12:04:58 +02:00
Mikhail Glukhikh 491eeb3d6f Optimization: OverridingDeprecatedMemberInspection 2018-03-28 12:04:56 +02:00
Mikhail Glukhikh b8da1d67d5 Optimize UsePropertyAccessSyntaxInspection 2018-03-28 12:04:55 +02:00
Mikhail Glukhikh 52cd71c3c4 Optimization: ReplaceGetOrSetInspection 2018-03-28 12:04:53 +02:00
Mikhail Glukhikh 9170aa0674 Distinguish PARTIAL_WITH_CFA resolve mode from just PARTIAL
So #KT-23182 Fixed
2018-03-28 12:04:33 +02:00
Mikhail Glukhikh 5d57341ee4 Make cheaper analysis in KtReference.resolveToPsiElements
Related to KT-23182
2018-03-28 12:04:13 +02:00
Alexey Sedunov e604707450 Move: Support "Search references" option in dialogs 2018-03-27 13:47:13 +03:00
Dmitry Savvinov 148573fcf6 Remove 'DataFlowValueKindUtils.isStable', use 'DataFlowValue.isStable' instead 2018-03-27 10:51:51 +03:00
Alexander Udalov 7f1a468b2e Read virtual files safely in KotlinMetadataStubBuilder
Do not fail on an invalid file, or on a file pointing to a non-existent
.jar entry, exactly as this is done in KotlinMetadataDecompiler
2018-03-26 15:54:28 +02:00
Alexey Tsvetkov 8a82c1618c Use Plugins DSL in Kotlin Gradle scripts
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Nikolay Krasko 982b768c69 Refactoring: collect callbacks for collecting module info in one place 2018-03-23 18:04:08 +03:00