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

Bug Could not find a part of the path "Library\com.unity.addressables\AddressablesBuildTEP.json"

Discussion in 'Addressables' started by Peter77, Jul 6, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,444
    When I open a fresh copy of my project (eg. cloned from git) and then press Play in the editor, Unity outputs this error:
    Code (CSharp):
    1. DirectoryNotFoundException: Could not find a part of the path "C:\Users\crash\Documents\work\game\unity\Library\com.unity.addressables\AddressablesBuildTEP.json".
    2.  
    3.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    4.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    5.   at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    6.   at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    7.   at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    8.   at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    9.   at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    10.   at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
    11.   at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    12.   at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00007] in <e1319b7195c343e79b385cd3aa43f5dc>:0
    13.   at UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptBase.BuildData[TResult] (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput builderInput) [0x0010b] in C:\Users\crash\Documents\work\untamed\unity\Library\PackageCache\com.unity.addressables@1.11.2\Editor\Build\DataBuilders\BuildScriptBase.cs:83
    14.   at UnityEditor.AddressableAssets.Build.AddressablesBuildScriptHooks.OnEditorPlayModeChanged (UnityEditor.PlayModeStateChange state) [0x000c8] in C:\Users\crash\Documents\work\untamed\unity\Library\PackageCache\com.unity.addressables@1.11.2\Editor\Build\AddressablesBuildScriptHooks.cs:59
    15.   at (wrapper delegate-invoke) System.Action`1[UnityEditor.PlayModeStateChange].invoke_void_T(UnityEditor.PlayModeStateChange)
    16.   at UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) [0x00025] in C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:302
    17. UnityEditor.EditorApplication:set_isPlaying(Boolean)
    18. UnityEditor.Toolbar:TogglePlaying() (at C:\buildslave\unity\build\Editor\Mono\GUI\Toolbar.cs:506)
    19. UnityEditor.Toolbar:DoPlayButtons(Boolean) (at C:\buildslave\unity\build\Editor\Mono\GUI\Toolbar.cs:428)
    20. UnityEditor.Toolbar:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\GUI\Toolbar.cs:271)
    21. UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:244)
    22. UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:438)
    23. UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:421)
    24. UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:401)
    25. UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:511)
    26. UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:307)
    27. UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:176)
    28. UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:245)
    29. UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:68)
    30. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)
    31.  
    I'm using Unity 2018.4.22f1, Addressables 1.11.2 and the "Use Asset Database" playmode option.

    The error occurs every time I press Play, but disappears, when I open the Addressables Groups window and trigger a new Build. Once a new Build has finished, the error does not occur anymore.

    The error is obviously extremely annoying, since every (new) team member who clones the project needs to perform additional steps to workaround this problem.

    Could you please take a look at the issue. Thank you.
     
  2. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    566
    You should add
    Library/com.unity.addressables/
    to your git. Most Unity gitignores ignore the entire Library folder, but Addressables likes to use that path. You can probably still ignore it to future changes, just add it once.
     
  3. CharBodman

    CharBodman

    Joined:
    Sep 20, 2018
    Posts:
    36
    This has been fixed in 1.12.0
     
    Peter77 likes this.
  4. Wothanar

    Wothanar

    Joined:
    Sep 2, 2016
    Posts:
    122
    isnt, im using 1.8.5 and still shows the error , it happend me here and i end up on this forum due i dont know what to do with this bug
     
  5. squarelover

    squarelover

    Joined:
    Nov 14, 2012
    Posts:
    31
    +1