Commit Graph

36899 Commits

Author SHA1 Message Date
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
Alexey Sedunov 591910a216 Kotlin Facet: Import compiler arguments from Gradle project
#KT-15819 Fixed
 #KT-15929 Fixed
2017-01-26 18:06:14 +03:00
Alexey Sedunov dafb6f8b3c Kotlin Gradle Plugin: Provide serialized list of compiler arguments in compilation tasks 2017-01-26 18:06:13 +03:00
Mikhail Glukhikh bb54f23472 Change log updated for 1.1 2017-01-26 16:45:10 +03:00
Mikhael Bogdanov 25d75bcd8b Delegates to java defaults methods in compatibility mode 2017-01-26 14:32:33 +01:00
Mikhael Bogdanov 0006a04b01 Report warning on hided override by delegation when compile to 1.0 version 2017-01-26 14:32:33 +01:00
Alexey Tsvetkov 09a8a999c8 Correct construction of UnicastRemoteObject
#KT-15837 fixed
2017-01-26 16:07:44 +03:00