VeriorPies / ParrelSync

(Unity3D) Test multiplayer without building
MIT License
4.47k stars 314 forks source link

[BUG] FileNotFoundException: Could not find file when creating a clone #86

Open Bruno-LKWD opened 1 year ago

Bruno-LKWD commented 1 year ago

Describe the bug The project is quite massive, but when trying to generate a close for the first time I got this error, and the progress bar is stuck

FileNotFoundException: Could not find file '\Library\PackageCache\nrjwolf.games.easyandroidalerts@020cb6153b\EasyAlertsAndroidStudioProject~\.idea\libraries\Gradle____local_aars____Users_nrjwolf_Documents_Work_Unity_unity_android_easy_native_alerts_EasyAlertsAndroidStudioProject__unity_libs_classes_jar_unspecified_jar.xml'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.IO.FileInfo.get_Length () (at <695d1cc93cca45069c528c15c9fdd749>:0)
(wrapper remoting-invoke-with-check) System.IO.FileInfo.get_Length()
ParrelSync.ClonesManager+<>c.<GetDirectorySize>b__28_0 (System.IO.FileInfo file) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:603)
System.Linq.Enumerable.Sum[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:603)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:612)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:612)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:612)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:612)
ParrelSync.ClonesManager.GetDirectorySize (System.IO.DirectoryInfo directory, System.Boolean includeNested, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:612)
ParrelSync.ClonesManager.CopyDirectoryWithProgressBarRecursive (System.IO.DirectoryInfo source, System.IO.DirectoryInfo destination, System.Int64& totalBytes, System.Int64& copiedBytes, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:546)
ParrelSync.ClonesManager.CopyDirectoryWithProgressBar (System.String sourcePath, System.String destinationPath, System.String progressBarPrefix) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:519)
ParrelSync.ClonesManager.CreateCloneFromPath (System.String sourceProjectPath) (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:105)
ParrelSync.ClonesManager.CreateCloneFromCurrent () (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManager.cs:64)
ParrelSync.ClonesManagerWindow.OnGUI () (at Library/PackageCache/com.veriorpies.parrelsync@1.5.1/Editor/ClonesManagerWindow.cs:192)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <a5bc71bb4d98498aba1f868b89d20d47>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <a5bc71bb4d98498aba1f868b89d20d47>:0)
UnityEditor.DockArea.OldOnGUI () (at <a5bc71bb4d98498aba1f868b89d20d47>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <c735460d95a241ccbea413909634f410>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <681fdbd9389e4d6e8755fe4f632bfbbe>:0)

To Reproduce Just cloning the project for the first time

Expected behavior Clone should happens without any issues

Enviroment (please complete the following information):