JetBrains / resharper-unity

Unity support for both ReSharper and Rider
Apache License 2.0
1.21k stars 133 forks source link

Assertions/errors about IsMapping() #2454

Open jchowdown opened 1 month ago

jchowdown commented 1 month ago

Hi, we're running the Rider Package 3.0.31 (latest) against Unity 2022.3.21 and are getting these errors, does anyone know how we might clear these please?

Assertion failed on expression: 'IsMapping()' Tried to get mapping information from scalar node

Both happen at

Assertion failed on expression: 'IsMapping()'
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Packages.Rider.Editor.Util.FileSystemUtil:GetFinalPathName (string) (at ./Library/PackageCache/com.unity.ide.rider@3.0.27/Rider/Editor/Util/FileSystemUtil.cs:20)
Packages.Rider.Editor.RiderScriptEditor:GetEditorRealPath (string) (at ./Library/PackageCache/com.unity.ide.rider@3.0.27/Rider/Editor/RiderScriptEditor.cs:79)
Packages.Rider.Editor.RiderScriptEditor:TryGetInstallationForPath (string,Unity.CodeEditor.CodeEditor/Installation&) (at ./Library/PackageCache/com.unity.ide.rider@3.0.27/Rider/Editor/RiderScriptEditor.cs:376)
Unity.CodeEditor.CodeEditor:GetCodeEditorForPath (string) (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:140)
Unity.CodeEditor.CodeEditor:ComputeCurrentEditor (string) (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:205)
Unity.CodeEditor.CodeEditor:SetCodeEditor (string) (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:181)
Unity.CodeEditor.CodeEditor:Register (Unity.CodeEditor.IExternalCodeEditor) (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:215)
Packages.Rider.Editor.RiderScriptEditor:.cctor () (at ./Library/PackageCache/com.unity.ide.rider@3.0.27/Rider/Editor/RiderScriptEditor.cs:33)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

We're running multiple flavors of Rider (2022.1.2, 2022.2.3, 2022.3.1) if it helps.

This is happening for MacOS as well as Windows. On my MacOS box, my Rider is installed at:

/Applications/Rider.app/Contents/MacOS

Does anyone know what is causing this error? These warnings are making it hard for non-engineers from reporting actual problems in our game

Jeff

Duveshka commented 1 month ago

Hello! Can you upload your manifets.json to uploads.jetbrains.com, please?
Here is the issue in YT: RIDER-115192. Do you use a custom fork of Unity or not?

jchowdown commented 1 month ago

Thanks Duveshka, I'm uploading our manifest file now (2024_07_26_U5TySTyef1r8CtHkdVQNhP). We are using a stock install of Unity.