Repository navigation
CodeAssist 3.5.6
🚀 CodeAssist 3.5.6
Compose preview and Kotlin completion fixes, plus important Android build and runtime fixes.
COMPOSE PREVIEW
- Class literals no longer crash the preview. A composable that uses
X::class.java(for exampleIntent(context, WelcomeActivity::class.java)) now renders instead of failing with "unsupported construct". - Top-level extension functions resolve in previews. A
@Previewthat calls your own top-level extension no longer fails with "extension has no owner".
KOTLIN EDITOR
- Auto-import now works for
setContentand similar extensions. Extension functions that apply to the implicit receiver (likeandroidx.activity.compose.setContent) are now offered and imported, instead of leaving an unresolved reference. - Picking an override no longer duplicates it. Selecting an overriding function from completion now replaces the
override funyou had already typed and indents it correctly, instead of inserting a second copy. - Completion after
?.on inferred types. Values whose type is inferred from a lambda parameter (for exampleresult.data?.in an Activity Result callback) now show member completions. _placeholders are no longer flagged. Underscore declarations are no longer reported as conflicting declarations.- Smarter completion in more places. Named arguments are offered inside
super(...),this(...), and supertype constructor calls;when (x) { is ... }on a sealed type offers its subclasses first;@offers only annotations; andimportoffers package roots.
ANDROID BUILD
- AndroidX Navigation (and other libraries) link correctly. Fixed
aapt2failures like "attribute navGraph / startDestination / defaultNavHost not found" caused by a library's resources being skipped after an older extraction. - Fixed a startup crash with Firebase and other Kotlin libraries. Resolved
NoClassDefFoundError: kotlin/collections/CollectionsKtat launch, caused by the bundled Kotlin standard library being dropped from the app. - Resource completion survives a broken XML file. A malformed
strings.xmlor other resource file no longer wipes outR.string,R.id, and otherR.*completions.
JAVA & DEPENDENCIES
- Java
.jarbuilds now run standalone. The build writesMETA-INF/MANIFEST.MFwith theMain-Class, so the jar runs outside the app. - Relocated dependencies resolve. Artifacts that were moved to a new coordinate (for example
itext7-core) now follow the relocation and pull the correct jars.
UI
- Run console is readable in light theme. Fixed washed-out run-console text on the light theme.
Full changelog: https://github.com/tyron12233/CodeAssist/releases/tag/v3.5.6