Commit Graph

50757 Commits

Author SHA1 Message Date
Dmitriy Dolovov 33d89005b7 K/N fix: Built-ins initialization refactoring
- Use language settings from IDELanguageSettingsProvider
- Don't use dependencies of root modules to looks up for K/N stdlib
2018-12-06 19:05:17 +07:00
Dmitriy Dolovov 0a55c586d2 K/N fix: Use BindingTrace that allows overwriting slices
Issue #KT-21791
2018-12-06 19:05:11 +07:00
Dmitriy Dolovov d4df5e132e CLion: Hide JVM- and JS-specifics in Preferences
Issue #KT-28465:fixed
2018-12-06 19:03:43 +07:00
Andrey Uskov 273dbc823e Fix "Kotlin not configured" issue in common MPP tests.
#KT-27718 Fixed
2018-12-06 14:50:26 +03:00
Andrey Uskov 5a8621d7c7 Fix build of bunch 191 2018-12-06 14:50:05 +03:00
Mikhail Glukhikh 25f393d299 MPP JVM/JS wizard: add head & title to HTML #KT-27491 Fixed 2018-12-06 13:09:23 +03:00
Mikhail Glukhikh 6d72032b82 MPP JVM/JS wizard: upgrade Ktor to 1.0.1 (part of KT-27491) 2018-12-06 13:09:22 +03:00
Dmitriy Dolovov 782f221a9c CLion: New version 2018.3.1 (183.4588.63) 2018-12-06 16:44:50 +07:00
Roman Elizarov 75e2dfda19 Added COROUTINE_SUSPENDED docs
Fixes KT-28488
2018-12-06 11:00:32 +03:00
Natalia Selezneva 6291cfee49 Fix 'read action required' exception in scratch 2018-12-06 09:33:34 +03:00
Natalia Selezneva 9e2ff04e1b Fix build module in AndroidStudio for REPL and Scratch
^KT-23560 Fixed
2018-12-06 09:33:33 +03:00
Natalia Selezneva ee5ede08c1 Tests: do not use hardcoded stdlib jar name 2018-12-06 09:33:32 +03:00
Natalia Selezneva 7b6508a8f9 Tests: refresh file system looking for recently copied file 2018-12-06 09:33:32 +03:00
Natalia Selezneva 6d41834282 Allow file access to KotlinTestUtils.getHomeDirectory() in IdeaModuleInfoTest 2018-12-06 09:33:31 +03:00
Natalia Selezneva f3328b119c Fix missing changes in bunch files in ConfigureKotlinTest 2018-12-06 09:33:30 +03:00
Natalia Selezneva d25c4a8d3e Rewrite ConfigureKotlinTest.testJsLibraryWrongKind
After the fix of KT-20511 we now detect library kind from it's jars, so even if LibraryKind is not set, it's effective kind is JSLibraryKind for this test
2018-12-06 09:33:30 +03:00
Natalia Selezneva 7d66e3f6f2 Fix AbstractExtractionTest for scripts
It fails with 'Descriptor wasn't found for declaration SCRIPT' because PsiElement was invalidated during test because of restaring highlighting in case of new script dependencies
2018-12-06 09:33:29 +03:00
Toshiaki Kameyama 9ee9965c7a Convrt anonymous function to lambda: fix incorrectly conversion
#KT-28618
2018-12-06 09:28:56 +03:00
Toshiaki Kameyama f6323cdee4 Replace assert boolean with assert equality: add import statement
#KT-28540 Fixed
2018-12-06 09:27:35 +03:00
Dave Leeds 6ff3ae3447 KT-20357: Add samples for commonPrefixWith and commonSuffixWith 2018-12-05 19:21:57 +03:00
Ilya Chernikov 6e27bc0fb3 Fix scratch testdata after introducing result vals into repl 2018-12-05 16:02:31 +01:00
Ilya Chernikov 8e72495ded Add repl line result tests, refactor repl tests 2018-12-05 16:02:30 +01:00
vitaly.khudobakhshov 396ba6cdd5 Display function value properly 2018-12-05 16:02:29 +01:00
vitaly.khudobakhshov c901d6cebc Implement support for "resX" result fields in REPL 2018-12-05 16:01:32 +01:00
Nikolay Krasko 79e577ae27 Remove unused deprecated configureAs methods 2018-12-05 17:46:31 +03:00
Nikolay Krasko 9cc88c13f5 Rewrite KotlinHierarchyViewTestBase with light fixture tests 2018-12-05 17:46:30 +03:00
Nikolay Krasko 5055308064 Rewrite AbstractNavigateToLibraryTest with light fixture tests 2018-12-05 17:46:28 +03:00
Nikolay Krasko 8a63a1655f Rewrite NavigateToStdlibSourceTest with project descriptors 2018-12-05 17:46:26 +03:00
Vyacheslav Gerasimov 96282b3c52 Update 183 platform to 183.4588.61 (2018.3.1) 2018-12-05 16:44:09 +03:00
Denis Zharkov e88ed25f26 Support targeted annotations on property accesors in ultra-light classes 2018-12-05 16:34:44 +03:00
Denis Zharkov 52d5143dd7 Support delegating to interfaces in ultra-light classes 2018-12-05 16:34:44 +03:00
Denis Zharkov dbf9ff29a9 Support data classes in ultra-light classes 2018-12-05 16:34:44 +03:00
Denis Zharkov 8b65311769 Minor. Extract KtUltraLightMethodForSourceDeclaration 2018-12-05 16:34:44 +03:00
Denis Zharkov b73760c3fc Get rid of redundant method KtUltraLightParameter::annotatedOrigin 2018-12-05 16:34:44 +03:00
Denis Zharkov bbaa4c225d Introduce subclasses for KtUltraLightParameter
Mostly, it's needed for clarity and to simplify
what exactly `kotlinOrigin` means in each case:
- Note, that annotatedOrigin() is always kotlinOrigin
- We don't need to store another field for receiver
- Now, kotlinOrigin is consistent with KtLightParameter::kotlinOrigin
2018-12-05 16:34:44 +03:00
Denis Zharkov ad2f02b12e Minor. Get rid of redundant is check and unused method
Now, nullability for ultra-light elements is processed via KtUltraLightNullabilityAnnotation
2018-12-05 16:34:44 +03:00
Denis Zharkov 28d3a62567 Separate nullability annotation processing for ultra-light classes
KtLightNullabilityAnnotation is specifically designed for old light classes
and includes a bunch of hacks that are applicable for them

So, we have to introduce own hack into it
(see org.jetbrains.kotlin.asJava.classes.KtUltraLightParameter#getTypeForNullability)
that is a bit of hard to support when extending hierarchy
2018-12-05 16:34:44 +03:00
Denis Zharkov 30c60c7b1f Do not render nullability in UltraLightChecker when it's irrelevant
It's necessary because after next changes,
they become different for ultra and old light classes.
The former (ultra) is more correct but it doesn't help when
we need to compare our implementation with reference
2018-12-05 16:34:44 +03:00
Denis Zharkov d7d0407afb Fix parameters nullability for generated overloads in light classes
When making KtLightNullabilityAnnotation after test org.jetbrains.kotlin.idea.caches.resolve.IdeLightClassTestGenerated.NullabilityAnnotations#testJvmOverloads
started failing the wrong assumption was made that for
@JvmOverloads-generated overloads their last parameter is always nullable
(see removed isNullableInJvmOverloads function) and that lead to a bug,
namely KT-28556.

The actual problem of this test started failing was incorrect definition
of kotlinOrigin in KtLightParameter for case of JvmOverloads:
wrong KtParameter was being chosen before

This commit fixes the issue by propagating how actually generated
parameters in codegen relate to source KtParameters'

^KT-28556 Fixed
2018-12-05 16:34:44 +03:00
Denis Zharkov ac19cc9376 Extract kotlinType property in KtUltraLightField
It's gonna be used in the later commits

Also simplify a bit related code in `_type` initializer:
it seems safe just to map `kotlinType` as is for all non-trivial cases,
also note that all of them are actually generated without generic signature
2018-12-05 16:34:44 +03:00
Denis Zharkov efc39c6137 Minor. Reformat KtLightModifierList.kt and make function private 2018-12-05 16:34:44 +03:00
Vyacheslav Gerasimov 508fe28781 Build: Add NoDebugJavaExec to filter out debugger arguments added by Idea
Workaround for IDEA-200192:
IDEA makes all JavaExec tasks not up-to-date and attaches debugger making our breakpoints trigger during irrelevant task execution
2018-12-05 16:23:25 +03:00
Leonid Startsev f2e27da5bb Support @SerialInfo annotation for Native 2018-12-05 15:16:17 +03:00
Leonid Startsev 13af036024 Fix problem with encodeUnitElement : Unit instance is not needed in Native IR 2018-12-05 15:16:16 +03:00
Leonid Startsev b775501042 Translate KClass references to built-in types in serialization plugin correctly.
Add overload with ClassDescriptor to `getPrimitiveClass` translation function and increase it visibility to public to be usable from plugin.
2018-12-05 15:16:15 +03:00
Leonid Startsev 5f2cea917f Remove redundant check for 'all parameters are properties' in a case of fully-customized serializer 2018-12-05 15:16:15 +03:00
Leonid Startsev 7e32e2e9b9 Increase priority of @ContextualSerialization annotation on types 2018-12-05 15:16:14 +03:00
Leonid Startsev f13f54d5ad Fix "kotlin.UninitializedPropertyAccessException: lateinit property typeTranslator has not been initialized" in Native IR serialization plugin 2018-12-05 15:16:13 +03:00
Leonid Startsev 7c8b34fe1c Fix unresolved symbol to SerialDescriptor in KSerializer if it was
referenced from user custom serializer code (kotlinx.serialization/290)
2018-12-05 15:16:12 +03:00
Leonid Startsev 58c145210c Support for @UseSerializers annotation 2018-12-05 15:16:11 +03:00