Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Error when loading: Access to the path "/usr/local/share/GitHubUnity" is denied. #972

Closed
@SachsKaylee

Description

@SachsKaylee

Prerequisites

181129-18:23:48.613  INFO [ 1] <Global>                            Initializing GitHubForUnity:'v1.1.1' Unity:'v2018.2.7f1'
181129-18:23:48.632 ERROR [ 3] <IApplicationManager>               A problem ocurred setting up Git
System.UnauthorizedAccessException: Access to the path "/usr/local/share/GitHubUnity" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00064] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96 
  at GitHub.Unity.JsonBackedSettings+<>c.<.ctor>b__9_5 (System.String path) [0x00000] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:44 
  at GitHub.Unity.JsonBackedSettings.EnsureCachePath (System.String path) [0x00024] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:224 
  at GitHub.Unity.JsonBackedSettings.LoadFromCache (System.String path) [0x00000] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:157 
  at GitHub.Unity.JsonBackedSettings.Initialize () [0x00028] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:50 
  at GitHub.Unity.SystemSettings.Initialize () [0x00055] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:285 
  at GitHub.Unity.JsonBackedSettings.Get[GitInstallationState] (System.String key, GitHub.Unity.GitInstallationState fallback) [0x00008] in C:\projects\unity\src\GitHub.Api\Platform\Settings.cs:69 
  at GitHub.Unity.DefaultEnvironment.get_GitInstallationState () [0x00000] in C:\projects\unity\src\GitHub.Api\Platform\DefaultEnvironment.cs:163 
  at GitHub.Unity.ApplicationManagerBase.<Run>b__20_0 () [0x00128] in C:\projects\unity\src\GitHub.Api\Application\ApplicationManagerBase.cs:97 
=======
   at GitHub.Unity.ApplicationManagerBase.<Run>b__20_0() in C:\projects\unity\src\GitHub.Api\Application\ApplicationManagerBase.cs:line 144

Description

Steps to Reproduce

I'm on Ubuntu 18.04 with Unity 2018.2.7f1 Personal(Same behavior on 2018.3.0b3 Personal). I can provide more details if required.

  1. Create a new Unity Project(tried with 3d and 2d preset)
  2. Go to the asset store and download this extension(tried with and without preinitialized repository)
  3. Open the Window > GitHub menu
  4. The error pasted above is thrown. This prevents me from using the extension as it is stuck on its load screen.

Expected behavior:
The extension loads and can be used without an error during load.

Actual behavior:
The error pasted above is thrown. This prevents me from using the extension as it is stuck on its load screen.

Reproduces how often:
Always

Additional Information

Running Unity with sudo might "fix" this, but I am unwilling to take this risk. If this is a config file it'd be awesome if it would be stored in the home directory or maybe even the project directory.

In addition to the error in the log the following error is logged in the debug console:

  1. Error
NullReferenceException: Object reference not set to an instance of an object
GitHub.Unity.Subview.get_User () (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Subview.cs:88)
GitHub.Unity.InitProjectView.AttachHandlers () (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs:96)
GitHub.Unity.InitProjectView.OnEnable () (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs:31)
GitHub.Unity.Window.OnEnable () (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:131)
UnityEditor.EditorWindow:GetWindow(Type[])
GitHub.Unity.Window:ShowWindow(IApplicationManager) (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:92)
GitHub.Unity.Window:Window_GitHub() (at C:/projects/unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:63)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions