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

Getting "Dagger does not support injection into private fields" when Dagger is not in the classpath #36

Open
DavidA94 opened this issue May 28, 2021 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@DavidA94
Copy link

I have the Dagger plugin installed in IntelliJ, for projects which use Dagger.

I have another project which uses Spring. In one of my files, which uses Spring injection, using the javax.inject.Inject annotation, IntelliJ gives the following error on all private fields which are annotated with @Inject.

Dagger does not support injection into private fields

When Dagger is on in the classpath, then the Dagger plugin should not be active.

@thsaravana thsaravana self-assigned this Aug 20, 2021
@thsaravana thsaravana added bug Something isn't working enhancement New feature or request labels Aug 20, 2021
@thsaravana
Copy link
Member

Will be fixing this in the next update.
Which version of the plugin are you using?

@thsaravana thsaravana added the help wanted Extra attention is needed label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants