Modularity and Vigilance issue

Ken Rogers (pixels4nickels)'s Avatar

Ken Rogers (pixels4nickels)

27 Aug, 2013 10:29 PM

Hey folks!

I have a parent context and a child context.
The parent is set to expose and the child is set to inherit.
I map an interface to a mediator using the MediatorMap in the parent context.
My child creates a view with said mapped interface.

Result: Vigilance(in parent) complains that I have already mapped this interface-
[trace] If you have overridden this mapping intentionally you can use "injector.unmap()" prior to your replacement mapping in order to avoid seeing this message.
[Fault] exception, information=Error: Injector mapping override for type [class IGameStateTriggerProvider] with name

Expected: Vigilance understands that the mapping does not exist in the child buggers off.

  1. Support Staff 1 Posted by Ondina D.F. on 28 Aug, 2013 06:56 AM

    Ondina D.F.'s Avatar

    Hi Ken,

    I tried to reproduce the error in an example, but I couldn't. Would it be possible for you to attach a simple project or to paste all relevant code in here?

    Ondina

  2. 2 Posted by Ken Rogers (pix... on 28 Aug, 2013 05:15 PM

    Ken Rogers (pixels4nickels)'s Avatar

    Thanks for reminding me it is always good to break an issue out into a minimal reproducible case. In doing this, I was not able to reproduce the error either! So after mucking around in my debugger I saw that a child was being left on the display list. Vigilance was RIGHT! I am going to be using that extension in everything during development! Who knows what kinds of headaches that error could have caused down the road!

    Thanks for the reply,
    Ken

  3. Support Staff 3 Posted by Ondina D.F. on 29 Aug, 2013 08:04 AM

    Ondina D.F.'s Avatar

    No problem, Ken.

    it is always good to break an issue out into a minimal reproducible case.

    Yes. Indeed it is.:)

  4. Ondina D.F. closed this discussion on 29 Aug, 2013 08:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac