Alexey Tsvetkov
f94a2d688d
Report correct source to output mapping for kjsm files
...
Now IC can correctly remove kjsm files when source files are changed
Original commit: 2584143e92
2018-03-19 18:04:33 +03:00
Zalim Bashorov
1772be8ca5
Fix copyright's start year in generated tests
...
Original commit: 9970dd051f
2018-03-14 15:04:58 +03:00
Alexander Udalov
55d5c602ae
Move essential metadata-related classes to 'metadata' and 'metadata.jvm'
...
Original commit: 3f3e05a9d2
2018-03-14 12:25:16 +01:00
Alexander Udalov
5f88fbcd3f
Remove dependency of NameResolverImpl on FqName
...
Remove AbstractJsProtoComparisonTest.getProtoData in favor of
(apparently copy-pasted) IncrementalJsCache.getProtoData
Original commit: b07c6086cd
2018-03-14 12:25:12 +01:00
Alexander Udalov
8845f7051b
Make NameResolver.getClassId extension instead of member
...
To get rid of dependency of NameResolver on ClassId
Original commit: e31f286444
2018-03-14 12:25:11 +01:00
Alexander Udalov
470c4eea57
Move ProtoBuf classes to package org.jetbrains.kotlin.metadata
...
Original commit: 27ad4f7d5d
2018-03-14 12:25:10 +01:00
Ilya Gorbunov
08f6569827
Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
...
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test
Original commit: 5c0cc5f799
2018-02-26 17:11:11 +03:00
Alexey Tsvetkov
773975e055
Synchronize access to lookup storage in JPS
...
Storage operations are synchronized already,
but BuildDataManager.getStorage is not synchronized,
so maybe it is possible to create multiple LookupStorage
instances.
#KT-22535
#KT-22995
Original commit: 8ab9366ae5
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov
2454ee30bb
Compare JS output files against file instead of hardcoded set
...
A difference is not obvious when two sets are compared:
there might be just one different element, but
sets would be printed in one line in iteration order
(which is non-fixed for hashsets).
Also the properties:
EXPECTED_JS_FILES_IN_OUTPUT_FOR_STDLIB_ONLY,
EXPECTED_JS_FILES_IN_OUTPUT_FOR_MODULE_STDLIB_ONLY,
EXPECTED_JS_FILES_IN_OUTPUT_NO_COPY,
EXPECTED_JS_FILES_IN_OUTPUT_WITH_ADDITIONAL_LIB_AND_DEFAULT_DIR,
EXPECTED_JS_FILES_IN_OUTPUT_WITH_ADDITIONAL_LIB_AND_CUSTOM_DIR
are hard to distinguish in code and are not convenient to edit.
Original commit: 7881a305d9
2018-02-22 01:13:09 +03:00
Alexander Udalov
2247e501b4
Fix JS stdlib file names in KotlinJpsBuildTest
...
Add "kotlin-experimental.js", "kotlin-experimental.meta.js" and refactor
surroundings
Original commit: 96e33dabcf
2018-02-16 17:09:34 +01:00
Alexander Udalov
1bea0a0e47
Add getExtensionOrNull utility for protobuf messages
...
Original commit: 7123202670
2018-02-08 17:08:33 +01:00
Nikolay Krasko
45f3911ebc
Update idea to 173.3.4 (173.4548.28)
...
Original commit: f05e926670
2018-02-03 00:15:45 +03:00
Alexey Tsvetkov
28a2d4727a
Test JPS with Daemon and IC
...
Original commit: 220fab0d3f
2018-01-16 21:09:57 +03:00
Alexey Tsvetkov
f1efa4c872
Minor: move 'KotlinJpsBuildTestIncremental' to separate file
...
Original commit: ca09be1411
2018-01-16 21:09:57 +03:00
Nikolay Krasko
57a985df3a
Modify incremental test in 173 branch - files are not created anymore
...
Original commit: aee7329b89
2018-01-12 13:54:45 +03:00
Dmitry Jemerov
f99df874b0
Update copyright in generated tests
...
Original commit: e80dae1802
2018-01-10 11:55:28 +01:00
Alexey Tsvetkov
f3e8e3e591
Replace testCancelLongKotlinCompilation with less flaky test
...
Original commit: a4d122478b
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
8683fce476
Turn off class redeclaration test for JS IC temporarily
...
So the tests could be run on TC.
Turn on after KT-19846 is fixed.
Original commit: 50bf74b909
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
453d38b0f7
Do not set api version to language version when language version is null
...
#KT-21852 fixed
#KT-21574 fixed
Original commit: 3f082346ae
2017-12-18 16:22:07 +03:00
Alexander Udalov
cf59f84273
Fix lookup tracker tests after 83b32e11a7f
...
Standard library is no longer automatically added to the classpath when
-Xbuild-file is used. Before 83b32e11a7f, these tests worked because no
matter whether -Xbuild-file was used or not, the automatically computed
classpath (which erroneously was used to populate content roots in the
compiler) contained the standard library (see
K2JVMCompiler.configureContentRoots)
Original commit: 9e82ab38f0
2017-12-14 11:37:56 +01:00
Denis Zharkov
c3ea422125
Record special name lookup when trying use interface as a SAM
...
It was already working in JPS, because it see our synthetic classes
as subclasses for SAM's, but with non-JPS build we have to manually
tracking places that should be recompiled after SAM members are changed
Original commit: df533053f9
2017-12-12 16:17:58 +03:00
Denis Zharkov
30eec21d1d
Refine dirty files computation in case of Java source changes
...
#KT-17621 In Progress
Original commit: ae6421476d
2017-12-12 16:17:58 +03:00
Alexey Tsvetkov
e06f002f45
Rebuild when language/api version is changed (JPS)
...
#KT-20757 fixed
Original commit: 913a997f24
2017-11-23 14:46:23 +03:00
Alexey Tsvetkov
272c198ff6
Avoid deserializing .kotlin_module as class proto
...
#KT-20184 fixed
Original commit: 18261838b6
2017-11-16 14:47:59 +03:00
Alexey Sedunov
5ec73d6fbd
Misc: Protect freeArgs with FreezableVar
...
Original commit: 87f3d24f9b
2017-10-24 15:43:51 +03:00
Alexey Andreev
1079d74422
Support generation of relative path in JS source maps in JPS builder
...
See KT-20820
Original commit: 2fbecfdd9c
2017-10-23 17:19:50 +03:00
Nikolay Krasko
0b9884d4bf
Fix tests failure on Windows agents because of wrong slashes
...
Original commit: 3c0329b458
2017-10-12 12:00:35 +03:00
Alexey Andreev
2cf01f60b3
JS: generate paths in source maps relative to .map file location
...
See KT-19818
Original commit: 9008791a54
2017-10-06 15:24:25 +03:00
Alexey Tsvetkov
060686e22e
Change test data so IC and non IC warnings count match
...
When IC is on and new Kotlin class is referencing
new Java class, new Kotlin file is compiled twice,
because JPS thinks new Kotlin class is affected by
new Java class (see https://youtrack.jetbrains.com/issue/KT-20318 ).
This does not happen when IC is off, and KotlinBuilder
requests chunk rebuild (see previous commit).
I decided to remove the reference, because the issue
is now known, and the reference is non critical for the test.
Original commit: 1c7b8ec938
2017-09-26 16:35:24 +03:00
Alexey Tsvetkov
6d868d3d67
Request CHUNK_REBUILD when IC is off and there are dirty Kotlin files
...
Otherwise unexpected compile error might happen,
when there are Groovy files, but they are not dirty,
so Groovy builder does not generate source stubs,
and Kotlin builder is filtering out output directory
from classpath (because it may contain outdated Java classes).
Previously the issue was not detected,
because it was not possible to turn off the IC completely (in JPS),
only switch to the legacy IC.
#KT-20138
Original commit: 7a5e0e1107
2017-09-26 16:35:24 +03:00
Alexander Podkhalyuzin
e3deaa5778
Clean idea files generated on the gradle import, add them to .gitignore
...
Original commit: 3f8170d369
2017-09-19 23:58:27 +02:00
Nikolay Krasko
8a6ed0dac4
Force remove JpsModel in BaseKotlinJpsBuildTestCase tests
...
Original commit: 6fd3ce07b3
2017-09-08 12:56:28 +03:00
Alexey Tsvetkov
ed553b80e9
Add test where unused file is removed
...
Original commit: cb1ffdccd7
2017-08-29 04:28:10 +03:00
Alexey Tsvetkov
88798072a6
Fix typo in test name
...
Original commit: cf72b14b34
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov
c6608a057e
Make test case more useful
...
Original commit: 141c889a84
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov
92b567139c
Refactor inline properties tests
...
Original commit: 73b63bb343
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov
30f808400b
Mock constant search in JPS tests
...
Original commit: b73d5cbe1f
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov
3021bce5d1
Move JVM specific IC tests to separate dir
...
Original commit: 2312013c41
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov
b72f00260b
Avoid processing JS IC output when compilation failed
...
Original commit: 4a591bf5b6
2017-08-29 04:28:05 +03:00
Alexey Tsvetkov
32e44dfe91
Fix searching serialized classes package contains multiple fragments
...
Original commit: 1c4ada2008
2017-08-29 04:28:03 +03:00
Alexey Tsvetkov
602929d142
Move JVM specific IC tests with class hierarchy changes
...
Original commit: 0a5fe3ef7c
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov
f81f5421a9
Move multi-module IC tests to separate dir
...
At the moment they are used only with JPS
Original commit: 23bc907d3f
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
c55df3ffab
Move JVM specific IC test data to separate dir
...
Original commit: 166883d847
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
3bb9a54ef3
Refactor incremental services
...
Original commit: 4aea9b349c
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov
2fbd8c4beb
Introduce ChangesCollector
...
Original commit: 6fedf07f56
2017-08-29 02:24:37 +03:00
Mikhail Glukhikh
53911972cb
Eliminate a set of warnings, mostly nullability ones
...
Original commit: 3623f581b8
2017-08-18 15:10:27 +03:00
Sergey Igushkin
733421c92b
Fix compilation error in AbstractLookupTrackerTest.kt
...
Original commit: 71bf649b1e
2017-08-14 19:27:50 +03:00
Alexey Tsvetkov
9d6cd6f0e2
Normalize paths in AbstractLookupTrackerTest
...
Otherwise the tests are failing on Windows
Original commit: 0226d15d29
2017-08-11 20:51:06 +03:00
Alexey Tsvetkov
23c84d07e2
JPS: completely skip chunk containing only dummy targets
...
Such chunks were added in intellij-community, see
commit fdeae7754c593e78b6748dfa66ce7198c2780d35
(https://github.com/JetBrains/intellij-community/commit/fdeae7754c593e78b6748dfa66ce7198c2780d35 )
Original commit: 99439620d4
2017-08-10 22:05:48 +03:00
Alexey Tsvetkov
450022e5fd
Add JS specific proto comparison test
...
Original commit: 239943867b
2017-08-10 21:19:42 +03:00