manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.42k stars 125 forks source link

Android Studio: Usage of android dependency for Build Variants `manifold-preprocessor-android-syms` causes NPE #635

Closed rsmckinney closed 3 weeks ago

rsmckinney commented 3 weeks ago

Android Studio: Usage of android dependency for Build Variants manifold-preprocessor-android-syms causes NPE.

This dependency must be paired with manifold-preprocessor and is setup like so:

dependencies {
. . .
    compileOnly "systems.manifold:manifold-preprocessor:${project.manifoldVersion}"
    annotationProcessor "systems.manifold:manifold-preprocessor:${project.manifoldVersion}"
    compileOnly "systems.manifold:manifold-preprocessor-android-syms:${project.manifoldVersion}"
}

With this config, editing preprocessor statements produce an NPE in Android Studio.

From: https://discord.com/channels/1263152297190359132/1263191333951246419/1300670488342695977

rsmckinney commented 3 weeks ago

Fix available with release 2024.1.39