ksp: [1.9.20-1.0.14] Error: Rewrite at slice LEXICAL_SCOPE key: ANNOTATION_ENTRY old value

error: java.lang.AssertionError: Rewrite at slice LEXICAL_SCOPE key: ANNOTATION_ENTRY old value:
org.jetbrains.kotlin.resolve.scopes.LexicalScope$Base@6f93355@116994901
new value: org.jetbrains.kotlin.resolve.scopes.LexicalScope$Base@3568912a@896045354

Seems to only happen on iOS (maybe all Kotlin Native).

Repro: https://github.com/chrisbanes/tivi/pull/1620

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 14
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

it is expected to be shipped next week

I’ve got the same problem on Kotlin/JS.

https://github.com/google/ksp/releases/tag/1.9.21-1.0.15 was released a few hours ago and I can confirm that it’s working for me.

Any estimation?

Same issue on Linux with Kotlin/JS as well. Didn’t happen in 1.0.13 but happens with 1.0.14.

Repro steps

Initial setup

  • git clone https://github.com/varabyte/kobweb
  • cd kobweb && git checkout 0.15.0
  • cd kobweb/playground # This is a nested Gradle project that includes the parent “kobweb” project

First, make sure compilation works:

  • ./gradlew :site:kobwebGenSiteEntry

Finally, see that 1.0.14 breaks things:

  • edit ../gradle/libs.versions.toml
  • Set ksp = 1.9.20-1.0.14
  • Rerun ./gradlew :site:kobwebGenSiteEntry
  •   e: java.lang.AssertionError: Rewrite at slice LEXICAL_SCOPE key: ANNOTATION_ENTRY old value: org.jetbrains.kotl
      in.resolve.scopes.LexicalScope$Base@17af8f98@397381528 new value: org.jetbrains.kotlin.resolve.scopes.LexicalSc
      ope$Base@325dbb8f@845003663                                                                                    
      <File name: KotlinLanguage.kt, Physical: true>                                                                 
      <ELEMENT>@Page("languages/kotlin")</ELEMENT>                                                                   
      @Composable                                                                                                    
      fun KotlinLanguagePage() {                                                                                     
          playground.components.layouts.PageLayout("KOTLIN") {                                                       
              org.jetbrains.compose.web.dom.P {                                                                      
                  org.jetbrains.compose.web.dom.Text("Concise. Cross‑platform. Fun.")                                
              }                                                                                                      
              org.jetbrains.compose.web.dom.P {                                                                      
                  com.varabyte.kobweb.silk.components.navigation.Link("https://kotlinlang.org", "https://kotlinlang.o
      rg")                                                                                                           
              }                                                                                                      
          }                                                                                                          
      }          
    

offending commit seems to be d1e080f, however this does not look to be a KMP specific commit, my guess is this commit exposed some underlying issues.

Will it be available as 1.0.15 version? Any ETA? Thanks 🙏🏼