Commit Graph

66577 Commits

Author SHA1 Message Date
Toshiaki Kameyama 4973d3c359 "Create enum constant" quick fix: handle trailing comman correctly
#KT-36461 Fixed
#KT-36462 Fixed
2020-05-27 02:38:41 +09:00
Yan Zhulanow 0bd2643788 Fix EA-209582: Add a missing runReadAction() 2020-05-27 02:38:41 +09:00
Yan Zhulanow 075870fee9 Fix EA-207101: Abort changing property declaration from Java accessor
This is not a proper fix. "Change signature" in Kotlin should support
  changing property name/type through accessors. However, it's not
  easy to achieve without a huge refactoring.
2020-05-27 02:38:41 +09:00
Yan Zhulanow fc433dece8 Fix EA-221456, check for error types before method signature calculation 2020-05-27 02:38:41 +09:00
Yan Zhulanow c8bad15ba9 Fix EA-210182, check for context validity 2020-05-27 02:38:41 +09:00
Yan Zhulanow b756e18962 Never treat @JsExport-annotated declarations as not-used instead of @JsName 2020-05-27 02:38:41 +09:00
Yan Zhulanow ef698a5747 Fix "PSI/index mismatch" in case of @ParameterName on non-functional types (KT-34524) 2020-05-27 02:38:41 +09:00
Yan Zhulanow d86b54a2f1 Minor: Fix formatting 2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 4638a97bbc "Call on collection type may be reduced": fix false positive with mapNotNull, generic lambda block and new inference
#KT-32801 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 6ee4b5e393 Condition of 'if' expression is constant: don't report when condition has named reference
#KT-27651 Fixed
2020-05-27 02:38:40 +09:00
Yan Zhulanow bfb5efd490 Minor: Get rid of the hard-coded modifier value 2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 581f83421a Unnecessary parentheses in function call with lambda: don't report for function named 'suspend'
#KT-22878 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 777995a3a0 Add braces: don't insert extra line break and move the following comment
#KT-36194 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 905d0c1016 Unused symbol: do not report for @JsName annotated declarations
#KT-17368 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 7abd0831a1 Unused unary operator: highlight whole expression in yellow
#KT-37156 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 43b106fc72 Can be replaced with binary operator: do not report if it leads to an error/warning after conversion
#KT-25050 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama 81d01a8f8e "To ordinary string literal": don't add unnecessary escapes to characters in template expression
#KT-36406 Fixed
2020-05-27 02:38:40 +09:00
Toshiaki Kameyama bf3e739edf Replace with string templates: add curly braces if needed
#KT-37173 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama 8d3e41ae60 ReplaceToWithInfixFormInspection: don't report when call expression has type typeArguments
#KT-36508 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama f7a69d4aa7 Convert lambda to reference: suggest on lambda argument for suspend function parameter
#KT-34378 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama 9b6b25f069 Convert lambda to reference: suggest on lambda argument for extension function parameter
#KT-22014 Fixed
#KT-22015 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama b8ae13b3d9 RedundantLetInspection: remove 'let' safe call correctly
#KT-37148 Fixed
2020-05-27 02:38:39 +09:00
Toshiaki Kameyama a2f55e8b7c Remove redundant calls of the conversion method: report for unsigned types
#KT-30263 Fixed
2020-05-27 02:38:39 +09:00
Yan Zhulanow 38b6b73745 Add additional diagnostic for EA-225967 2020-05-27 02:38:39 +09:00
Yan Zhulanow 36f3ff7d20 Add stack trace logging for EA-225969 2020-05-27 02:38:39 +09:00
Yan Zhulanow c1b57e8681 Pill: Remove "Refresh Pill model" run configuration
Just invoke ./gradlew pill task, there is no need in the extra
  run configuration.
2020-05-27 02:38:39 +09:00
Dmitry Petrov f81be526bc Support deserialized IR in IfNullExpressionsFusionLowering
Deserializer generates simple branches instead of IrElseBranches.
2020-05-26 20:29:12 +03:00
Svyatoslav Scherbina c9f721848a Fix Throws declaration in Native diagnostics tests
Align annotation target with real declaration in Native stdlib
2020-05-26 20:24:35 +03:00
Svyatoslav Scherbina fa152593ef Fix false-positive @Throws error diagnostics in Native
Don't report
THROWS_LIST_EMPTY and MISSING_EXCEPTION_IN_THROWS_ON_SUSPEND
caused by unresolved arguments.
2020-05-26 20:24:34 +03:00
Svyatoslav Scherbina 242d0aa26e Add Native diagnostics for @Throws suspend fun
`@Throws suspend fun` must have CancellationException accepted.

Also add more tests.
2020-05-26 20:24:32 +03:00
Svyatoslav Scherbina 3e8b0055ab Decouple Call.hasUnresolvedArguments from ResolutionContext 2020-05-26 20:24:30 +03:00
Sergey Rostov eb338e2e91 Scripting IDE cache: unblocking concurrent update
#KT-38875 Fixed

(cherry picked from commit 63e355d979)
2020-05-26 19:22:15 +03:00
Sergey Rostov e3ed8870dd scripting, sdk cache: same key for locating sdk 2020-05-26 19:22:09 +03:00
Sergey Rostov 8d00ec1933 scripting: fixes after rebase 2020-05-26 19:22:08 +03:00
Sergey Rostov 74b189fa54 idea.core.script.ucache: remove cyrilic "c" in package name 2020-05-26 19:22:08 +03:00
Natalia Selezneva 5212054af6 Fix sdk duplication in ProjectSdkTable in tests 2020-05-26 19:22:08 +03:00
Sergey Rostov 72aba2fce2 IDE scripting: add default sdk only when used 2020-05-26 19:22:07 +03:00
Sergey Rostov 53983a99e5 Fix order of ExternalSystemListeners 2020-05-26 19:22:07 +03:00
Sergey Rostov 06dbbe2452 KotlinDslModels: project can be null in ExternalSystemTaskNotificationListener.onStart 2020-05-26 19:22:07 +03:00
Sergey Rostov 44f6d490b6 scripting ucache: update synchronously in unit test mode 2020-05-26 19:22:06 +03:00
Sergey Rostov e613bc406e 201: proper implementation for AsyncFileChangeListenerHelper.kt
updateFile is called before changes in vfs, so the timestamp is old there.
The proper implementation is to collect changed files in list and get timestamp in apply.
2020-05-26 19:22:06 +03:00
Sergey Rostov 8f8ee1ea83 Scripting unified cache: update sdks synchronously on changes 2020-05-26 19:22:06 +03:00
Sergey Rostov 037ea224a4 GradleBuildRoot: don't store references to virtual files 2020-05-26 19:22:06 +03:00
Sergey Rostov a97e9f641a remove stale GradleScriptInputsWatcher references 2020-05-26 19:22:06 +03:00
Sergey Rostov 494a4460c1 minor: ScriptingSupport.Provider -> ScriptingSupport, KDoc 2020-05-26 19:22:05 +03:00
Sergey Rostov 40c852e818 GradleScriptOutOfProjectTest: roots are already registered as legacy 2020-05-26 19:22:05 +03:00
Sergey Rostov cf4ad1908b Fix lastIndexOfOrNull 2020-05-26 19:22:05 +03:00
Sergey Rostov c604ef1255 Scripting, minor: updateScriptDefinitions -> updateScriptDefinitionReferences 2020-05-26 19:22:05 +03:00
Sergey Rostov cfe6fee1ca ScriptClassRootsCache, sdk: use toSystemIndependentName 2020-05-26 19:22:05 +03:00
Sergey Rostov eda95af999 gradle.kts, minor: remove unused code 2020-05-26 19:22:04 +03:00