Abc-Arbitrage/Abc.MoqComplete

A lot of exceptions in Rider 2023.2 EAP*

ArtManyak opened this issue · 6 comments

Rider and R# 2023.2 contains breaking API change. Which produce a lot of exceptions when MoqComplete installed.
I will prepare fix for that issue.

--- EXCEPTION #1/2 [TypeLoadException]
Message = “Could not load type 'JetBrains.ReSharper.Psi.CSharp.Tree.IRegularParameterDeclaration' from assembly 'JetBrains.ReSharper.Psi.CSharp, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325'.”
ExceptionPath = Root.InnerException
ClassName = System.TypeLoadException
HResult = COR_E_TYPELOAD=80131522
Source = Abc.MoqComplete.Rider
TypeLoadClassName = JetBrains.ReSharper.Psi.CSharp.Tree.IRegularParameterDeclaration
TypeLoadAssemblyName = “JetBrains.ReSharper.Psi.CSharp, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”
TypeLoadResourceID = -2146233054
StackTraceString = “
  at Abc.MoqComplete.CompletionProvider.MockVariableNameProvider.AddLookupItems(CSharpCodeCompletionContext context, IItemsCollector collector)
     at JetBrains.Util.Logging.Logger.CatchIgnoreException[TValue,TException](Func`1 F, TValue defaultValue) in CatchIgnoreException.il:line IL_0032 mvid B953
”

Many thanks for the PR, that's really helpful!

I'll release a new version soon, I just need to figure out how all of this works 😅 (the previous maintainer left and someone else needs to takes over).

I've submitted updates to the marketplace.

2023-06-02_14-59-45

https://plugins.jetbrains.com/plugin/12659-moqcomplete/versions

Not sure what's going on, but Rider will install 2023.1.0.1 instead of 2023.2.0.1 when running latest 2023.2 EAP2.

Damn, I first submitted 2023.2.0.1 and then 2023.1.0.1 in order to fix #32. Looks like the JetBrains marketplace sorts extensions by date and not by version... 😕

@ArtManyak should I re-upload a copy of 2023.2.0.1 as 2023.2.0.2, or is there a better approach?

Ok, I noticed I can edit the compatibility ranges of existing versions, so I fixed it that way.

Works fine now 👍