needle icon indicating copy to clipboard operation
needle copied to clipboard

Getting double results

Open alexvbush opened this issue 3 years ago • 4 comments

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?

alexvbush avatar Sep 13 '22 17:09 alexvbush

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

irfanabdulkhaliq avatar Mar 07 '24 19:03 irfanabdulkhaliq

@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.

alexvbush avatar Mar 12 '24 14:03 alexvbush

Did you solve the problem?

kaaaaai avatar May 21 '24 03:05 kaaaaai

@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!

kaaaaai avatar May 21 '24 03:05 kaaaaai