"Could not find a part of the path" #32

Closed
will-hart opened this Issue Jan 2, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@will-hart
Owner

will-hart commented Jan 2, 2015

Issue reported on Anvil Sentry:

DirectoryNotFoundException
Could not find a part of the path 'C:\Users\XXXX\Desktop\XXXX\mission_data.json'.

Stacktrace (most recent call first):

  Module "MS.Internal.Threading.ExceptionFilterHelper", line 2, in TryCatchWhen
    System.Object TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
  Module "System.Windows.Threading.ExceptionWrapper", line 123, in InternalRealCall
    System.Object InternalRealCall(System.Delegate, System.Object, Int32)
  Module "System.Windows.Controls.MenuItem", line 24, in InvokeClickAfterRender
    System.Object InvokeClickAfterRender(System.Object)
  Module "MS.Internal.Commands.CommandHelpers", line 54, in CriticalExecuteCommandSource
    Void CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
  Module "System.Windows.Input.RoutedCommand", line 15, in ExecuteCore
    Boolean ExecuteCore(System.Object, System.Windows.IInputElement, Boolean)
  Module "System.Windows.Input.RoutedCommand", line 120, in ExecuteImpl
    Boolean ExecuteImpl(System.Object, System.Windows.IInputElement, Boolean)
  Module "System.Windows.UIElement", line 31, in RaiseEvent
    Void RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
  Module "System.Windows.UIElement", line 89, in RaiseEventImpl
    Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
  Module "System.Windows.EventRoute", line 232, in InvokeHandlersImpl
    Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
  Module "System.Windows.RoutedEventHandlerInfo", line 48, in InvokeHandler
    Void InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
  Module "System.Windows.RoutedEventArgs", line 7, in InvokeHandler
    Void InvokeHandler(System.Delegate, System.Object)
  Module "System.Windows.Input.ExecutedRoutedEventArgs", line 7, in InvokeEventHandler
    Void InvokeEventHandler(System.Delegate, System.Object)
  Module "System.Windows.UIElement", line 19, in OnExecutedThunk
    Void OnExecutedThunk(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
  Module "System.Windows.Input.CommandManager", line 77, in OnExecuted
    Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
  Module "System.Windows.Input.CommandManager", line 12, in TransferEvent
    Void TransferEvent(System.Windows.IInputElement, System.Windows.Input.ExecutedRoutedEventArgs)
  Module "System.Windows.Input.RoutedCommand", line 15, in ExecuteCore
    Boolean ExecuteCore(System.Object, System.Windows.IInputElement, Boolean)
  Module "System.Windows.Input.RoutedCommand", line 120, in ExecuteImpl
    Boolean ExecuteImpl(System.Object, System.Windows.IInputElement, Boolean)
  Module "System.Windows.UIElement", line 31, in RaiseEvent
    Void RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
  Module "System.Windows.UIElement", line 89, in RaiseEventImpl
    Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
  Module "System.Windows.EventRoute", line 232, in InvokeHandlersImpl
    Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
  Module "System.Windows.RoutedEventHandlerInfo", line 48, in InvokeHandler
    Void InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
  Module "System.Windows.RoutedEventArgs", line 7, in InvokeHandler
    Void InvokeHandler(System.Delegate, System.Object)
  Module "System.Windows.Input.ExecutedRoutedEventArgs", line 7, in InvokeEventHandler
    Void InvokeEventHandler(System.Delegate, System.Object)
  Module "System.Windows.UIElement", line 19, in OnExecutedThunk
    Void OnExecutedThunk(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
  Module "System.Windows.Input.CommandManager", line 3, in OnExecuted
    Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
  Module "System.Windows.Input.CommandManager", line 88, in FindCommandBinding
    Void FindCommandBinding(System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)
  Module "System.Windows.Input.CommandManager", line 0, in FindCommandBinding
    Void FindCommandBinding(System.Windows.Input.CommandBindingCollection, System.Object, System.Windows.RoutedEventArgs, System.Windows.Input.ICommand, Boolean)
  Module "System.Windows.Input.CommandManager", line 54, in ExecuteCommandBinding
    Boolean ExecuteCommandBinding(System.Object, System.Windows.Input.ExecutedRoutedEventArgs, System.Windows.Input.CommandBinding)
  Module "System.Windows.Input.CommandBinding", line 39, in OnExecuted
    Void OnExecuted(System.Object, System.Windows.Input.ExecutedRoutedEventArgs)
  File "g:\Data\AnvilEditor\AnvilEditor\MainWindow.xaml.cs", line 838, in SaveMission
    Void SaveMission(System.Object, System.Windows.RoutedEventArgs)
  Module "System.IO.StreamWriter", line 0, in .ctor
    Void .ctor(System.String)
  Module "System.IO.StreamWriter", line 59, in .ctor
    Void .ctor(System.String, Boolean, System.Text.Encoding, Int32, Boolean)
  Module "System.IO.StreamWriter", line 8, in CreateFile
    System.IO.Stream CreateFile(System.String, Boolean, Boolean)
  Module "System.IO.FileStream", line 14, in .ctor
    Void .ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean)
  Module "System.IO.FileStream", line 985, in Init
    Void Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
  Module "System.IO.__Error", line 261, in WinIOError
    Void WinIOError(Int32, System.String)

@will-hart will-hart self-assigned this Jan 2, 2015

@will-hart will-hart added this to the 7.x milestone Jan 2, 2015

@will-hart

This comment has been minimized.

Show comment
Hide comment
@will-hart

will-hart Jan 2, 2015

Owner

Most likely explanation for this is renaming the folder whilst Anvil is open.

As of 866f0fe Anvil now shows a warning and recreates the loaded path. Users will have to merge/copy/paste manually.

Owner

will-hart commented Jan 2, 2015

Most likely explanation for this is renaming the folder whilst Anvil is open.

As of 866f0fe Anvil now shows a warning and recreates the loaded path. Users will have to merge/copy/paste manually.

@will-hart will-hart closed this Jan 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment