Skip to content

Commit af0c392

Browse files
author
Aleksei.Cherepanov
committed
[JPS] Disable processing of removed classes in JPS graph implementation
How it worked before: We run the compiler to build psi from dirty files before compilation round and extract existing class declarations from it. Then we compare the current ones with cached declarations from the classToOutput map to find removed classes. We get their fqname and map on lookups to expand the scope with affected files before the main compiler launch. Motivation: This approach does not work with the new JPS graph implementation because we don't have the own lookup storage anymore. How it will work now: This logic will be replaced with expanding the compilation scope on the JPS graph side. Also, this change will help to reduce time spent on loading caches and creating environment, especially on modules without Kotlin files Relates to KT-65043 (cherry picked from commit 98e45b6)
1 parent 24e16d8 commit af0c392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
200200
val kotlinChunk = kotlinContext.getChunk(chunk) ?: return
201201
kotlinContext.checkChunkCacheVersion(kotlinChunk)
202202

203-
if (!kotlinContext.rebuildingAllKotlin && kotlinChunk.isEnabled) {
203+
if (!isKotlinBuilderInDumbMode && !kotlinContext.rebuildingAllKotlin && kotlinChunk.isEnabled) {
204204
markAdditionalFilesForInitialRound(kotlinChunk, chunk, kotlinContext)
205205
}
206206

0 commit comments

Comments
 (0)