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

Assertions/errors about IsMapping()

Open jchowdown opened this issue 1 year ago • 2 comments

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/[email protected]/Rider/Editor/Util/FileSystemUtil.cs:20)
Packages.Rider.Editor.RiderScriptEditor:GetEditorRealPath (string) (at ./Library/PackageCache/[email protected]/Rider/Editor/RiderScriptEditor.cs:79)
Packages.Rider.Editor.RiderScriptEditor:TryGetInstallationForPath (string,Unity.CodeEditor.CodeEditor/Installation&) (at ./Library/PackageCache/[email protected]/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/[email protected]/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

jchowdown avatar Jul 24 '24 19:07 jchowdown

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?

Duveshka avatar Jul 25 '24 11:07 Duveshka

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

jchowdown avatar Jul 26 '24 20:07 jchowdown