Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
822 stars 68 forks source link

Errors when building in batchmode #60

Closed ivan-hernandez-scopely closed 3 years ago

ivan-hernandez-scopely commented 3 years ago

Using project auditor 0.6.3-preview

No graphic device is available to initialize the view.
UnityEditor.EditorWindow:GetWindow(Type)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:ShowWindow() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1138)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:get_Instance() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:35)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:OnPostprocessBuild(BuildTarget, String) (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1243)

No graphic device is available to show the window.
UnityEditor.EditorWindow:GetWindow(Type)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:ShowWindow() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1138)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:get_Instance() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:35)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:OnPostprocessBuild(BuildTarget, String) (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1243)

No graphic device is available to initialize the view.
UnityEditor.EditorWindow:GetWindow(Type)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:ShowWindow() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1138)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:get_Instance() (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:35)
Unity.ProjectAuditor.Editor.UI.ProjectAuditorWindow:OnPostprocessBuild(BuildTarget, String) (at Library/PackageCache/com.unity.project-auditor@0.6.3-preview/Editor/UI/ProjectAuditorWindow.cs:1243)

ShowWindow should not be called in batchmode maybe?

mtrive commented 3 years ago

Hi Ivan, indeed it should not. It should be fixed in 0.6.4-preview.

I am going to close the issue now but let me know if you still experience any problem or if you have any feedback on using the package in batchmode.

Thanks a lot for reporting it!