Alexander Udalov
f733bda912
Fix compilation error introduced in d374723e3c
2019-02-25 19:22:09 +01:00
Ilya Chernikov
d374723e3c
Restore default jvmTarget for scripts that was lost after refactoring
2019-02-25 18:22:27 +01:00
Nicolay Mitropolsky
9bf55d81ca
Making kts-compiler able to dig out the ClassPath from the intellij PluginClassLoader
2019-02-22 13:51:47 +03:00
Ilya Chernikov
731df8d3cc
Proper handling of the scripting compiler plugin in JSR-223 with daemon
2019-02-10 13:33:21 +01:00
Ilya Chernikov
5ef6ad916f
Apply scripting compiler plugin to the jvm scripting host compiler
2019-02-10 13:31:57 +01:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Ilya Chernikov
4f9e844735
Improve standard libs search logic for script compilation:
...
- refactor appropriate functions to accept optional classloader (not used yet)
- try to load from thread context classloader first
- fallback to marker class classloader in the appropriate function
2019-01-28 13:15:36 +01:00
Ilya Chernikov
95d782b6ca
Implement diagnostics for ignored compiler arguments on script compilation
2019-01-28 13:15:36 +01:00
Ilya Chernikov
7ee9801c5f
Implement additional compiler arguments support in scripts
2019-01-28 13:15:36 +01:00
Ilya Chernikov
298aaf999e
[minor] fix function name typo
2019-01-28 13:15:36 +01:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Ilya Chernikov
877dd7ee47
Change default jvmTarget for scripts compilation via jvmhost to 1.8
...
#KT-29319 fixed
2019-01-18 18:17:47 +01:00
Ilya Chernikov
2bb5e8f51f
Implement and use helpers for economical classpath update in script configs
2019-01-18 18:17:45 +01:00
Ilya Chernikov
c7e5ad861c
Allow explicit nulls for props with default, allow null as base classloader for evaluation
...
and use proper default evaluation configuration if not supplied explicitly;
also add reset method to the properties builder and containsKey method to
the properties collection
#KT-29296 fixed
2019-01-18 18:17:44 +01:00
Ilya Chernikov
086c4fd5b9
Add stdlib, etc. to the script dependencies on compilation
...
#KT-29293 fixed
2019-01-18 18:17:44 +01:00
Mikhail Zarechenskiy
d5ebe2e66a
Reorganize dependencies around kotlin-compiler.jar
...
#KT-26807 Fixed
2019-01-11 00:14:23 +03:00
Ilya Chernikov
4571e273a4
Add shared script instances support, fix and refactor evaluation accordingly
...
also fix arguments order in the evaluator
2019-01-10 10:59:32 +01:00
Ilya Chernikov
7bb4233e17
Add mapping function for transformations with ResultsWithDiagnostics
...
also improve chaining helpers
2019-01-10 10:59:32 +01:00
Ilya Chernikov
e5febddaf7
[minor] fix scripting test on windows
2019-01-10 10:59:32 +01:00
Sergey Rostov
423653d225
JPS build: workarounds for idea importing
2018-12-26 09:02:44 +03:00
Marcin Moskala
686cfa6fd2
Fix common misspellings
2018-12-21 16:13:42 +03:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Ilya Chernikov
77095cb895
[minor] add missing dependency
2018-12-20 17:09:22 +01:00
Ilya Chernikov
1e74ab5a62
Implement import test, fix import support in compiler and evaluator
2018-12-20 17:09:19 +01:00
Ilya Chernikov
fce68102bd
Implement imported scripts evaluation and construction
2018-12-20 17:09:18 +01:00
Ilya Chernikov
729ebcac9b
Implement simple "add to compilation" functionality for scripts
...
(incomplete import - scripts added to the compilation but not yet
imported into scope)
Base functionality needed for #KT-27960
2018-12-20 17:09:16 +01:00
Ilya Chernikov
77a4505ec2
[minor] get rid of obsolete "environment" wording
2018-12-13 18:00:12 +01:00
Ilya Chernikov
e0a542234f
Add script config refinement before compilation into API
2018-12-13 18:00:10 +01:00
Ilya Chernikov
3fe324bbb4
Add UrlScriptSource
2018-12-13 18:00:08 +01:00
Ilya Chernikov
fb929c290d
[minor] copy utility fun to reduce dependencies
2018-12-13 18:00:08 +01:00
Alexey Tsvetkov
22192e7008
Stop using experimental coroutines in kotlin-scripting-jvm-host tests
2018-11-13 21:54:36 +03:00
Ilya Chernikov
9c51f521a9
Add embeddable version of the jvm scripting host
...
#KT-27382 fixed
2018-11-09 15:57:09 +03:00
Ilya Gorbunov
a64a76d5fc
Remove experimental coroutines opt-in from build scripts
...
It has no effect in Kotlin 1.3
Only enable coroutines if '-ReleaseCoroutines' is used
2018-11-09 04:00:26 +03:00
Ilya Chernikov
ae0b2405bc
Add ide script settings for sources and accepted location
2018-10-25 13:09:34 +02:00
Ilya Chernikov
492abd08bc
Fix bridge resolver behaviour on static dependencies
2018-10-25 13:09:32 +02:00
Ilya Chernikov
0e66c64a17
Implement new minimal extension point for providing (new) script definitions to idea
...
#KT-27817 fixed
2018-10-25 13:09:01 +02:00
Ilya Chernikov
dd28d55c7d
Implement proper JDK home passing logic for scripts, deprecating old one
...
KT-27497 fixed, as well as failing tests on TC
2018-10-22 09:48:49 +02:00
Ilya Chernikov
7fbfad814e
Fix default host configuration property - make it not shared:
...
Shared instance is incorrect here and causes clashes when many
definitions are loaded in the same process.
Also make the diagnostics in case of clashes more verbose.
2018-10-10 10:53:57 +02:00
Alexander Udalov
009f18f1f4
Split AnalysisFlag values to AnalysisFlags and JvmAnalysisFlags
...
Declare AnalysisFlags in module 'frontend', and JvmAnalysisFlags in
module 'frontend.java', to avoid leaking Java-related logic to common
compiler code
2018-10-01 13:31:00 +02:00
Dmitry Petrov
0191e3d1cf
Migrate to release coroutines
2018-09-27 21:59:31 +03:00
Ilya Chernikov
d760299dc1
Implement context classpath extraction using particular class,...
...
Use it in the main-kts.
Also improve diagnoistics related to the definition loading.
#KT-26828 fixed (after this commit - finally, see also another related commit)
2018-09-15 15:44:53 +02:00
Ilya Chernikov
d9760f00f6
Move context classpath utils from script-util to scripting-jvm
...
since it is the right place to have it in the new structure.
Solves the problem that script-util classes not found then script
definition with context classpath is loaded by the scripting compiler
plugin, since script-util is not packed into embeddable plugin.
The old context utils are deprecated and in fact wrap the new utils.
#KT-26828 fixed (in fact - partially, see another related commit)
2018-09-15 15:43:53 +02:00
Ilya Chernikov
712e23f8b0
Document scripting common API, drop unused bits
2018-09-11 14:56:53 +02:00
Ilya Chernikov
a02d5b4b21
Rename script annotation params according to configuration keys...
...
rename evaluation params consistently too
2018-09-11 14:56:51 +02: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