asc-community / AngouriMath

New open-source cross-platform symbolic algebra library for C# and F#. Can be used for both production and research purposes.
https://am.angouri.org
MIT License
772 stars 75 forks source link

loading the package Bug! #620

Open ArchiBC opened 8 months ago

ArchiBC commented 8 months ago

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

WhiteBlackGoose commented 8 months ago

.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.

ArchiBC commented 8 months ago

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

WhiteBlackGoose commented 8 months ago

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

ArchiBC commented 8 months ago

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

ArchiBC commented 8 months ago

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