Closed pt-paulrahme closed 4 years ago
@pt-paulrahme
This is an error being thrown when AssetDatabase.SaveAssets()
is called. That's a really common call that scripts make to flush dirty assets to disk. In this case, GitHub for Unity is changing a flag in the meta files for the DLLs, so it won't load DLLs that are not appropriate for your project, and that causes a save to disk, I don't know why that would cause these errors. You can try commenting out line 57 of Assets/Plugins/GitHub/Editor/ExtensionLoader.cs
and see if that makes it happier.
Hi Shana, Thanks for the information. My colleague commented out that line and the error did go away. The main thing I'd be concerned about, is if it's still reliable for us to use across the team without that line in the code? Or could it cause it to eg. not refresh when assets update? Thanks
@pt-paulrahme You might want to try the Unity fork over at https://github.com/Unity-Technologies/Git-for-Unity instead, it doesn't do any of this flag stuff because it's a source package, and I'm not likely to do fixes here. From the release page, download the first tgz on the asset list, com.unity.git-X.X.X-preview.tgz
, and in the Unity Package Manager window, click on the top left + and select Add package from tarball
to install the package.
Thanks @shana - will check it out!
Prerequisites
log file contents:
(Note this is after unlocking everything and restarting Unity, but it hasn't stopped the exception occuring)
Description
One of our team is having the following error repeatedly spitting out to his console:
He has unlocked all assets he had locked, committed everything, and tried closing & reopening the GitHub panel multiple times, as well as quitting and restarting Unity multiple times.
Edit: He even deleted the entire Assets/Plugins/GitHub/ folder (the error went away), but then re-adding it made the error come back again. Seems to be something saved for this project/repo?
Steps to Reproduce
It just started happening for him, and it's not stopping. There didn't appear to be a specific action that caused it.
The rest of us have not seen this error.
Additional Information
The project is using Unity 2019.2.21f1, he is on Windows, and had locked one Scene, one Prefab, and a few .cs files. Our project does include the AssetGraph package, which is what seems to be throwing the exception (when triggered (rom GitHub.UnityExtensionLoader.Initialize).