Comments (8)
I'm going to be building an eclipse plugin that pulls the code-gen into
a separate phase, as well as things like full graph processor which M2E
will be able to properly configure within eclipse. Not there yet.
c.
Pierre-Yves Ricau wrote:
I took the CoffeeModule example and added a random :
@Inject String someString;The FullGraphProcessor reported an error when started from Maven.
However, it didn't report any error when started from Eclipse. It
actually runs but no error so far.I'll try to put some breakpoints in it when I have time.
Reply to this email directly or view it on GitHub:
#45
from dagger.
m2e-apt works fine for me, though it requires either:
- explicitly putting Dagger as a dependency of the maven-compiler-plugin
- explicitly listing the processors rather than relying on discovery
- using the org.bsc.maven:maven-processor-plugin (and rely on true discovery in the classpath)
I've used the latter in the example in Sheath, but I'm going to switch to the maven-compiler-plugin as the maven-processor-plugin has no mean of specifying the source compatibility (I'm using OpenJDK 7, so it's implicitly using -source 1.7
which causes warnings with the processors, that declare being compatible with SourceVersion.RELEASE_6
only)
from dagger.
I'm going to be building an eclipse plugin that pulls the code-gen
Just curious, but is there something specific you'll be getting by
building an Eclipse plugin?
I've had fine luck with running processors directly in vanilla Eclipse,
and seems like the APT API is nicer/easier to use than a full Eclipse
plugin.
from dagger.
There's not just annotation pre-processing involved, but also other
things like a graph validation pass, etc. Maybe these can still all work
- I still need to build some plugins for various build systems so these
can be fully baked into the build process. Still under investigation.
Christian.
Stephen Haberman wrote:
I'm going to be building an eclipse plugin that pulls the code-gen
Just curious, but is there something specific you'll be getting by
building an Eclipse plugin?I've had fine luck with running processors directly in vanilla Eclipse,
and seems like the APT API is nicer/easier to use than a full Eclipse
plugin.
Reply to this email directly or view it on GitHub:
#45 (comment)
from dagger.
There's not just annotation pre-processing involved, but also other
things like a graph validation pass, etc.
Seems like one of the processors I wrote cached data across
invocations; so even when Eclipse/javac called it incrementally with
"units 1 and 2 changed", it would have cached the info for the other
units it had previously generated, so could re-apply program-wide type
logic on each incremental pass.
Unfortunately I forget the details...so, sorry, I'm not being very
helpful, just musing that it seems possible.
from dagger.
Should this issue be closed? We have #110 already (which is fixed BTW, but hasn't been closed yet) which covers error reporting as annotations in the editors, and I think #117 fixed the iterating/incremental build (IIRC, during my manual tests for #110, FullGraphProcessor
reporting was OK)
from dagger.
I have to take back my above claim. Looks like an Eclipse plugin would help here; see my comment on issue #126 for more info on what's currently missing.
from dagger.
This has been working for me for quite a while. I'm not sure what's still missing. :/ Not even from your comment in #126, @tbroyer. I get errors in graph validation from chagnes using m2e and m2e-apt.
from dagger.
Related Issues (20)
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 2
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 1
- android.app.Application does not implement dagger.android.HasActivityInjector HOT 3
- --
- Android Context HOT 1
- Subcomponent inside subcomponent HOT 1
- Error when a component is trying to include bindings with different scopes could be more informative HOT 1
- Constructor injection cannot find symbol method inject members dagger2 2.14 HOT 1
- how can i run the example of CoffeeApp.java HOT 1
- Why do Singletons need an empty default constructor? HOT 2
- dagger-compiler
- dagger.android.DispatchingAndroidInjector cannot be provided without an @Provides HOT 1
- 每次修改完java代码都需要clean项目 才能运行, HOT 1
- did u consider this kind of case: ChildFragment needs to reuse ParentFragment's object instead of creating a new one。hilt may not support this kind of case
- duplicate Nullable HOT 2
- cannot generate
- Support extending base builder classes HOT 2
- The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found. HOT 1
- Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses HOT 1
- after add hilt { enableAggregatingTask = true } dependencies tasks faild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagger.