Skip to content

Conversation

RedNesto
Copy link
Member

Namely:

  • color line markers & annotator
  • event listener line marker & annotators
  • plugin line markers

I target 2020.3 because it has the most complete UAST implementation for all major JVM language plugins; I ran into some major issues with previous versions (some even affected Java code.)

I encountered a few minor problems so far:

  • Annotations & color line markers do not work in Groovy, but are fine in Java, Kotlin and Scala. I suspect this is a bug in the Groovy plugin and given the language is not really used in modding AFAIK I will ignore this problem.

  • The Scala plugin doesn't provide a UastCodeGenerationPlugin so we can't replace color constants. Vector-based Sponge Colors do not work either because of an NPE in their PsiElementFactory.

@DenWav
Copy link
Member

DenWav commented Jan 4, 2021

Those issues don't sound too major to me. Looking forward to looking at this.

@RedNesto RedNesto force-pushed the 203/uast-framework-commons branch from 424d051 to d7d21ec Compare February 12, 2021 18:59
Copy link
Member

@DenWav DenWav left a comment

Choose a reason for hiding this comment

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

Sorry for leaving this for so long.

Just looked at this in depth and I'm really impressed, it looks great and it's still pretty clean, while greatly expanding mcdev's feature support. Very well done!

I'll leave this open just in case there's more you want to do on it - I see you mentioned this in #846, so not sure if you want to do that separately or update this PR. I'm marking this as approved, so go ahead and merge it when you're ready.

@RedNesto
Copy link
Member Author

Great :)

I just pushed a commit to fix a Ktlint violation.

I'll fix the other issue separately, getting this PR merged as-is is already good enough.

@RedNesto RedNesto merged commit 4ca6215 into minecraft-dev:2020.3 Apr 10, 2021
@RedNesto RedNesto deleted the 203/uast-framework-commons branch May 14, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants