Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kotlin to 1.8.10, xprocessing to 1.6.0-alpha01 #317

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

elihart
Copy link
Contributor

@elihart elihart commented Apr 5, 2023

Updates kotlin, ksp, and the xprocessing library.

Notably, the androidx.room:room-compiler-processing library (aka xprocessing) has been updated to 2.6.0-alpha01. This version is incompatible with previous versions due to a breaking API change. All annotation processors using this library must be on the same version. Other annotation processors such as Epoxy and Paris also use xprocessing and if you use them you need to use a version of them that also uses xprocessing 2.6.0-alpha01

For that reason we shouldn't merge this until all other planned work is merged and released so that it can be used without forcing updates of other libraries

@@ -107,7 +106,11 @@ abstract class BaseProcessor(
} catch (e: Throwable) {
// Errors thrown from within KSP can get lost, making the root cause of an issue hidden.
// This helps to surface all thrown errors.
messager.printMessage(Diagnostic.Kind.ERROR, e.stackTraceToString())
if (e is ShowkaseProcessorException && e.element != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i noticed that the showkase logger in place doesn't every actually get used, so error messages haven't been logging the element. i added this to help, but it seems like there needs to be a bigger clean up

)
}

when (environment.backend) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in KSP the type is now the color value class, not just Long

.kind

enclosingElementKind == FILE_FACADE_KIND
return kotlinMetadata == null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a new version of the metadata class that had breaking changes

@vinaygaba vinaygaba merged commit 360259e into master Aug 29, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants