Search Issue Tracker
Fixed
Fixed in 2.0.18
Votes
0
Found in [Package]
2.0.12
Issue ID
VS-61
Regression
No
Errors in new URP related to VisualStudio package when opened in SafeMode
This issue reproduces only with new URP project (doesn't happen with new 3D, 2D URP, HDRP).
Reproduces on: all versions starting 2020.3
( checked on: 2020.3.32f1, 2022.1.0a15, 2022.2.0a3, 2022.2.0a9, 2022.2.0a10 with versions of VS package: com.unity.ide.visualstudio@2.0.14 and com.unity.ide.visualstudio@2.0.11 )
It might be VS package issue or URP template issue which cause this errors, but seems the source of the issue is somewhere in ADB or scripting code.
How can we reproduce
1 Create new URP project
2 Create new script and introduce a compilation error
3 Close Editor and reopen it
4 On opening select "Enter SafeMode" on a pop up
Expected result: no errors other than one compilation error
Actual result: when Editor is opened you will see two additional errors:
- "GetLoadedImportedAssetsAndArtifactIDs called with invalid artifactID
UnityEditor.AssetDatabase:Refresh ()
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:SyncAll () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.14/Editor/VisualStudioEditor.cs:176)
UnityEditor.CodeEditorProjectSync:SyncEditorProject ()"
- "Assertion failed on expression: 'it->second.IsValid()'
UnityEditor.AssetDatabase:Refresh ()
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:SyncAll () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.14/Editor/VisualStudioEditor.cs:176)
UnityEditor.CodeEditorProjectSync:SyncEditorProject ()"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Compiled Shader code has self-assignments and redundant code in the Shaders that use "enable_d3d11_debug_symbols"
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
Add comment