Commit Graph

50488 Commits

Author SHA1 Message Date
Alexander Udalov b66755b2d6 J2K CallBasedArgumentGenerator: rename .java -> .kt 2018-11-23 18:41:32 +01:00
Dmitriy Dolovov bdaf762d93 CLion/AppCode: Disable action items in IDE:
- Convert Java File to Kotlin File
- Decompile Kotlin To Java

Issue #KT-28345:fixed
2018-11-23 22:27:23 +07:00
Dmitriy Dolovov 597d119ab7 CLion/AppCode: New plugin versioning schema
Use -PdeployVersion=<kotlin_version> to specify Kotlin version
Use -PcidrPluginVersion=<plugin_version> to specify CLion or AppCode plugin version (default is "beta-1")
2018-11-23 22:27:23 +07:00
Dmitriy Dolovov b39656a85a CLion/AppCode: Use LLDB bindings in Kotlin/Native debugger 2018-11-23 22:27:23 +07:00
Dmitriy Dolovov 5dca9b3de5 CLion/AppCode: Re-enable specific EPs for Kotlin/Native
Issue #KT-26717
2018-11-23 22:27:23 +07:00
Simon Ogorodnik 8ed63d1c18 CLion: Patch some xml's of Java plugin to make it work more stable
To get rid of exceptions while startup and indexing
2018-11-23 22:27:23 +07:00
Simon Ogorodnik 2b3b5876aa CLion/AppCode: Use default platform for libraries, if no LibraryKind is specified
To avoid Unknown platform JVM
2018-11-23 22:27:23 +07:00
Vyacheslav Karpukhin 1b9b545643 CLion: limit plugin compatibility 2018-11-23 22:27:23 +07:00
Simon Ogorodnik a8e5c01126 CLion/AppCode: Build artifacts via compilations, not via tasks 2018-11-23 22:27:23 +07:00
Simon Ogorodnik 7f0fcf7ef1 CLion/AppCode: Do not import sourceSets with unsupported platforms 2018-11-23 22:27:22 +07:00
Simon Ogorodnik 4a99cb274b CLion/AppCode: Provide proper TargetPlatform & TargetPlatformVersion to FE 2018-11-23 22:27:22 +07:00
Simon Ogorodnik 49de7becfd CLion/AppCode: Disable module type check for Kotlin Facet adding 2018-11-23 22:27:22 +07:00
Simon Ogorodnik 64800266f5 CLion/AppCode: Provide proper default platform instead of JVM 2018-11-23 22:27:22 +07:00
Simon Ogorodnik 39b151e37b CLion/AppCode: Fix facet configuring 2018-11-23 22:27:22 +07:00
Vyacheslav Karpukhin 6dccafb469 CLion/AppCode: Move KotlinMPPGradleProjectResolver declaration from gradle-java.xml to gradle.xml 2018-11-23 22:27:22 +07:00
Vyacheslav Karpukhin 632dcc31bd CLion/AppCode: Added kotlin-ultimate repository. 2018-11-23 22:27:21 +07:00
Mikhail Zarechenskiy 7b108541a9 [NI] Add test for obsolete issue
It was fixed after c6712ff861

 #KT-25182 Obsolete
2018-11-23 17:30:37 +03:00
Mikhail Zarechenskiy 30aee3bfb6 [NI] Update test data 2018-11-23 17:30:37 +03:00
victor.petukhov 68c1e70b74 Add real literals spec tests 2018-11-23 17:24:13 +03:00
victor.petukhov 73ecde6cc3 Add boolean literals diagnostic spec tests 2018-11-23 17:24:01 +03:00
victor.petukhov 1af1eed31c Add when expression PSI spec tests 2018-11-23 17:23:51 +03:00
victor.petukhov 64f531fc93 Reorganize spec tests infrastructure code
- Add the tests mute system for the diagnostic tests
- Move the code for the test info parsing to the separate package `parsers`
- Unification of the `linked` and `not linked` spec tests
- Package structure is refactored
- Change the multiline comment format with a test information
- Actualize `PrintSpecTestsStatistic`
- Other different code improvements
2018-11-23 17:23:41 +03:00
Mikhail Glukhikh 2af9efa4a0 Fix failing test (related to KT-28381, KT-28382 commits) 2018-11-23 15:43:39 +03:00
Mikhail Glukhikh d59ea4c087 Move member to companion object: reformat 2018-11-23 15:35:19 +03:00
Mikhail Glukhikh 88cea0a88c Navigation to implementation: do not try to find expect enum inheritors
Before this commit, expect enum could find actual enum entries
as its implementation, now it cannot.
#KT-28206 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh 5502d2de6a Fix KNPE in "Move member to companion" for expect class #KT-28383 Fixed 2018-11-23 15:35:19 +03:00
Mikhail Glukhikh 41b75346fe Forbid "introduce backing property" for expect classes #KT-28382 Fixed 2018-11-23 15:35:19 +03:00
Mikhail Glukhikh 10cc4959cc Forbid "move property to constructor" for expect classes #KT-28381 Fixed 2018-11-23 15:35:18 +03:00
Andrey Uskov f960ed9a46 Fix gradle-api version in bunch 173 (KT-27337) 2018-11-23 13:43:52 +03:00
Andrey Uskov 8fc005d8fd Versions of components were moved from versions.gradle.kts to versions.properties in order to avoid unnecessary buildscript recompilation
#KT-27337 Fixed
2018-11-23 13:26:12 +03:00
Nikolay Krasko d2b0ccd341 Restrict index search to declarations visible from Java
Fix KotlinStdLibInJavaCompletionTestGenerated.testList
Regression after KotlinShortNamesCache rewrite.
2018-11-23 01:59:15 +03:00
Nikolay Krasko b79f8ff8fa Fix completion tests after "cast required" color change (KT-18089)
#KT-18089 Fixed
2018-11-23 01:59:14 +03:00
Toshiaki Kameyama d06b04f025 Add intention to convert SAM lambda to anonymous object #KT-25718 Fixed 2018-11-23 01:05:42 +03:00
Andrey Uskov eedb69b5e4 Improve diagnostics in GradleInspectionTest 2018-11-22 20:18:03 +03:00
Ilya Gorbunov cff32e46bb Provide expect declarations for String.startsWith/endWith overloads
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Mikhail Zarechenskiy b48614df47 Add test for class literals on inline classes
#KT-28361 Obsolete
2018-11-22 18:10:41 +03:00
Mikhail Zarechenskiy 7a9fb3ca26 [NI] Fix coercion to Unit for explicitly specified type argument
#KT-25424 Fixed
2018-11-22 18:10:39 +03:00
Mikhail Zarechenskiy c6712ff861 [NI] Correctly compute definitely not null type for intersection one
{ T : Any? & Foo & Bar? }!! -> { T!! & Foo & Bar }

 Also, fix bug with loosing non-representative number type.
 For example, for type { Byte & SomeType } we lost type `Byte` because
 `getDefaultPrimitiveNumberType` returns null for it

 Fixes #KT-28334 for NI
2018-11-22 18:10:37 +03:00
Mikhail Zarechenskiy aa224558bd Convert and simplify IntersectionTypeConstructor 2018-11-22 18:10:35 +03:00
Mikhail Zarechenskiy 8340bff113 Rename .java to .kt for IntersectionTypeConstructor 2018-11-22 18:08:30 +03:00
Toshiaki Kameyama f1a0cefde0 Convert concatenation to template: remove 'toString()' call #KT-6025 Fixed 2018-11-22 15:55:32 +03:00
Toshiaki Kameyama 825d1d8b35 Extract 'isToString()' function to Utils 2018-11-22 15:55:32 +03:00
Nikolay Krasko a0c25c7a87 Revert running AS in internal mode
Patch isn't needed anymore, because it was resolved in Android Studio.

Reverts: 11bcd84f57
2018-11-22 13:07:58 +03:00
Nikolay Krasko dfa0ca1192 Some better colours for unmatched elements (KT-18089)
Platform requires a single color for both selected/not-selected item and
so colour selection isn't easy (see https://youtrack.jetbrains.com/issue/IDEA-191959
for details)

 #IDEA-191959 Fixed
2018-11-22 13:07:57 +03:00
Mikhail Glukhikh d50c4d7211 Fix failing IR tests because of CCE in WrappedValueParameterDescriptor
In previous commits, renderValueParameter began to calculate its
containing declaration. However, WrappedValueParameterDescriptor
assumes that parent of IrParameter is IrFunction, which is not true
for dispatch receiver parameters. The correct fix would be not to create
WrappedValueParameterDescriptor for dispatch receivers at all and use
WrappedReceiverParameterDescriptor instead. In this fix, I just moved
parameter' containing declaration calculation inside specific option
which is usually false, thus hiding the found problem.
2018-11-22 13:03:05 +03:00
Andrey Uskov 22830ebbf8 Disable irrelevant importing tests in AS 3.3 and 3.4 2018-11-22 12:52:04 +03:00
Andrey Uskov ef6aae0f4a Migrate importing tests to new configuration management 2018-11-22 12:51:47 +03:00
Andrey Uskov 903a048fcd Enabled tests for gradle 4.9 2018-11-22 12:51:33 +03:00
Andrey Uskov 0fd9e06f8a Fix import tests after KT-27832 2018-11-22 12:51:20 +03:00
Nikolay Krasko 9a79f43a50 Restore support for 173 branch 2018-11-22 11:25:56 +03:00