From 82984089f0881612019cda4a240df5c3ce300873 Mon Sep 17 00:00:00 2001 From: Roman Golyshev Date: Wed, 28 Oct 2020 14:07:34 +0300 Subject: [PATCH] KT-42274 Update `SOURCE_STUB_VERSION` This update should have been done in 4b7d34b53778aa9a80f943461c20db293468410d commit, as it is stated in the `KtTokens.MODIFIER_KEYWORDS_ARRAY` docs. Shifting all modifiers by one have led resulted in incorrect modifiers when stubs were read from the disk. Updating `SOURCE_STUB_VERSION` will make IDEA recreate all stubs from scratch ^KT-42274 Fixed --- .../src/org/jetbrains/kotlin/psi/stubs/KotlinStubVersions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/KotlinStubVersions.kt b/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/KotlinStubVersions.kt index 76c605c3f31..694de402d25 100644 --- a/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/KotlinStubVersions.kt +++ b/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/KotlinStubVersions.kt @@ -23,7 +23,7 @@ object KotlinStubVersions { // Though only kotlin declarations (no code in the bodies) are stubbed, please do increase this version // if you are not 100% sure it can be avoided. // Increasing this version will lead to reindexing of all kotlin source files on the first IDE startup with the new version. - const val SOURCE_STUB_VERSION = 137 + const val SOURCE_STUB_VERSION = 138 // Binary stub version should be increased if stub format (org.jetbrains.kotlin.psi.stubs.impl) is changed // or changes are made to the core stub building code (org.jetbrains.kotlin.idea.decompiler.stubBuilder).