-
Notifications
You must be signed in to change notification settings - Fork 25
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
Compilation Failure 'General error during class generation: rx.lang.groovy.RxGroovyPropertiesModuleFactory' #7
Comments
I have the same problem Andrew. Works fine in pure Groovy app, but fails in my Ratpack app. |
Had to add this to my gradle build
rather than directly adding the rx-java dependency |
@aaronzirbes do you know what |
It might be because there are different versions of groovy used to run vs. compile? That class is extending Check your runtime dependency tree with Shots in the dark really at this point... |
@pieces029 @aaronzirbes Are you still experiencing this issue? I just started to use RxGroovy and got the same error. I did have a Ratpack dependency in the failing project and that smelled even more like this issue. I didn't really need that dependency so I refactored it out -- but sadly the same error. Any insight would be greatly appreciated. My stack trace is essentially the same so I won't post that. These are my declared dependencies:
Of course, you don't know anything about my private JAR and it sucks in a lot. Following is the dependency tree. I've looked at it up and down but I can't see anything that looks like trouble. (I did try reverting back to Groovy 2.4.5, but that didn't change anything).
|
I am actually not seeing this issue anymore on the latest version of the groovy android plugin, and latest version of this library. Should I update this issue's name to reflect more of what the issue is? |
@pieces029 Good point: I am not doing anything at all on the Android. It is definitely that same error, though. |
Just an update: I forked the repo and rebuilt a JAR with When I've seen inexplicable cast cast errors before it's been because there's more than one version of that class floating around -- essentially, the same class in two or more JARs. That jibes with the dependency theory earlier in this thread. As time permits, I will keep experimenting. |
FWIW just on a hunch, I finally found it! I think there's a Groovy issue, rather than an RxGroovy problem. I had been using the @CompileDynamic annotation. When I remove it, this error goes away. |
I see same error in my spring boot app. After I commented out all @CompileStatic annotations, the error goes away. |
The text was updated successfully, but these errors were encountered: