Creating a new dependency from Document Menu does not work first time

Goood morning.

It looks like creating a new VL dependency on the fly does not work the first time, but only on subsequent tries.

Repro steps :

  • Open a fresh vvvv gamma 6.7-220, save your patch somewhere
  • Klick Document Menu/Dependencies/Files/Add New
  • Give a name to your document and save it
  • The following error pops in the “old school” console
NullReferenceException: "Object reference not set to an instance of an object."
    StackTrace:
        VL.HDE.PatchEditor.NavigationMenuProvider+<AddNewDependency>d__91 { private virtual void MoveNext() { ... } } 
        System.Runtime.ExceptionServices.ExceptionDispatchInfo { public void Throw() { ... } } 
        System.Threading.Tasks.Task+<>c { internal void <ThrowAsync>b__128_0(object state) { ... } } 
         { public static object InvokeStub_SendOrPostCallback.Invoke(object , System.Span<object> ) { ... } } 
        System.Reflection.MethodBaseInvoker { internal object InvokeWithOneArg(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture) { ... } } 

  • Check your dependencies : the file you intended to create is not listed as a dependency and does not exist in the explorer
  • Do it again : it now works

Thanks for considering!

Cheers

EDIT it looks like when doing it using the CTRL + SHIFT + N shortcut, it works on first try.

hm… tried your exact steps with the version you gave and cannot reproduce… can you repro this consistently?

Just tried my repro steps again and it worked on first try.

I had seen it happening multiple times before making the report though, with always the same behavior that it’d fail on first try and work on all subsequent ones.

Will update here if I catch it again, thanks for having a look.