AngouriMath icon indicating copy to clipboard operation
AngouriMath copied to clipboard

loading the package Bug!

Open ArchiBC opened this issue 2 years ago • 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

ArchiBC avatar Dec 16 '23 09:12 ArchiBC

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

WhiteBlackGoose avatar Dec 17 '23 21:12 WhiteBlackGoose

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

ArchiBC avatar Dec 18 '23 02:12 ArchiBC

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

WhiteBlackGoose avatar Dec 18 '23 11:12 WhiteBlackGoose

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

ArchiBC avatar Dec 19 '23 13:12 ArchiBC

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

ArchiBC avatar Dec 21 '23 09:12 ArchiBC