Ilya Gorbunov
700e6fc5e3
Extract carrier value from continuation result
...
Otherwise incorrect type gets into continuation: SuccessOrFailure<T> instead of T.
2018-09-07 01:28:32 +03:00
Ilya Gorbunov
2821c357a1
Switch coroutine tests to release coroutines
2018-09-07 01:03:53 +03:00
Ilya Gorbunov
df9f77909b
Make experimental COROUTINE_SUSPENDED refer to corresponding release one
...
Partially reverts commit 20c7a97 .
Apply workaround for KT-25003 once again for the new COROUTINE_SUSPENDED
2018-09-07 01:03:53 +03:00
Ilya Gorbunov
e22ca022d4
Switch sourcesets of experimental and release coroutines
...
- Move experimental coroutines out of the main source root.
- Include experimental coroutines into the coroutines source set.
- Include release coroutines into the main source set.
2018-09-07 01:03:53 +03:00
Ilya Gorbunov
82d35cfa26
Change signed to unsigned widening conversions to sign-extending
...
e.g. `Byte.toUInt()` now returns `UInt.MAX_VALUE` for Byte value of -1 instead of 0xFFu.
#KT-26594 Fixed
2018-09-06 21:25:42 +03:00
Ilya Gorbunov
4344005fb5
Deprecate synchronized function in common stdlib #KT-26595
2018-09-06 21:15:31 +03:00
Ilya Chernikov
34569071b3
[minor] rename function
2018-09-06 19:17:45 +02:00
Ilya Chernikov
ba2e08c014
Make property collection serializable (with runtime check)
2018-09-06 19:17:45 +02:00
Ilya Chernikov
ae107339fd
Implement compiled script caching with tests
2018-09-06 19:17:45 +02:00
Ilya Chernikov
836ea28fe7
Renaming remaining former "environment"-related identifiers
2018-09-06 19:17:44 +02:00
Ilya Chernikov
7860220e76
Add simple jvm scripting host test
2018-09-06 19:17:44 +02:00
Ilya Chernikov
6c60e38260
Add compatibility with templates from script-runtime...
...
and add script-runtime to the compilation classpath by default
2018-09-06 19:17:44 +02:00
Ilya Chernikov
6716c512d3
[minor] Rename too long named functions
2018-09-06 19:17:43 +02:00
Ilya Chernikov
a52b57eecf
Drop currently unused REPL part of the API
2018-09-06 19:17:43 +02:00
Ilya Chernikov
67ba8b5361
Rename ScriptSource to SourceCode, extract location to another i-face...
...
other related refactorings. The goal - make interface terminologically
more suitable for usage in REPL.
2018-09-06 19:17:43 +02:00
Ilya Chernikov
1e85a26b62
Fix evaluation part of the scripting API - mostly renaming
2018-09-06 19:17:43 +02:00
Ilya Chernikov
539e0f4961
[minor] switch to project dependencies in scripting projects
2018-09-06 19:17:43 +02:00
Ilya Chernikov
8674cd7a6b
Fix scripting tests
2018-09-06 19:17:43 +02:00
Ilya Chernikov
d6590d4fa3
Scripting examples refactoring
2018-09-06 19:17:43 +02:00
Ilya Chernikov
f159a686df
Fix compiled script caching interface
2018-09-06 19:17:42 +02:00
Ilya Gorbunov
0eb5bf21e9
Fix maven plugin smoke test
...
- Do not use default encoding to avoid warnings in logs
- Update 'Downloading'/'Downloaded' filters to new maven version
2018-09-06 20:07:54 +03:00
Ilya Matveev
5cb8108eec
Add builtBy for Kotlin/Native platform libs dependency
2018-09-06 22:59:27 +07:00
Sergey Igushkin
699cff27a7
If a target has no main compilation, don't create a sources JAR
...
Currently, Android libraries are not published as a part of an MPP
library, and building no sources JAR for them is OK.
Issue #KT-26390
2018-09-06 22:59:27 +07:00
Ilya Matveev
779030da1b
Don't use Kotlin/Native home path in up-to-date checks
2018-09-06 22:59:27 +07:00
Ilya Matveev
7b51cfa804
Workaround duplicated libraries for native in IDE
2018-09-06 22:59:27 +07:00
Ilya Matveev
48d8f5eb39
Add libraries provided by the K/N compiler in dependencies
2018-09-06 22:59:27 +07:00
Ilya Matveev
e433778268
Switch to Kotlin/Native 0.9
2018-09-06 22:59:27 +07:00
Sergey Igushkin
7ff53deea5
Generate and publish *-sources.jar for each target
2018-09-06 22:59:27 +07:00
Sergey Igushkin
36a81acb5d
Fixes for new MPP publishing
...
* Generate the JARs with the same names as they are published.
Put the target name in the JAR name's appendix instead of classifier.
* Configure Maven publications eagerly to allow their editing by user.
* Take KotlinVariant's coordinates from the MavenPublication.
If the user changes Maven coordinates of the publication, this ensures
the parent component to have the updated information.
2018-09-06 22:59:27 +07:00
Ilya Matveev
440f6996d2
Fix wasm binary output paths
2018-09-06 22:59:27 +07:00
Ilya Matveev
36e8f84797
Add test for static/shared library building
2018-09-06 22:59:27 +07:00
Ilya Matveev
bef898509d
Allow using strings to set native output kinds
2018-09-06 22:59:27 +07:00
Ilya Matveev
cfe7858229
Support static and shared libraries for native in kotlin-mpp
2018-09-06 22:59:27 +07:00
Ilya Matveev
0a685d57c2
Add macos in targets for new MPP integration tests
2018-09-06 22:59:27 +07:00
Sergey Igushkin
577bae763c
Add tests for Kotlin/Native in new MPP
...
* Add K/N variants to the general MPP tests
* Also check the separated publishing
2018-09-06 22:59:27 +07:00
Sergey Igushkin
67bd659390
Fallback to publishing with coordinates inferred from publication
...
In Gradle < 4.7, there's no `ComponentWithCoordinates` interface, and we
need to make sure that none of our classes implementing this interface
are loaded with older Gradle versions.
Instead of that interface, we can rely on Gradle's metadata generation
heuristic that takes Maven coordinates for the variants from the
corresponding publications.
2018-09-06 22:59:27 +07:00
Ilya Matveev
091e680196
Fix validation warning for Kotlin/Native compilation task
2018-09-06 22:59:27 +07:00
Ilya Matveev
ed7da870cf
Rename test tasks for native targets
2018-09-06 22:59:27 +07:00
Ilya Matveev
c23296a0d8
Publish different targets as different software components
2018-09-06 22:59:27 +07:00
Sergey Igushkin
0ee19cf28f
Support -Xcommon-sources in new MPP
...
In new MPP, add source sets taking part in more than one compilation to
the tasks' `commonSourceSet` in order to pass them as -Xcommon-sources
Issue #KT-26515 Fixed
2018-09-06 12:41:02 +03:00
Sergey Igushkin
5e6148c970
Refactor & fix: add allKotlinSourceSets and use it where appropriate
...
* Some of the usages of `kotlinSourceSets` should instead get all the
source set from the source set hierarchies, i.e. including the ones
transitively-participating in the compilation
2018-09-06 12:40:32 +03:00
Sergey Igushkin
96901c5487
Move KotlinSourceSet back to org.jetbrains.kotlin.gradle.plugin.*
...
After all MPP related changes, the `KotlinSourceSet` interface turns out
compatible with the old `KotlinSourceSet`, and, since there are external
usages of `KotlinSourceSet`, it is reasonable to expose the new
interface under the old FQ-name to fix those external usages.
Issue #KT-26498 Fixed
2018-09-06 12:35:59 +03:00
Sergey Igushkin
57c4886bd4
Don't create source sets and test compilation for the metadata target
...
Issue #KT-26253 In progress
2018-09-06 12:35:58 +03:00
Mikhail Zarechenskiy
bc7f13b838
Temporarily allow equals & hashCode for SoF to compile bootstrap
...
equals & hashCode should be removed completely soon anyway
2018-09-06 10:39:34 +03:00
Ilya Gorbunov
7f8863bfd0
Update public API after inline class generation schema was changed
2018-09-06 03:56:01 +03:00
Vyacheslav Gerasimov
b868450e9a
Make dependencies on :kotlin-compiler project testRuntimeOnly everywhere
2018-09-05 22:58:31 +03:00
Ilmir Usmanov
53a1526412
Add version to DebugMetadata
...
#KT-26580 Fixed
2018-09-05 22:51:55 +03:00
Roman Elizarov
0401b4e0bb
Coroutine context shall perform structural equality comparison on keys
...
Fixes KT-26398
2018-09-05 01:29:19 +03:00
Ilmir Usmanov
cfc10ec061
Simplify debug metadata: instead of array of same values, store single element
...
This change is valid, since we want StackTraceElement to be as close
as possible to StackTraceElement of non-coroutine code.
Particularly, if the line is inside inlined function, its className,
functionName and sourceFile are inline site's ones, but lineNumber
is large, which is the way of representing inline function's line
numbers. The rest is handled by the plugin, which allows the user to choose
between inline function body and inline site.
2018-09-04 22:20:08 +03:00
Svyatoslav Kuzmich
197a5969e2
[JS IR BE] Fix stdlib files list for 1.3
2018-09-04 20:19:04 +03:00