Ilya Chernikov
00e8dfe1be
Use sessions with connection to eliminate async shutdown problems
...
(cherry picked from commit 78d334b)
2017-02-24 16:58:25 +01:00
Ilya Chernikov
4202bde550
Make daemon connection more reliable by retrying on certain exceptions
...
(cherry picked from commit 74a0711)
2017-02-24 16:58:25 +01:00
Ilya Chernikov
63aae56b11
Get rid of eval on daemon completely, fixes also JSR 223 examples
2017-02-24 16:58:24 +01:00
Ilya Chernikov
a3a782613a
Cleanup
2017-02-24 16:58:24 +01:00
Ilya Chernikov
75234701c7
Fix remote repl state facade
2017-02-24 16:58:24 +01:00
Ilya Chernikov
b23911fd59
Reintroduce history check between compile and eval, place generation into code line and id
2017-02-24 16:58:24 +01:00
Ilya Chernikov
7b2ea001c1
Fix state conversion, fix tests
2017-02-24 16:58:24 +01:00
Ilya Chernikov
c5bc58ad32
Implement remote part of the new repl state handling
2017-02-24 16:58:24 +01:00
Alexey Tsvetkov
3b222f13f3
Replace daemon's message after start with constant string
...
#KT-15783 fixed
When a daemon client cannot find an existing daemon, it starts a new one.
The client waits for a daemon to start and initialize.
Then the daemon is expected to signal that it is ready for compiling by printing message in stdout.
Before this change the message was the daemons' run path (a directory where all daemons store
their "flag" files).
However the path printed by the daemon was not matched by the path expected by the client somehow
on Windows for a user with a username containing non-English letters.
This commit replaces the message with the constant string.
2017-02-18 19:35:06 +03:00
Alexey Tsvetkov
b2de822fd4
Start daemon with explicit server ip address to prevent host name resolution
2017-02-18 19:35:06 +03:00
Ilya Chernikov
cb7de0e262
Implement more reliable daemon election, fixes KT-15562
...
also making shutdown more reliable
2017-02-11 16:27:25 +01:00
Ilya Chernikov
46894da981
Get rid of daemon-client dependency on openapi, making others "provided"
...
(cherry picked from commit 175d74c)
2017-02-10 16:02:55 +01:00
Ilya Chernikov
7c0cdf90cf
Move daemon session flag files to daemon discovery dir by default + minor fixes:
...
- Move flag files from the temp dir, because right now JPS cleans temp dir on each build start. Should fix KT-15707, also may affect KT-15562.
- change compiler runner to allow the fix above
- Fix flag file name filtering
- Fix ifAlive handling on the new compile method in the daemon.
2017-01-28 15:36:06 +01:00
apatrida
5ad06e1e92
PR-1021: Merge Keplin project scripting code into Kotlin core.
...
Overhauls the scripting layers (GenericRepl and related, and JSR223 and related)
Adds repeating modes (none, only latest eval'd line, or random order)
Also adds better thread-safe IO capturing, default imports, SimpleRepl wrapper, more unit tests
NOTE: the script-util part of the pull request was rejected due to various problems and incompatibilities.
It may be incorporated into the code later.
(originally cherry picked from commit 6f7d517)
2017-01-27 22:20:44 +01:00
Alexey Tsvetkov
f46217129b
EA-95293: do not report OUTPUT messages to message collector if outputs collector is specified
2017-01-26 13:38:52 +03:00
Ilya Chernikov
ec7e8873f4
Update daemon client with wrappers for basic compiler API
...
Other changes to extract results for compiler, tests.
2017-01-25 15:29:15 +01:00
Ilya Chernikov
3fcbc7bfa3
Rollback commit with native platform lib relocation - it seems breaks functionality on Windows
...
(cherry picked from commit d3ff19e)
2017-01-17 14:30:28 +01:00
Alexey Tsvetkov
99c72b6dff
Refactor JPS daemon client
2017-01-13 15:08:12 +03:00
Ilya Chernikov
1e68b2436f
Relocate non-native/jni part of net.rubygrapefruit.platform in attempt to fix #KT-15570
2017-01-13 10:48:29 +01:00
Ilya Chernikov
fc416476a8
Move invokable parts to JSR223 only, remove unneeded code
2016-12-15 07:26:08 +01:00
Ilya Chernikov
1cc85df78e
Refactor REPL infrastructure for passing evaluation/invoke wrapper to every eval/invoke function
2016-12-15 07:26:07 +01:00
Ilya Chernikov
7a79fff9d6
Put lines history into all data structures returned by repl, refactor storage and passing of the history for that
2016-12-15 07:26:06 +01:00
Ilya Chernikov
014e43e50a
Generalize error processing on daemon connection, attempt to fix #EA-82064 again
2016-11-30 13:09:18 +01:00
Ilya Chernikov
6e96d192bf
Move incremental components to compller util to reduce dependencies of compiler interface modules
2016-11-09 11:09:32 +01:00
Ilya Chernikov
ea4a1df839
Refactor session accounting in daemon, add REPL to it, write a test
2016-10-12 15:37:53 +02:00
Ilya Chernikov
43037373d7
Implement params to pass args to generic and remote repls to support script templates with params
2016-10-12 15:37:50 +02:00
Ilya Chernikov
86ece30330
Add remote repl support to the daemon, refactor repl classes accordingly, simple tests
2016-10-12 15:37:49 +02:00
Ilya Chernikov
042fc4fadc
Add remote input stream support, plus minor tweaks
2016-10-12 15:37:49 +02:00
Alexander Udalov
53b584f48c
Simplify usages of IncrementalPackageFragment and related code
...
Since its scope is now empty, no descriptor now has a container that is an
instance of IncrementalPackageFragment -> a lot of code is not needed anymore
2016-10-05 11:24:30 +03:00
Ilya Chernikov
8ba9d2b75c
minor: Fix daemon client diagnostic
2016-06-07 21:12:52 +02:00
Ilya Chernikov
22283be1b7
minor: Make term "canceled" uniformly spelled in identifiers and strings in the daemon
2016-05-06 13:06:38 +02:00
Ilya Chernikov
336226ac9e
minor: Switch to simpler descending sort, reduce dependency
2016-05-06 13:06:37 +02:00
Alexander Udalov
d85884426e
Minor optimization of lookup tracker records
2016-04-29 15:21:26 +03:00
Ilya Gorbunov
744a7a83f7
Cleanup RC deprecations in compiler and plugin.
2016-01-27 18:34:30 +03:00
Dmitry Jemerov
117a0d8b7b
compiler: cleanup 'public', property access syntax
2016-01-07 17:57:38 +01:00
Alexander Udalov
6048ebf871
Fix terminology: internal name instead of FQ name
2015-12-21 20:27:41 +03:00
Alexander Udalov
a9476dfe37
Replace 'kotlin-runtime' in module dependencies with 'util'
2015-12-21 18:46:08 +03:00
Ilya Chernikov
6ba68da811
Working around cancellation-related exception in case of different versions of daemon and client
2015-12-18 22:17:15 +01:00
Ilya Chernikov
c76bec51a0
Moving daemon files, renaming namespaces, modules and jar
2015-11-27 19:04:04 +01:00