JetBrains / resharper-unity

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

[Bug] Error when Rider is selected as external tool - Reorderable List #2416

Closed jai-lingokids closed 10 months ago

jai-lingokids commented 10 months ago

Hi, we are facing an issue regarding the usage of Rider + Rider Unity Plugin.

We have a custom inspector that uses a reorderable list, however, when using Rider as external tool it give us internal unity errors.

I managed to debug a bit internally, here are some screenshots:

With VSCode:

Screenshot 2023-09-01 at 15 29 42

With Rider:

Screenshot 2023-09-01 at 15 30 45

As you can see in the case of Rider it's null.

It happens when it's a Reorderable List inside a PropertyDrawer.

Any info is appreciated, thanks.

van800 commented 10 months ago

Do I understand correctly that it is about debugger evaluation? Would you please report this issue with Help -> Report a Bug, agree to attach logs? It would also help, if you provide us with a code sample. Thank you.

jai-lingokids commented 10 months ago

It happens without the debugger too, just having the Rider Package installed and enabled in Unity breaks the inspector. I will try to get you a very small repro project.

jai-lingokids commented 10 months ago

I managed to fix it, basically we iterate through assemblies, it seems the assembly of Rider has something special that Unity doesnt like, so now i'm skipping any assembly that contains Rider when fetching them. It's working.