ReactiveUI icon indicating copy to clipboard operation
ReactiveUI copied to clipboard

[Bug]: Method not found: 'Splat.IMutableDependencyResolver Splat.Locator.get_CurrentMutable()'.

Open laolarou726 opened this issue 4 months ago • 5 comments

Describe the bug 🐞

After updated to 21.0.1 for my AvaloniaUI project, it throws this Exception during startup

Step to reproduce

RT

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

It should launch

Screenshots 🖼️

No response

IDE

Visual Studio 2022

Operating system

No response

Version

No response

Device

No response

ReactiveUI Version

No response

Additional information ℹ️

No response

laolarou726 avatar Sep 05 '25 15:09 laolarou726

Need details of the exception

glennawatson avatar Sep 05 '25 20:09 glennawatson

Need details of the exception

Image Image

laolarou726 avatar Sep 06 '25 01:09 laolarou726

I'm getting the same exception in an Avalonia project after updating.

System.MissingMethodException
  HResult=0x80131513
  Message=Method not found: 'Splat.IMutableDependencyResolver Splat.Locator.get_CurrentMutable()'.
  Source=Avalonia.ReactiveUI
  StackTrace:
   at Avalonia.ReactiveUI.AppBuilderExtensions.<>c.<UseReactiveUI>b__0_1()
   at Splat.InternalLocator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat.Core\ServiceLocation\InternalLocator.cs:line 106
   at Splat.AppLocator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat.Core\ServiceLocation\AppLocator.cs:line 73
   at Splat.Locator.RegisterResolverCallbackChanged(Action callback) in c:\temp\releaser\splat\src\Splat\ServiceLocation\Locator.cs:line 64
   at Avalonia.ReactiveUI.AppBuilderExtensions.<>c.<UseReactiveUI>b__0_0(AppBuilder _)
   at Avalonia.AppBuilder.SetupUnsafe()
   at Avalonia.AppBuilder.Setup()
   at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
   at ...

volkmnv avatar Sep 07 '25 07:09 volkmnv

With Avalonia, it's likely an out of date reference to Splat then in Avalonia. Been some changes lately.

Avalonia is getting us to take over the project, there will be a official ReactiveUI.Avalonia project soon, we pretty much got most of it going, just waiting on the Avalonia team to give us the last ok on it.

glennawatson avatar Sep 07 '25 07:09 glennawatson

Just noticed that it is Avalonia.ReactiveUI and not ReactiveUI.Avalonia. Thanks for the heads-up. Here is the the bug report in the Avalonia repository: https://github.com/AvaloniaUI/Avalonia/issues/19601

volkmnv avatar Sep 07 '25 07:09 volkmnv