asc-community/AngouriMath

loading the package Bug!

Opened this issue · 5 comments

**The version I use **: 1.3.0 &1.4.0-1.4.0-preview.3

Unexpected behaviour or bug:
The following error was encountered while loading the package。

Error: Microsoft.DotNet.Interactive.KernelExtensionLoadException: Failure loading Kernel Extension
---> System.MissingMethodException: Method not found: 'Microsoft.DotNet.Interactive.DisplayedValue Microsoft.DotNet.Interactive.KernelInvocationContextExtensions.Display(Microsoft.DotNet.Interactive.KernelInvocationContext, System.Object, System.String)'.
at AngouriMath.InteractiveExtension.KernelExtension.Microsoft.DotNet.Interactive.IKernelExtension.OnLoadAsync(Kernel _arg1)
at Microsoft.DotNet.Interactive.App.PackageDirectoryExtensionLoader.LoadFromAssemblyFile(FileInfo assemblyFile, Kernel kernel, KernelInvocationContext context) in D:\a_work\1\s\src\dotnet-interactive\PackageDirectoryExtensionLoader.cs:line 124
--- End of inner exception stack trace ---

image

.NET Interactive wasn't stable back when that package was released, I don't know the state of things as of right now. It could be that they changed the API (at least as far as I see in the error). One solution would be to install the .NET Interactive of the suitable version or adjust AngouriMath.Interactive's code.

I tried setting the .net interactive version, but it doesn't seem to work, it still shows the same error.
It's a bit too hard for me to change the code.
image

Well, did you set it to the relevant version? Here is where versions are defined. You can probably try 1.0.0-beta.21606.1, but no idea if it'd work

Nothing is useful after trying. Looks like I need to look into how to update the code.

I tried updating the dependent version and now it works successfully。I submitted a pull request to the main branch。