Commit Graph

45134 Commits

Author SHA1 Message Date
Yan Zhulanow 4cab250f72 Pill: Add marker option for JUnit3RunnerWithInners test runner 2018-04-02 19:26:39 +03:00
Yan Zhulanow 46973bf1fe Kapt: Do not escape cyrillic letters in stubs (#KT-23286) 2018-04-02 19:26:37 +03:00
Yan Zhulanow ae3d574473 Pill: Support Android tests 2018-04-02 19:26:35 +03:00
Yan Zhulanow ead7653f84 Minor: Fix Parcelable test data 2018-04-02 19:26:34 +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 39e9d28c63 Kapt: Support 'kapt.kotlin.generated' option in Maven 2018-04-02 19:26:26 +03:00
Yan Zhulanow b1d7935d4a Kapt: Annotation processors should not be discovered when the processor fqNames are set by user (#KT-22939) 2018-04-02 19:26:24 +03:00
Yan Zhulanow dc8eb7446f Kapt, minor: make Gradle API a bit cleaner 2018-04-02 19:18:45 +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 b664177bd5 EA-100549: Throw an exception with an additional data instead of Java assertion 2018-04-02 19:16:03 +03:00
Yan Zhulanow ec0abb0854 Fix EA-79206: Process only valid layout .xml files in Android Extensions 2018-04-02 19:15:48 +03:00
Yan Zhulanow c8a1517190 Fix EA-113820: Accept also nullable elements in 'getRelevantElement()' 2018-04-02 19:15:33 +03:00
Yan Zhulanow 2b0489529d Fix compatibility for compiler API in DeclarationAttributeAltererExtension (EA-114961) 2018-04-02 19:14:52 +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
Elifarley C 1b3d539a25 toBigDecimal: Avoid creating new BigDecimal instance for some values
Avoid creating new `BigDecimal` instance by calling `BigDecimal.valueOf(this)`, which doesn't create a new instance if the argument falls in the range [0..10].
(there's a `private static final BigDecimal[] zeroThroughTen` cache in BigDecimal.java with 11 BigDecimal instances)
2018-04-02 15:26:49 +03:00
Mikhail Zarechenskiy e1d75d5581 Migration fixes for new inference 2018-03-30 20:39:55 +03:00
Mikhail Zarechenskiy ae35a3b324 Enable new inference in the compiler 2018-03-30 20:39:55 +03:00
Mikhail Zarechenskiy 152a9a21f9 Make type parameter nullable as it should be
This change is needed, because in NI we perform a more strict check
2018-03-30 20:39:54 +03:00
Mikhail Zarechenskiy 3592b19fa4 Update bootstrap to 1.2.50-dev-310 2018-03-30 20:39:54 +03:00
Vyacheslav Gerasimov 10c14260b1 Build: Fix dependency on markdown in :prepare:idea-plugin
org.jetbrains:markdown brings kotlin-stdlib dependency transitively, which resolves to default configuration of :kotlin-stdlib project. But we need to pack jar from distJar configuration. Also sourceSets.builtins.output is copied to plugin because :kotlin-stdlib has compile dependency on it. Probably we should also refactor :kotlin-stdlib to avoid such confusions in future.
2018-03-30 20:10:20 +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
Ilya Gorbunov d2a235b752 Minor code improvements, add more test cases #KT-11208
Compare new readLine with the reference implementation in BufferedReader.
2018-03-30 16:04:22 +03:00
meztihn 12e427b4b5 KT-11208 Remove readLine's new charset parameter
It can't be introduced in a patch release.
2018-03-30 16:03:19 +03:00
meztihn cca7a59bba KT-11208 Improve readLine's tests readability 2018-03-30 16:03:19 +03:00
meztihn 68cb66ff0e KT-11208 Remove readLine's lineSeparator parameter 2018-03-30 16:03:19 +03:00
meztihn f6c1886394 KT-11208 Remove stream buffering 2018-03-30 16:03:19 +03:00
Ilya Gorbunov f45e3ac7d9 kotlin-stldib-js: do not import experimental sourceset in IDEA
Temporary workaround to prevent multiple IDEA modules sharing the same content root error.
2018-03-30 16:03:19 +03:00
Sergey Mashkov 42de429565 IDL2K: add property to control deployment 2018-03-30 15:13:42 +03:00
Mikhail Zarechenskiy 0632bbbed0 Nullability of intersection type should be determined by supertypes
Intersection types cannot be nullable as is because of special rules for subtyping
2018-03-30 14:51:07 +03:00
Mikhail Zarechenskiy aebcb61402 Resolve elements in chain of qualifier expression without expected type
Consider call chain `foo.bar.baz()` which has expected type `Int`
Elements `foo` and `bar` doesn't have expected type `Int`,
this is especially important in NI, because we use expected type for
candidate applicability
2018-03-30 14:51:07 +03:00
Natalia Selezneva 3d73786e98 Highlight scripts according to ScriptLocation annotation in ScriptDefinition 2018-03-30 14:43:17 +03:00
Natalia Selezneva 15914dac86 Add ScriptExpectedLocations annotation to script-runtime.
It describes where script file can be found.
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
Anton Bannykh a514c0f515 JS IR: initial lowerings reuse 2018-03-29 20:32:10 +03:00
Nikolay Krasko 6adf7eaf04 Check stubs consistency in decompiler tests 2018-03-29 19:49:02 +03:00
Nikolay Krasko dbab5bcc58 Delete bundled Kotlin plugin from different kind of AS jar/zip 2018-03-29 19:49:01 +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