unity-preview icon indicating copy to clipboard operation
unity-preview copied to clipboard

MethodAccessException Unity 5.3.6p3 OS X 10.11.6

Open MosheBenZacharia opened this issue 9 years ago • 5 comments

Trying to open the GitHub window after import I receive the following two errors:

MethodAccessException: Method `UnityEditor.EditorGUIUtility:get_pixelsPerPoint ()' is inaccessible from method `GitHub.Unity.Utility:GetIcon (string,string)'

GitHub.Unity.Styles.get_SmallLogo () (at /Users/stanleygoldman/Documents/UnityInternal/src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Styles.cs:653)
GitHub.Unity.Window.OnEnable () (at /Users/stanleygoldman/Documents/UnityInternal/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:80)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
MethodAccessException: Method `UnityEditor.EditorGUIUtility:get_pixelsPerPoint ()' is inaccessible from method `GitHub.Unity.Utility:GetIcon (string,string)'

GitHub.Unity.Styles.get_RepoIcon () (at /Users/stanleygoldman/Documents/UnityInternal/src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Styles.cs:746)
GitHub.Unity.Window.DoNotInitializedGUI () (at /Users/stanleygoldman/Documents/UnityInternal/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:219)
GitHub.Unity.Window.OnGUI () (at /Users/stanleygoldman/Documents/UnityInternal/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:131)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

MosheBenZacharia avatar Apr 10 '17 13:04 MosheBenZacharia

Thanks for the report, I'll be sure to make sure it is in the release notes. We started with a target of Unity 5.5. Hopefully soon we can turn the dial back some.

StanleyGoldman avatar Apr 10 '17 13:04 StanleyGoldman

@MosheBenZacharia Keep an eye out for the next releases, we'll fix the support for earlier versions of Unity soon.

shana avatar Apr 10 '17 19:04 shana

Could you add a list or matrix of supported/tested Unity versions and operating systems? Make it editable by the community so that users can add a combination they are successfully using.

thorade avatar Jun 15 '17 09:06 thorade

Hey @thorade we are planning to go open source with the project when we hit beta. We will have much more by way of documentation than we do now. We will also take pull requests. 👍

StanleyGoldman avatar Jun 20 '17 20:06 StanleyGoldman

Hey all, there is a new repo with an issue for this problem. https://github.com/github-for-unity/Unity/issues/1 There is also a PR in progress.

StanleyGoldman avatar Jun 28 '17 19:06 StanleyGoldman