Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question DirectoryNotFoundException

Discussion in 'Package Manager' started by piginaust, Dec 8, 2022.

  1. piginaust

    piginaust

    Joined:
    May 23, 2022
    Posts:
    14
    Hi,

    Can anyone help with this error?


    DirectoryNotFoundException: Could not find a part of the path 'D:\Program Unity\ECS 1.0 Redo 2022 12 1\Assets\StreamingAssets\EntityScenes'.
    System.IO.FileSystem.GetFindData (System.String fullPath, Interop+Kernel32+WIN32_FIND_DATA& findData) (at <8f06425e63004caf99a79845675f751e>:0)
    System.IO.FileSystem.RemoveDirectory (System.String fullPath, System.Boolean recursive) (at <8f06425e63004caf99a79845675f751e>:0)
    System.IO.Directory.Delete (System.String path, System.Boolean recursive) (at <8f06425e63004caf99a79845675f751e>:0)
    Unity.Scenes.Editor.EntitySceneBuildPlayerProcessor+PostProcessBuild.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.entities@1.0.0-exp.12/Unity.Scenes.Editor/EntitySceneBuildPlayerProcessor.cs:38)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass18_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at <d5cfe1b7a8b8455dae78439447671342>:0)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <d5cfe1b7a8b8455dae78439447671342>:0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)



    I tried to build and run in Development Build - WIndows.

    I have successfully built a few times within one hour. I am testing one UI problem which I believe is causing the build to crash (which happened before the above error occurred). Hence, I have been disabling part of the UI and re-building and re-running many times within the last one or two hours.

    Nothing has changed but when I built now, I got the above error. I was using the same folder name (I delete the last one and create a new folder with the same name as the deleted one).

    I checked my path character is around 80 chars, which should not exceed windows limit.

    I tried to use another folder name, and I succeeded once, and then when I rebuilt, the error come again.

    Where the exception said "EntityScenes", this (sub)scene once existed but I renamed it to something else. So, the (sub)scene was no longer there. I cannot locate this Entity scene neither.

    I created an Entity Scene again, but the error still persists.

    It is frustrating given that I did not change anything (just disable one UI icon and rebuild) and the build suddenly failed (and was successfully just one minute before!) Then, I have been trying various methods but in vain.

    I am using Unity 2022.2.0616.112.5806, testing the new Entity package.

    Any idea?

    Thank you.
     
  2. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    Hi @piginaust,

    I'm sorry to hear you're having build issues with the Entities package. This doesn't seem to be an issue related to the Package Manager however. I suggest that you ask about this in the Entity Component System forum instead, where you are much more likely to get help.
     
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,011
    Does that path exist, letter by letter?
     
  4. piginaust

    piginaust

    Joined:
    May 23, 2022
    Posts:
    14
    No, does not exist at all.

    'D:\Program Unity\ECS 1.0 Redo 2022 12 1\Assets\StreamingAssets\' <-- this one exists. Not the entityscenes.