Dmitry Jemerov
eefc6ebcc9
Add missing read action in KotlinBuildScriptManipulator
2017-08-29 17:33:42 +02:00
baratynskiy
67fdd9f76e
javac-wrapper: fixes after rebase and review
2017-08-29 18:01:36 +03:00
baratynskiy
2dc0c55e76
javac-wrapper: get rid of TreePath because it is slow
2017-08-29 18:01:36 +03:00
baratynskiy
1b0d7ff5be
javac-wrapper: constant evaluator
2017-08-29 18:01:36 +03:00
baratynskiy
4f180e1292
javac-wrapper: identifier resolver
2017-08-29 18:01:36 +03:00
baratynskiy
01883a41cb
javac-wrapper: refactoring, fixes and tests
2017-08-29 18:01:36 +03:00
baratynskiy
8494e54608
javac-wrapper: -Xuse-javac -> -Xuse-javac and -Xcompile-java
2017-08-29 18:01:36 +03:00
Nicolay Mitropolsky
2224720a90
findClass is nullable in IDEA 171, so !! added
2017-08-29 17:40:53 +03:00
Nicolay Mitropolsky
108a40261b
KtLightAnnotationForSourceEntry fix for reading unnamed java-annotation parameter
2017-08-29 17:32:07 +03:00
Sergey Igushkin
e1924e0d2f
(minor) Modify warning logic for separate classes dirs opt-out flag
...
(cherry picked from commit 0dfe1a1)
2017-08-29 14:39:17 +03:00
Sergey Igushkin
0e28d612e7
Add a test for the opt-out flag for disabling separate classes directory
...
(cherry picked from commit 393966d)
2017-08-29 14:39:17 +03:00
Sergey Igushkin
0263919dbd
Provide an opt-out flag for separate classes dirs with Gradle 4.0+
...
Issue #KT-19774 Fixed
(cherry picked from commit 2aa6f5a)
2017-08-29 14:39:17 +03:00
Dmitry Jemerov
843a9871b1
Detect library kind field based on type, not name
2017-08-29 10:29:22 +02:00
Dmitry Jemerov
106db13a6a
Add missing read action (EA-105188 - assert: FileManagerImpl.findFile)
2017-08-29 10:16:35 +02:00
Dmitry Jemerov
f37cc9c8ef
Start read action at correct time (EA-105045)
2017-08-29 10:16:35 +02:00
Dmitry Jemerov
f7f3bacc8e
Add missing write action (EA-102929)
2017-08-29 10:16:34 +02:00
Dmitry Jemerov
cc5d23440e
Correctly check for project disposed (EA-103064)
2017-08-29 10:16:33 +02:00
Alexey Tsvetkov
ac3beabf43
Update 'idea.plugins.compatible.build' in KotlinCoreEnvironment
...
When compiler test was run before Intellij tests,
KotlinCoreEnvironment set the 'idea.plugins.compatible.build'
system property to '171.9999', which then prevented
Kotlin plugin from loading in Intellij tests (so all these tests failed),
because Kotlin plugin has 'sinceBuild' set to '172.1'.
2017-08-29 04:28:10 +03:00
Alexey Tsvetkov
cb1ffdccd7
Add test where unused file is removed
2017-08-29 04:28:10 +03:00
Alexey Tsvetkov
10feac9402
Remove CacheVersionChangedIT#testExperimentalCacheVersionChanged
...
experimental-format-version.txt was removed recently.
See also 534db2d45b
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
8e10a22aab
Use correct task name in KaptIncrementalIT test
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
66a77c7ec2
Fix Gradle IC cache version checking
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
cf72b14b34
Fix typo in test name
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov
141c889a84
Make test case more useful
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov
5f9bad5905
Add JS specific build logs to inline properties IC tests
...
Unlike the JVM target platform, the JS back-end does
not track getters' and setters' usages separately,
so when either accessor of some property is changed,
all usages of that property will be rebuilt.
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov
73b63bb343
Refactor inline properties tests
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov
44e8ae3571
JS IC: detect inline function changes
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov
b73d5cbe1f
Mock constant search in JPS tests
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov
2312013c41
Move JVM specific IC tests to separate dir
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov
556c43ae00
Update lookup tracker test "classifierMembers"
...
Before the change, the initial build has been failing,
so lookups from deserialized descriptors were not tested.
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov
4a591bf5b6
Avoid processing JS IC output when compilation failed
2017-08-29 04:28:05 +03:00
Alexey Tsvetkov
66cb45c202
Minor: replace forEach with filterTo
2017-08-29 04:28:05 +03:00
Alexey Tsvetkov
dbe3baf740
Minor: mark calculateSourcesToCompile abstract
2017-08-29 04:28:04 +03:00
Alexey Tsvetkov
919daefb0e
Rename IncrementalCacheImpl->IncrementalJvmCache
2017-08-29 04:28:04 +03:00
Alexey Tsvetkov
093bbc069a
Fix typo destonationDir->destinationDir
2017-08-29 04:28:04 +03:00
Alexey Tsvetkov
b28382b8e7
Ignore out directory everywhere
...
After IDEA-175172 JPS does not use Gradle's output directories
when buildsing imported projects.
Now JPS uses an `out/` directory instead,
which wasn't gitignored anywhere besides the project's root.
2017-08-29 04:28:03 +03:00
Alexey Tsvetkov
1c4ada2008
Fix searching serialized classes package contains multiple fragments
2017-08-29 04:28:03 +03:00
Alexey Tsvetkov
b54414d628
Implement Gradle JS IC support
...
#KT-19956 fixed
To try the experimental JS IC add
'kotlin.incremental.js = true' to a 'local.properties'
or 'gradle.properties' file in Gradle project's root.
2017-08-29 04:23:02 +03:00
Alexey Tsvetkov
eeb90656dc
Exclude generated IC tests from ant build
...
Generated tests depend on the annotations from the `tests-common` module.
Testing utils from test root of the `incremental-compilation-impl` module
are also used in Gradle tests, so the test root is built in the ant build too.
However building `tests-common` separately from the compiler is complicated,
so I decided to exclude generated tests from 'kotlin-build-common-test.jar'.
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov
7ecf5abdc7
Add class hierarchy tests to JS and JVM IC tests
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov
0a5fe3ef7c
Move JVM specific IC tests with class hierarchy changes
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov
e16c5ddb97
Avoid using JVM only APIs in IC tests to reuse with JS
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov
23bc907d3f
Move multi-module IC tests to separate dir
...
At the moment they are used only with JPS
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
166883d847
Move JVM specific IC test data to separate dir
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
7810da7018
Add IC compiler tests with Java
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
71e8f16906
Generate IC compiler tests instead of using parametrized runner
...
# Conflicts:
# compiler/incremental-compilation-impl/incremental-compilation-impl.iml
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
52b638ddb3
Throw exception if initial build has failed in IC tests
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
c7775b8d11
Write build info only on successful build
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
20551f6c99
Do not report error when JS IC is enabled and no source files is specified
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
bb1cba67b7
Implement JS IC
2017-08-29 02:24:37 +03:00