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 double results #438

Open
alexvbush opened this issue Sep 13, 2022 · 4 comments
Open

Getting double results #438

alexvbush opened this issue Sep 13, 2022 · 4 comments

Comments

@alexvbush
Copy link

Seems like I'm getting double results when Needle identifies missing dependencies.

ios % needle generate upkeep/NeedleGenerated.swift Source
warning: ❗️ Could not find a provider for (userDefaults: UserDefaults) which was required by NotificationHubMenuDependency, along the DI branch of ^->AppDependencies->NotificationHubComponent->NotificationHubMenuComponent.
warning: ❗️ Could not find a provider for (userDefaults: UserDefaults) which was required by NotificationHubMenuDependency, along the DI branch of ^->AppDependencies->NotificationHubComponent->NotificationHubMenuComponent.
warning: ❗️ Missing one or more dependencies at scope.
error: 💩 Some dependencies are missing, please look at the warnings above for the list.

Is this expected or am I configuring something wrong?

@irfanabdulkhaliq
Copy link

Hi @alexvbush I am facing same issue please let me know how you solved the issues. I have been stuck here for 5 days.

@alexvbush
Copy link
Author

@irfanabdulkhaliq, haven't resolved yet, although we're still on the older version of needle, not sure if it got fixed lately.
At the end of the day it's not a big issue because when you resolve all the missing dependencies it goes away and if you have any, well, then it will just show up twice in your results.

@kaaaaai
Copy link

kaaaaai commented May 21, 2024

Did you solve the problem?

@kaaaaai
Copy link

kaaaaai commented May 21, 2024

@alexvbush @irfanabdulkhaliq I got it, it could be due to this update.
image

If you display

warning: ❗️ Along the DI branch of ^->AppDependencies->NotificationHubComponent->NotificationHubMenuComponent, the NotificationHubMenuDependency required ( userDefaults: UserDefaults) provider.

Trying to make the NotificationHubMenuDependency's inherited class public might solve the problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants