Commit Graph

60655 Commits

Author SHA1 Message Date
Alexander Udalov 26f435eb90 JVM IR: mute tests which fail after advancing language to 1.4 2020-01-17 12:07:30 +01:00
Alexander Udalov e7864c7351 Fix inlineCallsStaticMethodFromOtherPackage.kt by disabling related language feature
This test is not possible for 1.4, where protected calls from public
inline functions are prohibited.
2020-01-17 12:07:30 +01:00
Sergey Rostov 6ac21856cc NodeJsRootExtension, YarnRootExtension: introduce configuration phase
Some properties were calculated based on yarn and nodeJs version. So,
when version is changed properties were not updated. This change moves
calculation to the end of configuration phase and adds assertion to
ensure that version and other poperties are not changed
after configuration was done.
2020-01-17 13:44:57 +03:00
nataliya.valtman 9c08ea3bf1 Gradle: introduce CleanabeStore 2020-01-17 13:44:56 +03:00
Vladimir Dolzhenko c0c929c449 ProgressIndicatorUtils.kt for 191 is added
Relates to #KT-33939
2020-01-17 11:39:44 +01:00
Roman Golyshev 4b50fb18fb KT-35258 Add better completion for MixedNamedArgumentsInTheirOwnPosition feature
- When named parameter is on its own position, the completion of the next argument will not be limited by named arguments only
- The completion will not suggest already used arguments names
- ^KT-35258 Fixed
2020-01-17 12:06:08 +03:00
Roman Golyshev bd713db70e KT-35258 Refactor mapArgumentsToParameters
- We assume that, if method has no stable parameters names, `parametersByName` should be empty
2020-01-17 12:01:44 +03:00
pyos 82ddd700ce JVM_IR: patch parents of defaults in MemoizedInlineClassReplacements
A minor fix for #2909
2020-01-17 11:03:04 +03:00
Dmitriy Novozhilov da4807e6b8 Disable AllowNullableArrayArgsInMain in corresponding run configuration tests 2020-01-17 10:48:20 +03:00
Dmitriy Novozhilov 76b3964e96 Update testdata according to change compiler version to 1.4 2020-01-17 10:33:50 +03:00
Nikolay Krasko 5bfb92661e More version updates 2020-01-17 10:33:50 +03:00
Nikolay Krasko 7fa8c982b4 Advance version to 1.4 in libraries 2020-01-17 10:33:50 +03:00
Nikolay Krasko ca49672a7a Advance version to 1.4 2020-01-17 10:33:50 +03:00
Ilya Matveev 55e97fee09 Gradle, native: Don't use an arg file when compiler daemon is enabled
We pass compiler flags using an arg file if the compiler is executed
in a separate process because Windows limits maximal command line
length (see https://github.com/JetBrains/kotlin-native/issues/1999).

But for the compiler daemon we pass the args directly to the compiler
entry point method. So we can abandon using an arg file here.
2020-01-17 12:44:37 +07:00
Ilya Matveev 8158d34bda Gradle, native: Escape spaces in K/N compiler args
We use an argument file to pass arguments to the K/N compiler.
Earlier each line of such a file was treated by the compiler
as a separate argument. But this logic was updated some time
ago and now content for this file is treated as a space separated
list of arguments.

This patch takes this into account at the Gradle side and quotes
arguments written to the arg file.

Issue #KT-35934 Fixed
2020-01-17 12:44:37 +07:00
Vladimir Ilmov a2a3ca0558 Flaky ConcurrentModificationException in NewMultiplatformProjectImportingTest.testFileCollectionDependency fixed 2020-01-16 22:09:21 +01:00
Abduqodiri Qurbonzoda 3cad1bbb51 Create method Collection.randomOrNull() #KT-35347 2020-01-16 22:25:53 +03:00
Nikolay Krasko 80d5723a07 Advance version to 193.5662.53 2020-01-16 20:37:58 +03:00
Nikolay Krasko b4ae1645ec Mute TCServiceMessageOutputStreamHandlerTest for 193 platform (KT-35938) 2020-01-16 20:37:58 +03:00
Nikolay Krasko fd8ff463bb JUnit 4 runner for ignoring muted tests 2020-01-16 20:37:58 +03:00
Nikolay Krasko 6963c81b40 Run tests in kotlin-gradle-plugin in repository working dir
Unify with other modules and make GradleNodeModuleBuilderTest work under
JPS.
2020-01-16 20:37:57 +03:00
Vyacheslav Gerasimov 9b7e904390 Delete gradle wrapper validation workflow
Workflows are not enabled in JetBrains organization yet
2020-01-16 18:28:48 +03:00
Vyacheslav Gerasimov a0e73bffa0 Build: Add kotlinPluginPublication to idea-gradle-tooling-api 2020-01-16 18:26:20 +03:00
Vladimir Dolzhenko 5730a21e7b Reworked k2k copy-paste action.
Get rid of resolve from copy phase, paste phase performs resolve in bg

#KT-33939 Fixed
2020-01-16 15:59:37 +01:00
Roman Golyshev 9f15c0f4d7 Add commentary about inserting type for lateinit var in completion
- Also, use dedicated method to check modifier
2020-01-16 17:38:01 +03:00
Mikhail Zarechenskiy 4f74515508 [NI] Fix CST calculation for covariant type projections 2020-01-16 17:18:20 +03:00
Vladimir Ilmov 082cbae74a Revert "Flaky ConcurrentModificationException in NewMultiplatformProjectImportingTest.testFileCollectionDependency fixed"
This reverts commit af71955fde.
2020-01-16 15:02:14 +01:00
Jonathan Leitschuh 7da26ce705 Add pull_request to list of actions 2020-01-16 16:48:57 +03:00
Jonathan Leitschuh 19e989bc61 Official Gradle Wrapper Validation GitHub Action
See: https://github.com/gradle/wrapper-validation-action
2020-01-16 16:48:57 +03:00
pyos 6e6f4d0503 IR: close over the set of captured type parameters 2020-01-16 16:37:40 +03:00
Ilya Gorbunov e9cea3358d Do not use libraryJarWithoutIr as runtime output artifact
This avoids having both libraryJarWithoutIr and default jar artifact,
which points to the same path as libraryJarWithIr, in the dependent
projects' classpath.
Use libraryJarWithIr instead.
For local builds where libraryJarWithIr doesn't contain any IR, this
should have the same effect.
2020-01-16 16:01:56 +03:00
Ilya Gorbunov 3fabf9b6ad Add dependency in disabled jar task on custom libraryJarWithIr
jar task is disabled, but its artifact is still used through
the runtime configuration in the other projects.
In fact, dependent projects get both
libs/kotlin-stdlib-js-1.3-SNAPSHOT.jar
lib/dist/kotlin-stdlib-js-1.3-SNAPSHOT.jar
in their classpath.

However the former artifact is built with libraryJarWithIr task after
jar task is skipped. This leads to a situation during the parallel build
that a dependent project tries to read that artifact
when libraryJarWithIr task writes it.

This commit adds a dependency edge between the disabled jar and custom
libraryJarWithIr tasks, so that the artifact is ready by
the moment jar task has finished.
2020-01-16 16:01:55 +03:00
Ilya Gorbunov 3d7c7c4656 Add problem zip file name when unable to open it 2020-01-16 16:01:55 +03:00
Ilya Gorbunov 09b1960dd0 Regenerate stdlib sources: update copyright year 2020-01-16 15:57:06 +03:00
Ilya Gorbunov 30bdd463ad Do not lower SinceKotlin version for unsigned arrays extensions if they already has some 2020-01-16 15:52:35 +03:00
Ilya Gorbunov 9566f329f0 Mute FIR test failures and adjust failing test data due to KT-35948 2020-01-16 15:36:19 +03:00
Ilya Gorbunov 0f6df5971b Mute tests failing in JS_IR backend due to KT-35944 2020-01-16 15:36:16 +03:00
Ilya Gorbunov ac7e54f651 Improve terminological consistency in KClass docs 2020-01-16 15:36:13 +03:00
Ilya Gorbunov 71d847841e Use real kotlin-stdlib jar in addKotlinReflect configuration test
The presence of "Add kotlin-reflect.jar..." action depends on whether the API
that requires full kotlin-reflect is actually resolved. Since builtins now
do not contain the entire JVM reflect API, but rather the common one,
we need a real kotlin-stdlib instead of dummy one to have 'KProperty1.getter'
symbol resolved.
2020-01-16 15:36:10 +03:00
Ilya Gorbunov 3a78ab6d40 Do not use qualifiedName property in KClass.cast function, because it's not supported in K/JS
Introduce an internal property that returns either qualified or simple name, and use it instead.
2020-01-16 15:36:07 +03:00
Ilya Gorbunov 43e08a5717 Specify some real kotlin version in maven configuration test
Now availability of the configuration quick fix depends on
whether the unavailable reflect declaration are actually resolved,
and for that we need a dependency on stdlib.
2020-01-16 15:36:05 +03:00
Ilya Gorbunov b3ecf84c43 Improve unexpected declaration exception message 2020-01-16 15:36:02 +03:00
Ilya Gorbunov ac790bea71 Reorganize diagnostics tests with stdlib and reflect
DiagnosticsTestWithStdLib now require stdlib only.
Move test data accordingly.
The only test that required kotlin-reflect is transformed into
codegen box test.
2020-01-16 15:35:58 +03:00
Ilya Gorbunov ec6fdc5d4d Fix noStdlib cli test
Replace 'isExternal' with 'name', since 'name' is still available in builtins and 'isExternal' is only accessible with a proper stdlib dependency.
2020-01-16 15:33:16 +03:00
Ilya Gorbunov 8af43155c3 Remove reflect API not actually supported in K/JS
#KT-32186
2020-01-16 15:33:16 +03:00
Ilya Gorbunov 562bac3f6f Copy JVM reflect declarations to JS 2020-01-16 15:33:16 +03:00
Alexander Udalov 0815ed2cbd JVM IR: do not load KDeclarationContainer from builtins
Like other classes declared in the standard library, construct a mock of
it in JvmSymbols. This is needed to move classes in kotlin.reflect out
from builtins and to the JVM part of the standard library.
2020-01-16 15:33:15 +03:00
Ilya Gorbunov ea95aabbb0 Optimistically add isInstance and qualifiedName to common KClass
Because they are used in common cast and safeCast functions
2020-01-16 15:33:15 +03:00
Ilya Gorbunov 47f78c424d Commonize KType API
Move KTypeProjection, KVariance, KClassifier, KTypeParameter to stdlib-common.

#KT-29748 Fixed
#KT-32855 Fixed
2020-01-16 15:33:15 +03:00
Ilya Gorbunov d87fb0ece0 Introduce expect KFunction in common 2020-01-16 15:33:14 +03:00