Ilya Chernikov
4b4186ecb2
Switch to coroutines 1.1.1
2019-04-17 22:03:59 +02:00
Ilya Chernikov
7c4efb2772
Disable ScriptingGradleSubplugin if applied in the gradle prior to 5.0
...
Allows to avoid limiting scripting infrastructure to languageVersion 1.2,
since kotlin compiler 1.3+ is bundled with gradle only starting from 5.0
2019-04-17 22:03:59 +02:00
Ilya Chernikov
72736d78e4
Drop blocking transitive dependencies following for gradle subplugins
...
fixes scripting subplugin usage, since it requires some dependencies now
2019-04-17 22:03:59 +02:00
Ilya Chernikov
f688bc5140
Add diagnostics for plugin classpath problems
2019-04-17 22:03:59 +02:00
Ilya Chernikov
8a8de052a3
Fix JSR-223 and scripting samples dependencies
2019-04-17 22:03:59 +02:00
Ilya Chernikov
60b3fa3b07
Fix embeddable host test
2019-04-17 22:03:58 +02:00
Ilya Chernikov
090dadce3e
Fix testdata - script extension hint is not generated anymore...
...
due to changes in the scripting initialization logic
2019-04-17 22:03:58 +02:00
Ilya Chernikov
64c3bcd9ab
Drop refactored-out frontend.script module
2019-04-17 22:03:58 +02:00
Ilya Chernikov
a65dafc37d
Move scripting support classes to the scripting compiler impl module
2019-04-17 22:03:58 +02:00
Ilya Chernikov
8df829a7cd
Move scripting-compiler-impl definition to another package...
...
to continue merging with the refactoring with further scripting improvements
2019-04-17 22:03:58 +02:00
Ilya Chernikov
f71cc4e480
Drop long deprecated legacy script annotations and resolvers support
2019-04-17 22:03:58 +02:00
Ilya Chernikov
4f135a5fe5
Move REPL implementations to the scripting compiler impl module
2019-04-17 22:03:57 +02:00
Ilya Chernikov
199b32cad7
Merge scripting-impl to scripting-compiler-impl module...
...
to continue merging with the branch with further scripting refactorings
2019-04-17 22:03:57 +02:00
Ilya Chernikov
a82b386d81
Add a new module for scripting compilation infrastructure...
...
add embeddable variant as well
2019-04-17 22:03:57 +02:00
Ilya Chernikov
4625468de7
Expose project environment from core env, to allow usages of plugins...
...
before core env construction. Refactor script evaluation extension to
this scheme.
Plus some refactorings of the logic of script/repl evaluation in K2JVMCompiler
2019-04-17 22:03:57 +02:00
Igor Yakovlev
1178e94f50
Fixed intentions that used not valid PSI
...
Fixed ConvertToMemberIntention and ObjectLiteralToLambdaIntention that are used PSI after lazy block reparse.
2019-04-17 20:26:23 +03:00
Igor Yakovlev
1f29b42cd3
KtBlockExpression as lazy reparseable node (KT-13841)
...
Changed KtBlockExpression to support LazyReparseable behaviour
Added LazyKtBlockExpressionTest
Added new BlockWrapper delegations
2019-04-17 20:26:15 +03:00
Kirill Shmakov
e774f3fe77
Update iOS template for XCode 10.2
...
Info.plist generated by default does not provide required bundle id key.
Added separated Info.plist and its usage is explicitly specified.
See KOTLIN-CR-2913.
2019-04-17 18:54:45 +03:00
Mikhael Bogdanov
b70ff30dc3
Don't generate bridge flag for defaults in JVM IR backend
2019-04-17 14:53:30 +02:00
pyos
115b1c6b6e
JVM_IR: force materialization of non-transparent block results
2019-04-17 14:14:21 +02:00
pyos
b1bba70e40
JVM_IR: elide static field initialization to default values
2019-04-17 14:14:21 +02:00
Mikhail Zarechenskiy
bcc8802014
[NI] Avoid constraints from expected type for effectively empty system
...
Expression will be checked against expected type later.
Theoretically, this is not very good, but it aligns with the old
inference, plus it helps avoiding multiple type mismatch diagnostics.
2019-04-17 12:55:12 +03:00
Mikhael Bogdanov
5dea14f4ce
Reuse already created temp folder from UsefulTestCase
2019-04-17 11:22:19 +02:00
Mikhael Bogdanov
0d3f03a15a
Support parallelization in another IDE tests
2019-04-17 11:22:18 +02:00
Mikhael Bogdanov
18f76c31ca
Get rid of redundant UsefulTestCase
2019-04-17 11:22:18 +02:00
Mikhael Bogdanov
854b73b03c
Specify test runners for IDE tests
2019-04-17 11:22:17 +02:00
Mikhael Bogdanov
aaf0fbdbd6
Fix debugger tests
2019-04-17 11:22:16 +02:00
Mikhael Bogdanov
51bc979edb
Move parallelization utils to separate file, set test root for each process
2019-04-17 11:22:16 +02:00
Anton Bannykh
c6d177b467
JS: don't remove imports only used for fake overrides (KT-31007 fixed)
2019-04-17 11:41:47 +03:00
Anton Yalyshev
6113e66e7a
removed forgotten and unnecessary code
2019-04-17 10:56:08 +03:00
Anton Yalyshev
f79517ee5d
use new js gradle plugin and correct name of mpp plugin
2019-04-17 10:56:06 +03:00
Mikhael Bogdanov
3f1f335c47
Minor. Fix compilation
2019-04-17 09:50:49 +02:00
Mikhael Bogdanov
01dc66b53a
Temporary workaround: use teamcity.build.tempDir instead of java.io.tmpdir
...
teamcity.build.tempDir is cleaned up between build executions,
should be fixed soon on Teamcity side
2019-04-17 09:33:58 +02:00
Mikhail Zarechenskiy
e6e0b83184
[NI] Fix IDE-tests where integer types were used in unresolved calls
...
For example, test like CallExpression#testCallWithJavaClassReceiver
#KT-31060 Fixed
2019-04-17 01:40:56 +03:00
Mikhail Zarechenskiy
705a8a2234
[NI] Disable SAM-conversions for Kotlin functions by default
...
#KT-30661 Fixed
2019-04-17 01:40:54 +03:00
Andrey Uskov
c6f29cbf38
Disable GradleInspectionTests in AndroidStudio
2019-04-17 00:17:41 +03:00
Andrey Uskov
364274ef90
Fix setting production-on-test flags in MPP projects
...
#KT-29854 Fixed
2019-04-17 00:17:21 +03:00
Leonid Startsev
1a0b7902c2
Create separate type arguments for writeSelf function, since it is static now.
...
Fixes kapt issue https://github.com/Kotlin/kotlinx.serialization/issues/429
2019-04-16 19:37:31 +03:00
Sergey Igushkin
bd1f95da04
Disable automatic JVM target 1.8 detection in Android projects, KT-31027
...
This is a soft revert of the fix for KT-21030 (commit ffbd0e8a ).
The logic introduced for KT-21030 should now only run when a property
flag is provided, kotlin.setJvmTargetFromAndroidCompileOptions.
We can't set the JVM target to 1.8 automatically until an Android Gradle
plugin version appears that can correctly desugar the bytecode produced
by the Kotlin compiler.
So we disable the logic introduced in the fix for KT-26432
with the plan to enable it back and apply it conditionally once there is
an Android Gradle plugin version that processes the calls correctly.
Issue #KT-31027 Fixed
2019-04-16 19:02:44 +03:00
Mikhael Bogdanov
bec80dd27f
Use Teamcity tmpdir to cleanUp it between executions
2019-04-16 15:37:07 +02:00
gcx11
164933a31e
KT-22807: allow asynchronous testing in Kotlin/JS with QUnit
2019-04-16 14:17:22 +03:00
gcx11
b49c5bf74e
KT-22807: allow asynchronous testing in Kotlin/JS with QUnit
2019-04-16 14:17:22 +03:00
Ilya Chernikov
d98b1dfa7e
Fix testdata after adding main function to scripts
2019-04-16 11:55:24 +02:00
Ilya Chernikov
67ad3773de
Implement main method generation in scripts and runnable jar saving
...
refactor necessary parts on the way
2019-04-16 11:55:23 +02:00
Ilya Chernikov
c896b4873b
Rearrange scripting host classes, so the runner part is independent from the compiler
2019-04-16 11:55:23 +02:00
Ilya Chernikov
a6f0bd6677
Refactor jvm evaluation to make module operations cleaner and more robust
...
in addition:
- hide internal configuration keys
- add keys for flags controlling evaluation
- add initial module implementation for using scripts from a classpath
2019-04-16 11:55:22 +02:00
Ilya Chernikov
90444502a6
Extend evaluation API for easier passing of evaluation configuration
...
refactor helpers accordingly
2019-04-16 11:55:22 +02:00
Ilya Chernikov
fa58b41e43
Implement script evaluation configuration refinement
2019-04-16 11:55:21 +02:00
Ilya Chernikov
c51d4a4405
Implement simple "saving evaluators" to classes and to a jar
2019-04-16 11:55:20 +02:00
Mads Ager
a65f50bb00
JVM_IR: Generate java 8 parameter names when -java-parameters is passed.
...
The type mapper does not map enum parameters and outer this parameters
to the right parameter signature kinds so around half the tests
are still failing. Since a new type mapper is being worked
on I will not investigate that further right now.
2019-04-16 09:32:57 +02:00