Alexander Udalov
332a0f5adc
Use 'languageVersionSettings' extension instead of key directly
...
Also fix compilation of kotlin-script-util
2017-03-16 14:18:01 +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
Alexander Udalov
56201a6dc4
Refactor skipMetadataVersionCheck flag
...
To make addition of other flags easier in the future, provide a more
abstract 'isFlagEnabled' in LanguageVersionSettings
2017-03-15 11:03:04 +03:00
Alexander Udalov
ac530ac49c
Move skipMetadataVersionCheck flag to LanguageVersionSettings
...
This makes it possible to avoid the CompilerConfiguration instance in
injectors, because CompilerDeserializationConfiguration was the only
left component that required it.
LanguageVersionSettings is not a good name for this entity anymore, it
should be renamed in the future
2017-03-15 11:02:58 +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
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
6d9ecc60ef
Skip metadata version check in repl, improve JSR 223 template compatibility
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
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
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
Alexey Tsvetkov
de24e68adc
Revert "Avoid having -d and -module set at the same time"
...
This reverts commit ac241e267648e9344d718c3a44446c6e13d8d2e4.
2017-02-03 17:16:08 +03:00
Alexey Tsvetkov
c57dac159b
Avoid having -d and -module set at the same time
...
#KT-14619 fixed
2017-01-31 16:53:34 +03:00
Alexander Udalov
7ac96163ac
Introduce CompilerMessageSeverity.STRONG_WARNING
...
This is a severity for mandatory warnings, i.e. those which should be reported
in any case, even if there are compilation errors
2017-01-30 16:01:27 +03: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
Ilya Chernikov
0b689a4ecb
PR-1021 review: minor fixes
...
# Conflicts:
# compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplCompilingEvaluator.kt
# compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplEvaluator.kt
# compiler/cli/src/org/jetbrains/kotlin/cli/jvm/repl/GenericReplCompiler.kt
2017-01-27 22:20:44 +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
Łukasz Wojtów
be15dea6b5
Fix typo
2017-01-18 21:51:31 +03:00
Alexey Tsvetkov
f024f14c1e
Fix passing friend paths from Gradle to Kotlin daemon when compiling with IC
2017-01-17 19:18:23 +03: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
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
7a29c00ec3
Minor: fix typo EventManger->EventManager
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
c9a874cba9
Refactor gradle daemon client
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov
d4d1d5ad0f
Refactor daemon interface
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
Alexey Tsvetkov
de2736489b
Unify Gradle and Kotlin daemon cache version checking
2016-12-19 22:55:25 +03:00