Nikolay Krasko
370e7cd9f5
Stop considering injected files as Kotlin source roots (KT-15032)
...
We should have a special facade for them as descriptors are not
present in ordinal project facade.
Caused by change in idea 171 (https://github.com/JetBrains/intellij-community/commit/b3527d9a20f4b9391e98b426beb2548fb3efc0fe )
#KT-15032 Fixed
2017-01-27 18:00:14 +03:00
Dmitry Jemerov
1361d5e915
EA-85853 - (KT-13415) AIOOBE: LightClassUtilsKt.toPsiTypeParameters
2017-01-27 14:48:05 +01:00
Dmitry Jemerov
59e2645293
EA-82902 - IOOBE: KtLightAnnotation$LightExpressionValue.unwrapArray
2017-01-27 14:48:05 +01:00
Kirill Rakhman
956094e062
Add Merge ifs intention ( #975 )
...
Fixes #KT-9912
2017-01-27 14:20:11 +01:00
Mikhael Bogdanov
456037a30d
Generate proper annotaions on parameters for @JvmOverloads;
...
Fix for KT-15743: Overloaded Kotlin extensions annotates wrong parameters in java
#KT-15743 Fixed
2017-01-27 14:09:13 +01:00
Mikhael Bogdanov
ab464ea86e
Fix for KT-15726: Kotlin can't compile nested try-catch with return
...
#KT-15726 Fixed
2017-01-27 14:09:13 +01:00
Dmitry Jemerov
2c1c3d1f31
Workaround for compilation issue: don't use a Java shim to access token name, use toString() instead (for all relevant tokens, it will return the name, and for all others, the return value won't match the Java keyword filter regexp)
2017-01-27 13:32:20 +01:00
Dmitry Petrov
de14d4abc8
KT-15748 Type alias constructor return type should have a corresponding abbreviation
2017-01-27 15:16:04 +03:00
Ilya Gorbunov
dbaf31effe
sourceDirs exclude the original test dir, so add it explicitly.
2017-01-27 14:53:33 +03:00
Ilya Gorbunov
01f53d0173
Return NaN as an average of an empty collection.
...
#KT-15399 Fixed
2017-01-27 14:53:33 +03:00
Dmitry Jemerov
6704ba05de
Don't try to get siblings of PsiDirectory either (EA-94811 - assert: FileManagerImpl.findDirectory)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
731aeac04f
Delete quick fix which was needed to migrate users to the version of Kotlin which was the latest in 2014 (EA-93982 - assert: PsiModificationTrackerImpl.fireEvent)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
6cbb2a4491
Replace incorrect assertion with explicit check (EA-93946 - assert: UnusedSymbolInspection.hasNonTrivialUsages)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
7236aa45f2
Fix IAE when rendering unknown type (EA-89031 - IAE: SmartTypeRenderer.render)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
2342aeef49
Don't try to resolve a class with no containing file (such as LightBRClass) to descriptor (EA-91890 - (AS only, no containing file, from Java light classes) LET: GetModuleInfoKt$getModuleInfo$.invoke)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
1337a5216c
Don't try to get text for invalid file (EA-86393 - PIEAE: PsiFileImpl.getText)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
b987e37e82
Diagnostics for EA-86712
2017-01-27 12:47:41 +01:00
Ilya Gorbunov
661ff81e67
Specify names for parameters of functional types with two or more parameters to ease lambda completion.
...
#KT-13826
2017-01-27 14:46:29 +03:00
Kirill Rakhman
96d0f91afc
Implement Smart Enter handler for class body ( #1022 )
...
Fixes #KT-9011
2017-01-27 12:35:33 +01:00
Dmitry Jemerov
e6a7808d8e
Fix ConfigureKotlinUtilTest
2017-01-27 12:27:39 +01:00
Mikhail Zarechenskiy
0c6a860a22
ReplaceWith annotation resolver: use module from resolution facade to build imports scope
...
#KT-15873 Fixed
Using module from original element may lead to exceptions as it could be
<built-ins module> (after deprecation of `mod` operator)
2017-01-27 14:13:13 +03:00
Dmitry Petrov
e05f2eaff6
KT-15017 Throwing exception in the end of inline suspend-functions lead to internal compiler error
...
Suspend function call with a reachable (alive) begin marker and unreachable (dead) end marker
is an exit point for the corresponding coroutine.
It isn't a suspension point, and doesn't introduce a new state in the coroutine FSM.
2017-01-27 10:43:00 +03:00
Ilya Gorbunov
3be1174824
Replace @native with external in tests
2017-01-27 01:29:15 +03:00
Ilya Gorbunov
20f175d091
Soften back deprecation level for nativeGetter/Setter/Invoke annotations.
2017-01-27 00:48:46 +03:00
Simon Ogorodnik
4202abac63
Fix test
2017-01-26 23:19:42 +03:00
Ilya Chernikov
4bb5e978a7
Implement SamWithReceiverAnnotations annotation and it's handling (KT-15848)
...
TODO: tests
2017-01-26 20:53:24 +01:00
Simon Ogorodnik
f1c4230a68
KT-14680 import statement to typealias reported as unused when using only TA constructor
...
#KT-14680 fixed
2017-01-26 21:18:20 +03:00
Dmitry Jemerov
46bb636cea
Fix ConfigureProjectTestGenerated
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
c4032908c0
Don't show "Kotlin not configured" notifications while Gradle sync is running
...
#KT-15279 Fixed
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
ac35b182b5
KotlinConfigurationCheckerComponent: J2K
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
c6a20d39b4
KotlinConfigurationCheckerComponent: rename to .kt
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
c7ea4eead7
Add Gradle JavaScript configurator
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
c6251fdad7
Add JS variant of Gradle framework support provider
...
#KT-13632 Fixed
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
e76cd15e5b
Update different stdlib/gradle inspection to handle kotlin-stdlib-jre*
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
163cef6457
Configuring project with Maven adds kotlin-stdlib-jre7 or kotlin-stdlib-jre8 if the selected JDK is of a high enough version
...
#KT-15712 Fixed
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
7eea8f3849
Configuring project with Gradle adds kotlin-stdlib-jre7 or kotlin-stdlib-jre8 if the selected JDK is of a high enough version
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
acc19f2ab6
Don't add 'kotlin' source root to build.gradle by default
...
#KT-14830 Fixed
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
85a74f4cca
Detect version 1.1.0-beta as 1.1 prerelease
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
56bbb8ec78
Disable incompletely implemented Inline Function refactoring
2017-01-26 19:05:47 +01:00
Dmitry Jemerov
68bd5bd323
Fix project leak due to not disposed dialog
2017-01-26 18:55:17 +01:00
Dmitry Jemerov
d4af75bc50
Add write action which is required in 171 branch
2017-01-26 18:26:14 +01:00
Yan Zhulanow
bb0b70d27b
Kapt: Fix extending configurations in Gradle, create "main" configuration if it does not exist yet. Also fix checking kapt configuration dependencies, use allDependencies instead (KT-15814)
2017-01-27 02:01:04 +09:00
Yan Zhulanow
3b4a8e0f33
Kapt3: Write qualified name of classes on error type conversion, handle declaration-site variance properly.
2017-01-27 01:20:01 +09:00
Yan Zhulanow
72bbf9697b
Kapt3: As javac now reads stubs from Java files, not from AST, we should provide the valid names for all identifiers (at least names should not clash with Java keywords).
...
Rename identifiers if it clashes with Java keywords. (KT-15838)
2017-01-27 01:20:01 +09:00
Yan Zhulanow
e28b4dfbc7
Kapt3: Do not check type for star projection, it causes the infinite recursion. Also limit recursion depth to 10. (KT-15841)
2017-01-27 01:20:00 +09:00
Dmitry Jemerov
48a66c9d41
Generate Markdown documentation for Gradle options
2017-01-26 17:03:30 +01:00
Alexey Sedunov
deb9258994
Misc: Reverted 1fb90ac0fd 'Copy compiler arguments from iml even if "Use project settings" checkbox is checked' as it's rendered obsolete due to "Use project settings" being turned off by default in Gradle/Maven projects
2017-01-26 18:06:19 +03:00
Alexey Sedunov
6e8d0b520e
Kotlin Facet: Import Gradle properties defined in gradle.properties file
2017-01-26 18:06:17 +03:00
Alexey Sedunov
f8349da608
Kotlin Facet: Import compiler arguments from Maven project model
2017-01-26 18:06:16 +03:00
Alexey Sedunov
74bfaa4ffe
Quick Fixes: Change API level as well as language level in "Enable unsupported feature fix"
...
#KT-15918 Fixed
2017-01-26 18:06:15 +03:00