Copy sources from kotlin-compiler to override intellij-core#2785
Merged
Conversation
ting-yuan
approved these changes
Feb 11, 2026
Merged
1 task
sourjatilak
pushed a commit
to sourjatilak/M3UAndroid
that referenced
this pull request
May 4, 2026
KSP 2.3.5 has a known race where ApplicationManager.getApplication()
returns null on cold Gradle runs (no daemon, fresh config cache), producing:
Cannot invoke "ksp.com.intellij.openapi.application.Application.getService(...)"
because the return value of "ksp.com.intellij.openapi.application.ApplicationManager.getApplication()" is null
This hits our GitHub Actions workflow (android.yml, ubuntu-latest, Zulu
JDK 17) but not warm local builds. Tracked as google/ksp#2763, fixed by
google/ksp#2785 and released in KSP 2.3.6; 2.3.7 (latest) ships the same
fix plus upstream dependency crash fixes.
Verified locally: fresh :app:smartphone:assembleRelease with
KSP 2.3.7 -> BUILD SUCCESSFUL, no NPE, no new warnings on our sources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BinaryFileTypeDecompilers and CoreProgressManager sources are copied over from https://github.com/JetBrains/kotlin to override the ones that KSP consumes via intellij-core
This should fix #2763