icsharpcode / ILSpy

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
21.34k stars 3.34k forks source link

Empty lists in "Assigned by" and "Instantiated by" #3073

Open UltraJohn opened 1 year ago

UltraJohn commented 1 year ago

Steps to reproduce

  1. Load the assemblies from a game. In this case Kerbal Space Program.
  2. Find any random property in a class, right click, Analyze.
  3. In the Analyze window, click on the + next to either "Instantiated by" or "Assigned by" and it returns nothing.

Error message shown

None.

Details

siegfriedpammer commented 1 year ago

Thanks for your bug report. Would it be possible for you to provide the binary in question and also a concrete example? This would make diagnosing the issue a lot easier. It seems strange to me that ILSpy would show the Instantiated by analyzer for properties, as that only makes sense for types. Also Assigned by only makes sense for fields. Seeing a reproducer for this problem would help a lot. Thanks!

UltraJohn commented 1 year ago

Thanks for the reply. By property I did mean any field/class/variable etc, but as you can see in this example video the dropdowns are just empty when I hit the plus to expand. I would assume there would be something to display in the dropdowns? Otherwise it seems to suggest that these classes or fields are assigned, but they are. I may just be doing something wrong, but honestly it seems like a bug to me.

https://github.com/icsharpcode/ILSpy/assets/32612142/1b065369-b640-493e-b78c-fc6843e27106

I'd love to provide the dll, but I'm afraid this is technically copyrighted, so I can't distribute it freely.

siegfriedpammer commented 1 year ago

You can always send it through a private channel using e.g. email.