Yan Zhulanow
84d62f37eb
Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->
...
Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)
2016-08-29 16:31:16 +03:00
Alexander Udalov
3298649bd7
Support "-no-reflect" in "kotlin" command
...
#KT-13491 Fixed
2016-08-26 15:17:00 +03:00
Ilya Chernikov
46a7c706e1
Fixes and refactorings after review
2016-08-11 09:11:11 +02:00
Ilya Chernikov
295f2fd40a
Fix GeneratedClassloader creation in scripts compilation, fixes test
2016-08-11 09:11:11 +02:00
Ilya Chernikov
6c0b78fb01
Add script-templates option to compiler options, fix templates and definitions loading in compiler
2016-08-11 09:08:40 +02:00
Alexander Udalov
0d26087040
CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
...
Note that now "-no-stdlib" implies "-no-reflect".
#KT-13237 Fixed
2016-08-09 11:24:24 +03:00
Ilya Chernikov
f73b8e80be
Fixes after review
2016-08-03 09:51:40 +02:00
Ilya Chernikov
59712d4bf8
Implement updatable dependencies index with usage API in the environment for using in REPL
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
999c8e7486
Refactor: rename KtLightClassForExplicitDeclaration -> KtLightClassForSourceDeclaration
2016-07-28 18:00:50 +03:00
Pavel V. Talanov
cdbd7fbab0
Refactor: split classes in 'asJava' package into several subpackages to reflect their structure
2016-07-28 18:00:47 +03:00
Alexander Udalov
2c08796c45
Report ABI version incompatibility error always, not only if there are other errors
...
This is a radical but likely temporary measure to forbid the current compiler
from compiling code against binaries compiled by newer compilers
Cherry picked from commit 149a4eddff0106bbe91c9a6b51a26c12c242d14f and commit
285b20e3ff387eb3d2ee33ceaa376ed8eba90857
2016-07-21 15:03:52 +03:00
Alexander Udalov
a533f8597d
Fix debug names for some slices
...
Also move RUNTIME_ASSERTION_INFO and LOAD_FROM_JAVA_SIGNATURE_ERRORS to a
single class for simplicity
2016-07-05 18:18:26 +03:00
Alexey Andreev
33248e7721
KT-3008: minor code style fixes
2016-06-27 15:33:31 +03:00
Alexey Andreev
97605a97da
KT-3008: multiple minor fixes after code review
2016-06-27 15:33:28 +03:00
Alexey Andreev
64cd0b70d7
KT-3008 Minor refactoring and clean up
2016-06-27 15:33:27 +03:00
Alexey Andreev
b090b79d92
KT-3008 Add UI that allows to change module kind in IDEA Kotlin configurator
2016-06-27 15:33:26 +03:00
Alexey Andreev
848d7f92fa
KT-3008 Implement AMD, CommonJS and UMD wrappers. Compile stdlib and builtins modules into separate JS files and wrap them in UMD.
2016-06-27 15:33:24 +03:00
Alexey Andreev
95b78e18df
KT-3008 Change the way how modules are referenced in JS
2016-06-27 15:33:23 +03:00
Ilya Chernikov
8dac72f465
Add support for script classfiles caching
2016-06-25 22:24:34 +03:00
Ilya Chernikov
64bb47ed37
Switch to File instead of String for classpaths in script dependencies
2016-06-25 22:24:30 +03:00
Ilya Chernikov
082290f8e3
Refactor script dependencies management
2016-06-25 22:24:23 +03:00
Ilya Chernikov
402e8c1e3e
Add dependency from annotation extraction mechanisms to the prototype, with tests
2016-06-25 22:24:14 +03:00
Ilya Gorbunov
7c5c4610e8
Rename -jdk compiler option to -jdk-home (jdkHome), add jdk path validation.
2016-06-23 22:47:45 +03:00
Ilya Gorbunov
644df89dc9
CLI: Allow to specify JDK for classpath building with '-jdk' compiler argument.
...
Maven: support jdk parameter linked to kotlin.compiler.jdk property.
Gradle: support jdk compiler option.
2016-06-23 22:46:07 +03:00
Pavel V. Talanov
5d31d6d98d
REPL: call 'toString()' for returned values explicitly and correctly report exceptions
...
#KT-12389 Fixed
2016-06-23 16:12:03 +03:00
Pavel V. Talanov
8ac40d7401
Refactor Repl: use sealed class to represent line result
2016-06-23 16:12:01 +03:00
Pavel V. Talanov
17832e10e7
Refactor ReplInterpreter and ReplFromTerminal classes
...
Drop some of the exception reporting code
2016-06-23 16:11:50 +03:00
Pavel V. Talanov
246409d033
J2K ReplFromTerminal: rename file
2016-06-23 15:58:07 +03:00
Pavel V. Talanov
35c56431b3
J2K ReplFromTerminal, convert code
2016-06-23 15:58:05 +03:00
Dmitry Jemerov
75b860ab95
handle IOException from File.getCanonicalFile() (EA-83981 - NA: KotlinToJVMBytecodeCompiler.reportRuntimeConflicts)
...
(cherry picked from commit 765bd44)
2016-06-21 12:07:50 +02:00
Alexander Udalov
da332d1a27
Validate "-jvm-target" value in CLI, improve message
2016-06-16 16:51:18 +03:00
Mikhael Bogdanov
3a8591a729
Support 'jvm-target' in CLI
2016-06-15 13:43:29 +03:00
Denis Zharkov
077fc528d1
Minor. Change CompilationException parameter to @Nullable
...
A lot of call sites actally pass null as an element,
so it's better to fail with original stack-trace instead of NPE
caused by nullability check
2016-06-08 18:53:16 +03:00
Ilya Chernikov
7153ea61d8
Restore logic of StandardScriptDefinition handling, fixes codegen tests
2016-06-07 21:13:06 +02:00
Ilya Chernikov
e8c13882b4
Make script detection API generic, fix tests
2016-06-07 21:13:05 +02:00
Ilya Chernikov
656fcc9775
Refactor and fixes after review
...
improving script constructor search algorithm - now default params should be supported
remove prefix Customized- from scripts ModuleInfo-related classes
refactoring ideaModuleInfos after review
refactoring ResolveSessionProvider construction for readability
refactoring KotlinScriptConfigurationManager after review
fixing KotlinScriptDefinitionProvider after review
2016-06-07 21:13:04 +02:00
Ilya Chernikov
478ae96e50
Implement a compiler config key to add preconfigured extra imports for scripts
2016-06-07 21:13:01 +02:00
Ilya Chernikov
956bcf6d7a
Fix permgen problems with script launching by avoiding reflection as much as possible
2016-06-07 21:13:00 +02:00
Ilya Chernikov
b9ea9513b1
Rewrite handing and caching of script configurations
...
The refactoring could enable lazy update of the index on script loading, but seems that makeRootsChange
call doesn't work as expected, therefore initial project scan is performed in the KotlinScriptConfigurationManager
anyway
2016-06-07 21:12:59 +02:00
Ilya Chernikov
3e6616de42
Read script config if appropriate flag is specified, fix classpath handling
2016-06-07 21:12:58 +02:00
Ilya Chernikov
3e17724e58
Implement class finder for customized scripts resolving - not yet completely functional
2016-06-07 21:12:54 +02:00
Ilya Chernikov
b63ed0f4aa
Make script launcher aware of custom scripts, minor correction is core env
2016-06-07 21:12:53 +02:00
Ilya Chernikov
06a586bb82
Add reading script configuration files on compilation
2016-06-07 21:12:51 +02:00
Ilya Chernikov
310e8014a8
Refactor KotlinScriptDefinitionProvider access to scriptDefinitions
2016-06-07 21:12:48 +02:00
Ilya Chernikov
770ef16ef7
Replace script recognition from by PsiFile to by virtual file, fix custom script name generation
2016-06-07 21:11:28 +02:00
Ilya Chernikov
d225385d19
Add name and classpath to KotlinScriptDefinition
2016-06-07 21:11:26 +02:00
Ilya Chernikov
670627ac4e
Add helpers, compilation function and tests for passing classes as a parameters to a script
2016-06-07 21:11:23 +02:00
Alexander Udalov
e3164119c1
Inline PrintingMessageCollector#PLAIN_TEXT_TO_SYSTEM_ERR
...
Otherwise 'hasErrors' flags was not cleared between subsequent runs of tests
which were using this message collector
2016-06-07 21:12:24 +03:00
Alexey Tsvetkov
fd60ec4171
Set idea.io.use.nio2=true every build on windows
...
Otherwise (setting property once in static block) gradle daemon might clear system properties
#KT-11770 fixed
2016-06-07 14:42:30 +03:00
Alexander Udalov
68c5e8e190
Minor, add comments on declarations used in Eclipse plugin
2016-05-27 19:40:50 +03:00