Alexey Tsvetkov
220fab0d3f
Test JPS with Daemon and IC
2018-01-16 21:09:57 +03:00
Ilya Chernikov
3e2003e60d
Do not log daemon connection errors as exceptions - may reduce number of ...
...
redundant report if the problem is corrected on retry
(cherry picked from commit 260fe36)
2017-12-18 17:08:15 +01:00
Ilya Chernikov
6e34f57acf
Retry socket connection on connection errors, number of retries and...
...
retry interval are configurable via the system props
2017-12-18 16:49:51 +01:00
Ilya Chernikov
c453ff01cd
Increase daemon socket queue size, make it controllable via system prop
...
Hopefully fixes #KT-15562
Also some minor refactoring
2017-12-13 17:34:13 +01:00
Denis Zharkov
a079b92ea0
Add property for precise version of Java tracking in Gradle IC
...
The flag name is kotlin.incremental.usePreciseJavaTracking
By default precise version is disabled
#KT-17621 Fixed
2017-12-12 16:17:58 +03:00
Nikolay Krasko
0480042ffd
Log incremental options before passing them to kotlin daemon
2017-11-15 16:12:40 +03:00
Alexander Udalov
02981038f3
Split core into descriptors, descriptors.jvm, deserialization, descriptors.runtime
2017-11-10 18:58:31 +01:00
Alexey Tsvetkov
62f293280c
Gradle: compile tests incrementally when main is changed
...
#KT-17674 fixed
2017-09-29 05:11:20 +03:00
Ilya Chernikov
1862c78bdc
Fix projects for gradle integration tests
2017-09-20 11:51:44 +02:00
Ilya Chernikov
46884bec84
Add missing artifact, fix some deps and publishing
2017-09-20 11:51:38 +02:00
Ilya Chernikov
d89b53dfea
Reorganize builtins built and use in the projects
2017-09-19 23:58:31 +02:00
Alexander Podkhalyuzin
3f8170d369
Clean idea files generated on the gradle import, add them to .gitignore
2017-09-19 23:58:27 +02:00
Ilya Chernikov
27968c8e13
Set proper jvmTarget for projects
2017-09-19 21:37:27 +02:00
Ilya Chernikov
deda50dbbb
Continue switching projects to improved dsl: sourceSets and test running
2017-09-19 21:37:26 +02:00
Ilya Chernikov
61dfb75e0e
Implement Gradle Kotlin DSL build
2017-09-19 21:37:06 +02:00
Ilya Chernikov
fc12f37105
Rolling back commits related to Unit -> Void? confersion in RMI interface
...
since it breaks the compatibility and doesn't actually help - the problem
with NoClassDef Unit is apparently elsewhere.
2017-07-11 15:06:38 +02:00
Ilya Chernikov
21eed9ee78
Get rid of kotlin.Unit usage in RMI interfaces
...
attempt to fight mysterous "Cannot instantiate kotlin.Unit" exception.
2017-07-08 18:16:29 +02:00
Ilya Chernikov
2c35675fd6
Refactor daemon parallel start test to improve diagnostics
...
also add daemon info to the RPC
and remove redundant daemon stopping calls, that should speed up
tests execution
2017-07-08 18:16:26 +02:00
Ilya Chernikov
e2d2c5ff42
Refactor daemon startup for better logging and cleaner code
2017-07-08 18:16:25 +02:00
Ilya Chernikov
9d2ae54d2c
Introduce other JVM options inheritance for daemon
2017-05-24 10:52:38 +02:00
Ilya Chernikov
8cc576d44f
Add total reset to repl history and state interfaces
2017-05-03 18:11:43 +02:00
Alexey Tsvetkov
e7e29f2651
Avoid changing java.rmi.server.hostname property
2017-04-10 20:39:34 +03:00
Alexey Tsvetkov
da24a99b91
Set 'java.rmi.server.hostname' property on client too
...
The RMI documentation (http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/javarmiproperties.html )
says it is useful to set up a `java.rmi.server.hostname`
system property on a client and a server.
When the property is set up on a client, I saw that "RenewClean" threads
stopped listening to my external IP, so all client and server threads
are now only listening the loopback interface.
I also changed the way the property is set up on the server side:
before the change it was passed in jvmargs at a process launcher.
I moved this code directly to the main method of the daemon,
because it is easy to forget to set up the property,
when running the main for debug purposes.
2017-03-24 19:03:24 +03:00
Mikhail Glukhikh
045a23ae10
Cleanup: apply "Convert lambda to reference"
2017-03-15 17:36:02 +03:00
Mikhail Glukhikh
b121bf8802
Cleanup: fix some compiler warnings (mostly deprecations, javaClass)
2017-03-15 17:35:31 +03:00
Mikhail Glukhikh
1375267996
Cleanup: apply redundant curly braces in string template inspection
2017-03-15 16:13:22 +03:00
Ilya Chernikov
fa5728b288
Use Void instead of Unit in RMI calls, should fix EA-82064
...
("Could not initialize class Kotlin.Unit")
(cherry picked from commit b3a1311)
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
75234701c7
Fix remote repl state facade
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
Ilya Chernikov
9eae929084
Fixes after review
2017-02-11 16:27:27 +01: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
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
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
Alexey Tsvetkov
3d07c40887
Minor: rename CompilationResultSink->CompilationResults
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
bdae0b5efb
Fix the build
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
41c5568b74
Minor: add comment
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
39b37b85e3
Minor: rename Storage->Sink
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
f027860ac0
Minor: rename CompilationResult->CompilationResultCategory
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
a3415d8d0e
Minor: move CompilerMode
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
072edf4b5a
Minor: introduce EXCEPTION report category
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
a56c92f28d
Minor rename parameters to match parent constructor
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
16352ff2e5
Refactor messages sending
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
e44cc43ada
Move CompilerMode and TargetPlatform to CompilationOptions
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
c5a5463f50
Rename AdditionalCompilerArguments->CompilationOptions
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
bf50a23221
Remove operations tracer from compile() interface
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
99c72b6dff
Refactor JPS daemon client
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
d4d1d5ad0f
Refactor daemon interface
2017-01-13 15:08:12 +03:00