Alexander Udalov
087eec4521
Regenerate tests after recent generator improvements
2014-08-25 19:00:09 +04:00
Alexander Udalov
d5d4cff701
Minor, remove dependency of everything on "descriptor.loader.java"
...
Everything already depends on "frontend.java" which exports
"descriptor.loader.java"
2014-08-25 17:53:18 +04:00
Alexander Udalov
994348b0ca
Remove dependency on Maps from jps-plugin
...
It seems that there's no Guava in the classpath formed for JPS plugins
#KT-5676 Fixed
2014-08-25 12:36:26 +04:00
Pavel V. Talanov
77416aba5f
Add dependency on intellij-core explicitly
...
util module doesn't export intellij-core dependency
2014-08-22 13:09:08 +04:00
Evgeny Gerashchenko
56fd9cec7a
Minor. Renamed and cleaned CompilerServices -> Services.
2014-08-20 14:29:03 +04:00
Evgeny Gerashchenko
487f381287
Minor. Renamed and cleaned CompilerServices -> Services.
2014-08-20 13:46:31 +04:00
Evgeny Gerashchenko
fe27b2264a
Passing condition to prefer parent class loader as a parameter to preloader.
2014-08-20 13:46:30 +04:00
Evgeny Gerashchenko
f3b7ae379f
Passing services via type-safe container instead of map.
2014-08-20 13:46:30 +04:00
Evgeny Gerashchenko
184ddbc9e1
Removed passing incremental cache base dir via module script.
2014-08-20 13:46:29 +04:00
Evgeny Gerashchenko
cbf8af2e88
Made compiler report source to output mapping when invoked from JPS.
2014-08-20 13:46:28 +04:00
Evgeny Gerashchenko
6dd56a08bd
Removed storing module ids in incremental caches.
2014-08-20 13:46:28 +04:00
Evgeny Gerashchenko
3233317316
Passing class loader instead of factory to compiler.
2014-08-20 13:46:27 +04:00
Evgeny Gerashchenko
e419c1a604
Moved incremental cache API to separate package.
2014-08-20 13:46:27 +04:00
Evgeny Gerashchenko
5fade9a5a6
Made incremental cache per-module.
...
Reused IDEA framework which manages per-module storage.
2014-08-20 13:46:26 +04:00
Alexander Udalov
807cf1dcc0
Don't pass "-verbose" by default to compiler in IDE
...
Let user pass it in the settings. Currently doesn't affect anything since
apparently no verbose messages appear in the IDE compiler output
2014-08-13 11:10:41 +04:00
Evgeny Gerashchenko
a4bbe2486c
Fixed collecting source files for multiple modules in incremental compilation.
...
Error led to analyzing same file twice.
2014-08-04 13:38:37 +04:00
Evgeny Gerashchenko
7e6b05554e
Always closing IncrementalCache after using. Fixed KannotatorJpsTest.
2014-07-22 21:18:16 +04:00
Evgeny Gerashchenko
714ad858ef
Minor. Formatting and imports.
2014-07-22 21:18:16 +04:00
Evgeny Gerashchenko
479711e812
Moved current incremental compiler test data into subdirectory.
...
Tweaked test generator to avoid creating test methods for parent directory of tests.
2014-07-10 15:05:20 +04:00
Evgeny Gerashchenko
829c25bcf9
Not writing compiler script path when in JPS plugin output.
...
XML script is removed after JPS plugin session anyway, so it's usually hard to check its contents. Also, it is redundant since -printArgs will write it anyway, so there is still possibility to debug.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
40703c125c
Made it possible to run incremental compiler from IDEA.
...
Two guava functions used were replaced with custom tiny functions, because JPS plugin won't have guava in classpath.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
7212597e61
Optimized KotlinBuilder for targets without Kotlin. Checking dirty/removed files only.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
42cba1cc3c
Ignoring not static final fields.
...
Added tests with class object of trait and val inside object.
2014-07-07 17:41:39 +04:00
Evgeny Gerashchenko
aa9384a207
Made constants and inline functions maps class-file based. Otherwise data for different class files was overwritten: e.g. several classes in file, class and top-level callables in one source file.
...
Extracted superclass with common parts.
2014-07-07 17:41:39 +04:00
Evgeny Gerashchenko
f8ac8f727e
Merged tests with inline functions in class and in package.
...
Now this test also checks situation when several class files with inline functions are emitted from one source file.
2014-07-07 17:41:38 +04:00
Evgeny Gerashchenko
ca647a9ff4
Expanded test with constants unchanged. Now it has class-level and package-level constants mixed in one file.
2014-07-07 17:41:38 +04:00
Evgeny Gerashchenko
11af8ed616
Added test with constant in class object.
2014-07-07 17:41:37 +04:00
Evgeny Gerashchenko
2ac351928e
Minor. Renamed parameter and corresponding variable.
2014-07-07 17:41:37 +04:00
Evgeny Gerashchenko
aa9f7a73c9
Inline function changed – rebuild all chunk.
2014-07-07 17:41:36 +04:00
Evgeny Gerashchenko
6f8d9f6ed9
Minor. Reused join() instead of makeString()
2014-07-07 17:41:36 +04:00
Evgeny Gerashchenko
7ef5c75f26
Supported inlining functions which access properties via field.
2014-07-07 17:41:36 +04:00
Evgeny Gerashchenko
2259cc605f
Preserving annotations in incremental compilation.
2014-07-07 17:41:35 +04:00
Evgeny Gerashchenko
6c8a9ba378
Basic detection for bytecode of inline functions in incremental compilation.
...
Basic rule is: bytecode of inline function changed -> recompile everything.
2014-07-07 17:41:35 +04:00
Evgeny Gerashchenko
6501066274
Added hacky checks for accessing compiled functions from our module via package part instead of facade.
...
#KT-4590 fixed
2014-07-07 17:41:34 +04:00
Evgeny Gerashchenko
55a2e8edf8
Added debug flag for class files comparison.
2014-07-07 17:41:34 +04:00
Nikolay Krasko
465dd45eae
Merge remote-tracking branch 'origin/master' into idea14
2014-07-02 09:21:40 +04:00
Alexander Udalov
59777e7df6
Generate "$kotlinClass"/"$kotlinPackage" reflection fields to every class
...
Some seemingly irrelevant tests were changed because now there's <clinit> in
almost every class and class initialization begins with executing it
2014-07-02 01:26:18 +04:00
Nikolay Krasko
a0e45e9a12
Merge master into idea14
...
Conflicts:
.idea/runConfigurations/All_Tests.xml
idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt
idea/tests/org/jetbrains/jet/plugin/refactoring/introduce/introduceVariable/AbstractJetExtractionTest.kt
idea/tests/org/jetbrains/jet/shortenRefs/AbstractShortenRefsTest.kt
2014-06-25 16:26:01 +04:00
Evgeny Gerashchenko
1ce0e6cd3e
Added exceptions for proguard: constants are used in JPS plugin.
2014-06-24 22:19:12 +04:00
Evgeny Gerashchenko
ca4ac43add
Added tests with class referenced from proto.
2014-06-24 22:18:19 +04:00
Evgeny Gerashchenko
8479ca76b0
Added clearing proto data in incremental cache.
2014-06-24 22:18:18 +04:00
Evgeny Gerashchenko
471e3e80f2
Minor. Fixed mixed up error messages in test.
2014-06-24 22:18:18 +04:00
Evgeny Gerashchenko
5c49eb0a54
Writing class names in proto map (to avoid ambiguities)
2014-06-24 22:18:17 +04:00
Evgeny Gerashchenko
fc7dceba5a
Clearing constants data when removing file.
2014-06-24 22:18:16 +04:00
Evgeny Gerashchenko
9dd627a23d
Removed ingoring files facility from incremental tests.
...
It is not necessary since script.xml are not generated in out directory anymore.
2014-06-24 22:18:16 +04:00
Evgeny Gerashchenko
ab442754d6
Changing lastModified manually in case when it wasn't changed after file overwriting.
2014-06-24 22:18:15 +04:00
Evgeny Gerashchenko
3ee92da6f0
Added test with all types of constants.
2014-06-24 22:18:14 +04:00
Evgeny Gerashchenko
111feb2574
Added tests with removing files and changing packages.
2014-06-24 22:18:11 +04:00
Evgeny Gerashchenko
7742755de4
Minor. Correct map with expected size creation.
2014-06-24 22:18:11 +04:00
Nikolay Krasko
2f776affb3
Test package facade recompile after removing several files
2014-06-20 17:19:46 +04:00