Alexander Udalov
d2ed73eb78
Enable all Java 9 tests
2018-04-05 12:38:48 +02:00
Alexander Udalov
914cf18051
Fix line separators in scripting-related build.gradle.kts files
2018-04-04 22:26:17 +02:00
Ilya Chernikov
cc59716b39
Remove usages of the compiler from dist in script sample modules
...
prevent constant reindexing of the compiler jar
2018-04-04 21:44:20 +02:00
Pavel V. Talanov
de71598794
Fix line markers for actual enum entries
...
#KT-22632 Fixed
2018-04-04 17:56:35 +02:00
Pavel V. Talanov
e66768cbb3
Rewrite mpp line marker tests to be generated
2018-04-04 17:56:35 +02:00
Pavel V. Talanov
c3d2334eed
Fix expect declarations available in completion in platform modules
2018-04-04 17:56:35 +02:00
Pavel V. Talanov
549bebbd19
Add test infrastructure for completion in mpp
...
Allow to specify specific expected module in test data for completion items
2018-04-04 17:56:35 +02:00
Pavel V. Talanov
08b62d3564
Rewrite 'goto' mpp tests to be generated
...
Adjust test data
Use new util in FindUsagesMultiModuleTest
2018-04-04 17:56:34 +02:00
Pavel V. Talanov
1f4926e259
Rewrite QuickFixMultiModuleTest to be generated
...
Adjust test data
Drop 'overload' test data since it was never run before
2018-04-04 17:56:34 +02:00
Pavel V. Talanov
67a436bf7e
MPP tests: provide utils to setup test mpp from project structure
...
Allows to avoid configuration in test code
2018-04-04 17:56:34 +02:00
Pavel V. Talanov
01bff0e156
AbstractQuickFixMultiModuleTest: refactor and simplify code
...
Remove dependency on test module names
2018-04-04 17:56:33 +02:00
Pavel V. Talanov
36d23e4501
Refactor: merge synonymous utils
2018-04-04 17:56:33 +02:00
Pavel V. Talanov
784936eb00
Show 'actual/expect' icons for declarations in addition to visibility
2018-04-04 17:56:33 +02:00
Pavel V. Talanov
c86a6cf21d
Minor: rename expect/actual icon constants
...
Reflect icons' content
2018-04-04 17:56:32 +02:00
Pavel V. Talanov
9c9cdee7f0
Refactor: move utils related to expect/actual declarations and MPPs
...
Move them to 'idea-analysis' module
2018-04-04 17:56:32 +02:00
Pavel V. Talanov
3aee544f02
Throw more descriptive exception when service isn't found
2018-04-04 17:56:32 +02:00
Ilya Chernikov
da56f54982
Use script compiler options on script dependencies in the IDE as well
...
further fixes #KT-19120
2018-04-04 16:58:14 +02:00
Ilya Chernikov
5bf8460032
Do not throw if the script definition name is not defined
2018-04-04 16:23:59 +02:00
Ilya Chernikov
bdd001d04c
[minor] drop explicit stdlib detection logic in script compiler
...
...as it is mainly redundant and in the current for somewhat incorrect
2018-04-04 16:23:58 +02:00
Ilya Chernikov
73d2580435
Add FATAL diagnostic severity to match changes in the current script infrastructure
2018-04-04 16:23:58 +02:00
Ilya Chernikov
599a9acce8
Rearrange scripting examples to conform the build system requirements
2018-04-04 16:23:58 +02:00
Ilya Chernikov
7fbcfdf09e
Add config params for specifying target annotations, import param renaming
2018-04-04 16:23:58 +02:00
Ilya Chernikov
191b1cfefa
Refactor configurations handling:
...
- rearrange compile call parameters for clarity, more defaults
- remove baseConfiguration method - it is now covered by defaultConfiguration
for static part, and refineConfiguration call if a config parameter is
specified
- implement proper configurations chaining, documented in comment to compile function
- minor renamings and refactorings
2018-04-04 16:23:58 +02:00
Ilya Chernikov
4a4edf3458
[minor] Renames and rearrangements for clarity
2018-04-04 16:23:58 +02:00
Ilya Chernikov
5058c66e8c
Refactor scripting properties:
...
- flatten the structure
- add some parameters
- replace iterables with lists
- renaming all scope objects uniformily
also:
- fix passing and usage of script sources
- renamings and other minor improvements
2018-04-04 16:23:58 +02:00
Ilya Chernikov
2ddcc280a9
Implement simplified property bag dsl:
...
move it to the separate jar,
use property bag chaining
2018-04-04 16:23:57 +02:00
Ilya Chernikov
495c75c48e
Rename heterogeneous map to PropertyBag, make it chainable
...
the commit is needed to implement single chained script configuration bags
2018-04-04 16:23:57 +02:00
Ilya Chernikov
15fcee474c
Fix script classpasth from environment extraction...
...
for classes dirs
2018-04-04 16:23:57 +02:00
Ilya Chernikov
6ea41b425d
Pass script source directly instead of via configuration
2018-04-04 16:23:57 +02:00
Ilya Chernikov
29797ec264
Switch to plugins section in scripting build files after rebasing
2018-04-04 16:23:57 +02:00
Ilya Chernikov
ae2af238fa
Fixes after refactoring the API
2018-04-04 16:23:57 +02:00
Ilya Chernikov
1f0cac50d2
Refactor scriptDefinition in the common part
...
- get rid of selector (because of confusions), move it's data into
definition itself and make it more generic with heterogeneous map
- make main KotlinScript annotation accept complete definition
- make additional annotation for building definition from parts
- add ScriptingEnvironment and pass it as a constructor parameter to
the script handlers
- rename some classes for clarity
2018-04-04 16:23:57 +02:00
Ilya Chernikov
2c3a50e4b3
Refactor scripting examples:
...
- split into script def and host part
- remove bad dependencies
- organize it in a way that should be typical for user scenarios
2018-04-04 16:23:56 +02:00
Ilya Chernikov
7cca1a72d3
Fix after review: add stdlib to the script compilation classpath by default
2018-04-04 16:23:56 +02:00
Ilya Chernikov
d50798c4cf
Refactor script-util context tools to simplify its usage in the new scripting
2018-04-04 16:23:56 +02:00
Ilya Chernikov
4742d0a034
Rename scripting plugins to more established scheme
2018-04-04 16:23:56 +02:00
Ilya Chernikov
00320bad8d
Implement support for additional receivers in the backend
2018-04-04 16:23:56 +02:00
Ilya Chernikov
611aff6b61
J2K: ScriptContext - convert
2018-04-04 16:23:56 +02:00
Ilya Chernikov
cf4cca3683
J2K: ScriptContext - rename
2018-04-04 16:23:56 +02:00
Ilya Chernikov
87de1dff03
Implement support for additional receivers for script in frontend
2018-04-04 16:23:56 +02:00
Ilya Chernikov
e79d3dd035
Fix scripting in the frontend after refactorings
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1cb9592fcc
Change samples after adding configuration dsl
2018-04-04 16:23:55 +02:00
Ilya Chernikov
0f0934aaa2
Change jvm implementation after adding configuration dsl
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1723ff658d
Refactoring heterogeneous map handling, add dsl builders
2018-04-04 16:23:55 +02:00
Ilya Chernikov
63d601e1be
Implement scripting configuration gradle plugin
2018-04-04 16:23:55 +02:00
Ilya Chernikov
d05f67127d
Move scripting configuration into compiler plugin
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1514a113b8
minor: Add maven deps example template to the discovery resource folder
2018-04-04 16:23:55 +02:00
Ilya Chernikov
0c06ec9088
Implement script templates discovery in the idea plugin
2018-04-04 16:23:54 +02:00
Ilya Chernikov
d07a3f2bdd
Implement script templates discovery in the cli compiler
2018-04-04 16:23:54 +02:00
Ilya Chernikov
f496fbb625
Add new scripting libs to proguard library jars
...
so proguard do not complain for missing classes
2018-04-04 16:23:54 +02:00