-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
Circular component dependency detected with manual IEnumerable<T> registration #648
Comments
Interesting. I'm guessing it's got something to do with both
We'll have to investigate how to address that. It's a bit of an edge case - most folks don't explicitly register the |
This may or may not tie into the newly opened design-based issue #798. |
out of curiosity i smoke tested this in 4.7. the above code now results in a
which i believe is the correct behaviour? and hence this can be closed? |
Nice catch. Let me add a unit test in for this to make sure we don't regress and if it passes we can call it good. |
Unfortunately it looks like this one still fails. I added a failing unit test here (marked skip) so we can easy go back and test to see if it's fixed, but... not quite fixed yet. Feel free to check out the unit test to see if I incorrectly specified it. |
I did figure out that, as I suspected, it has to do with the explicit registration of |
Not clear if it overlaps, but we do have #798 where we're looking at improving the circular dependency handling. I think this has to do with the way the It occurred to me that it might be better to solve the problem by creating a |
I just ran the skipped unit test ( |
I'm not sure what changed to make it pass, but if it's passing, it sounds like this is resolved. Maybe some of the internals work that's happened in the last 10-ish months? |
We've uncommented the test as part of PR #962 to ensure there's no regression here. It's passing and, ideally, should continue to pass so... I'm closing this. |
Here is a console application that causes a DependencyResolutionException. There is no actual problem with the dependency tree. The error message wrongly states that IEnumerable<IPlugin> depends on PluginsViewModel.
The text was updated successfully, but these errors were encountered: