Commit Graph

62906 Commits

Author SHA1 Message Date
Dmitry Gridin 540c0859c2 i18n: fix properties in idea-gradle 2020-03-16 18:40:43 +07:00
Yan Zhulanow 7a40274b71 i18n: Unify string naming in KotlinBundle 2020-03-16 18:40:42 +07:00
Yan Zhulanow 4cc19d3fda i18n: Add bundle for idea-jvm 2020-03-16 18:40:42 +07:00
Yan Zhulanow 40bdc099e3 i18n: Add bundle for idea-gradle-native 2020-03-16 18:40:42 +07:00
Yan Zhulanow 4e634b2b01 i18n: Add bundle for idea-new-project-wizard 2020-03-16 18:40:42 +07:00
Yan Zhulanow f1d21b02e9 i18n: Add bundle for idea-native 2020-03-16 18:40:42 +07:00
Yan Zhulanow 2702be564a i18n: Add bundle for idea-maven 2020-03-16 18:40:42 +07:00
Yan Zhulanow 830c7cef07 i18n: Add bundle for JVM debugger (evaluation) 2020-03-16 18:40:42 +07:00
Yan Zhulanow 7f80fb8b98 i18n: Add bundle for JVM debugger (coroutine) 2020-03-16 18:40:42 +07:00
Yan Zhulanow e0d5607fcd i18n: Add bundle for JVM debugger (core) 2020-03-16 18:40:41 +07:00
Yan Zhulanow b0cd9911a4 i18n: Add bundle for New J2K 2020-03-16 18:40:41 +07:00
Yan Zhulanow eabcff5c2a i18n: Add bundle for New J2K services 2020-03-16 18:40:41 +07:00
Yan Zhulanow 59b5505379 i18n: Add bundle for idea-git 2020-03-16 18:40:41 +07:00
Yan Zhulanow 3b931514ac i18n: Extract common caching code from bundles, J2K existing bundles 2020-03-16 18:40:41 +07:00
Yan Zhulanow 207ecf757b Rename .java to .kt 2020-03-16 18:40:41 +07:00
Dmitry Gridin 386fa50e99 i18n: add bundle for idea-gradle 2020-03-16 18:40:41 +07:00
Dmitry Gridin dd6abec660 i18n: rewrite bundles with AbstractKotlinBundle 2020-03-16 18:40:40 +07:00
Dmitry Gridin 35f4ff000b i18n: add bundle for idea-gradle 2020-03-16 18:40:40 +07:00
Dmitry Gridin 3aa97643f5 i18n: add bundle for idea-core 2020-03-16 18:40:40 +07:00
Dmitry Gridin d644214251 i18n: add bundle for ide-common 2020-03-16 18:40:40 +07:00
Dmitry Gridin 7e3c07865c i18n: add bundle for formatter 2020-03-16 18:40:40 +07:00
Dmitry Gridin c8c316c379 i18n: introduce AbstractKotlinBundle 2020-03-16 18:40:40 +07:00
Sergey Igushkin e1ec53d4e9 Filter kapt generate stubs classpath for non-existent entries (KT-37241) (#3192)
Issue #KT-37241 Fixed
2020-03-16 14:16:35 +03:00
Vladimir Dolzhenko 364d97e950 Invalidate partialBodyResolveCache on OCB instead of PSI modification
#KT-37466 Fixed
2020-03-16 11:14:50 +00:00
Vladimir Dolzhenko 9fdf8530ff Add checkCanceled in loops in KotlinImportOptimizer to avoid freezes
#KT-37301 Fixed
2020-03-16 11:08:19 +00:00
Vladimir Dolzhenko ce9297c5d6 Be able to find annotated property accessor
#KT-37494 Fixed
2020-03-16 11:07:09 +00:00
Roman Golyshev 04ef1081b3 Disable stats-collector dependency for Android Studio
- AS40 has platform >= 193, but has no `stats-collector` plugin in it,
which caused build errors
2020-03-16 13:09:42 +03:00
Kirill Shmakov 5474d5f1d3 Support debug in Gradle tasks responsible for K/N tests 2020-03-16 12:20:29 +03:00
Igor Chevdar a1eff7f4af [IR] Set source offsets in SAM lowering
This is needed for debug info generating in K/N
2020-03-16 11:58:36 +03:00
Vladimir Ilmov 9904304e07 (CoroutineDebugger) StackFrameInterceptor service added to KotlinPositionManager, dependency cleanup 2020-03-15 14:37:15 +01:00
Vladimir Dolzhenko 0af61293d5 Fix ExtensionTestUtil compilation for 191; CustomUsageSearcherTest compilation for 201
Relates to #KT-36657
2020-03-14 22:41:31 +01:00
Alexander Udalov 57fd449288 Minor, add check of const field modifiers to codegen test
#KT-29885
2020-03-13 23:26:12 +01:00
Roman Golyshev 1e3e791d43 Fix compilation error in MLCompletionForKotlin bunch files
- Remove leftover `override` modifier
2020-03-13 22:26:24 +03:00
Sergey Igushkin a0aeb1554d Filter kapt generate stubs classpath for non-existent entries (KT-37241)
Issue #KT-37241 Fixed
2020-03-13 21:53:02 +03:00
Dmitriy Novozhilov 9daed1f2c6 Revert "[FIR-TEST] Move FIR ide tests to separate module"
This reverts commit 9955f342c0.
2020-03-13 20:51:41 +03:00
pyos bdd88e1655 JVM_IR: place suspend markers in faux lambdas around inline references
Otherwise, the assumption that coroutine codegen makes about every
inlined function already having the markers breaks and it is no longer
true that calls to inline lambdas do not require them.
2020-03-13 18:33:41 +01:00
Roman Golyshev f29e665dce Add "ML completion for Kotlin" experimental feature checkbox
- This checkbox should be shown only in IDEA >= 193 and should not
be shown in AS
- ML completion is enabled with `CompletionMLRankingSettings`, which
resides in `com.intellij.stats.completion` plugin that is bundled by
default
  - The `<depends>` section is required to be able to use classes from
  this plugin inside Kotlin plugin
- `CompletionMLRankingSettings` have package-private setter for enabling
ranking completion, so we have to use reflection to enable it (it will
probably change in the future)
2020-03-13 18:09:32 +03:00
Roman Golyshev 4c6ea7c26a KT-36808 Sink down member function Flow.collect in the completion
- This method is never supposed to be called, so we try to lower its
presence in the completion list by puting it on the last possible
position
- ^KT-36808 Fixed
2020-03-13 18:05:29 +03:00
Roman Artemev d27954a6d4 [IR] Use erased types in backing field initializer in case of generic delegated property
- Since neither IrProperty nor IrField is Type Parameter container
 using of proprty's type parameter in IrField related code leads to
 creation of "hanging" type parameters which should be considered as
 incorrect IR.
 - Such code designed to be prohibited in LV 1.5
 - The fix makes use of erased type in such case
 where type parameter is expected.
2020-03-13 17:28:31 +03:00
Roman Artemev 13a73b67de [IR] Fix IrPropertyReference for delegated property
- Make sure that property CR passed to `getValue` doesn't have type
 arguments.
2020-03-13 17:28:30 +03:00
Roman Artemev 34c17e2bed [KLIB] Add regression to about VarAsFun type parameter leak 2020-03-13 17:28:30 +03:00
Roman Artemev 8c1772d623 [KLIB] Add regression test 2020-03-13 17:28:30 +03:00
Vladimir Dolzhenko 09239743c1 Fix compilation KotlinCopyPasteReferenceProcessor for 191, 192 2020-03-13 13:13:15 +01:00
Vladimir Dolzhenko 123311007b Fix compilation CustomUsageSearcherTest for 191, 201 2020-03-13 13:11:21 +01:00
Dmitriy Novozhilov 31776d9a3b [CFA] Mark arguments of all annotation calls as USED_AS_EXPRESSION
Also revert hacky fix of KT-37294 introduced in 80caa063b
#KT-37447 Fixed
2020-03-13 14:32:28 +03:00
Dmitry Gridin b9ffed3f04 Replace ConfigurationFactory with SimpleConfigurationType
#KT-36781 Fixed
2020-03-13 17:56:10 +07:00
Alexander Udalov 43d6ddd405 Minor, fix typo in KotlinChunk.kt
#KT-37159 Fixed
2020-03-13 11:06:46 +01:00
Mikhail Glukhikh 20c4a7b244 [FIR2IR] Introduce staged transformation (first step)
Now FE IR -> BE IR transformation is performed in multiple stages
controller by Fir2IrConverter. Stages are
 * files & classes registration
 * supertypes & type parameters handling
 * functions & properties signature generation
 * body generation

After each step we have guarantee (with exception of local classes &
type inference combination, and external symbols) that required symbols
(class/function/property/variable/type parameter)
are already bound to real declarations and have correct parents.

This commit also fixes incorrect parents for local classes
2020-03-13 12:18:02 +03:00
Alexander Udalov a9f7ff254b Add -Xno-optimized-callable-references to disable KT-27362 optimization
This argument is useful in situations where the stdlib version which the
code compiles against is different from the one which is available at
runtime, such as the case of kotlin-gradle-plugin, which depends on the
compiler/stdlib compiled by 1.4, but may be executed in Gradle where
only 1.3.x is available.

 #KT-37435
2020-03-13 10:07:22 +01:00
Vladimir Dolzhenko ae4629a5a6 Fetch analysis results if it is available
The general idea is to try to fetch a full analysis if it is existed in PerFileAnalysisCache instead of go to ResolveElementCache and do analysis there. Do not perform analysis if it is not in PerFileAnalysisCache.

#KT-37467 Fixed
2020-03-13 09:25:28 +01:00