Running Xamarin Workbooks v1.3.1 and when I try to create a new workbook for Xamarin forms, the spinner keeps turning saying "Adding nuget package" when I try to add Xamarin Forms nuget package.
When I try one of the Xamarin forms workbooks examples from Xamarin GitHub, the workbook opens en Loading Packages keeps spinning on top without any result.
Tips on how to get this working?
Answers
Hi @Depechie,
This could indicate that you have some extra nuget repositories configured that are slow on the server side. Could you attach your log file? I believe it will have information about what nuget repositories are being searched. See https://developer.xamarin.com/guides/cross-platform/workbooks/install/#Reporting_Bugs for log file information.
Also, are you on Mac or Windows?
Will see about the log files... and post them later!
Opened the log file and seems I keep getting this:
[Info][00:03:58.8818030] NuGet (Log): Executing nuget actions took 89.12 ms @ /Users/builder/vsts/_work/1/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageLogger.cs:41
Xamarin Workbook App (:61677) => [Warning][00:00:51.1284790] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:61677) => [Warning][00:00:51.1287540] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:61677) => [Warning][00:00:51.1307700] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:61677) => [Error][00:00:51.1389580] AssemblyLoadRequest (HandleAsync): Could not load sent assembly Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.: System.Exception: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.
at Xamarin.Interactive.Compilation.CompilationAssemblyContext.HandleAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x0020e] in :0
at System.AppDomain.DoAssemblyResolve (System.String name, System.Reflection.Assembly requestingAssembly, System.Boolean refonly) [0x00075] in :0
at Xamarin.Interactive.Repl.ReplExecutionContext.CheckLoadedAssemblyForAgentIntegration (System.Reflection.Assembly assembly) [0x000e3] in :0
at Xamarin.Interactive.Repl.AssemblyLoadRequest.HandleAsync (Xamarin.Interactive.Core.Agent agent) [0x000f6] in :0 @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:60
If you could post the full log on gist.github.com that could help as well.
Sure!
Here you go : https://gist.github.com/Depechie/4a8150170ded1a9ebd70231d96bda1b5
@SandyArmstrong any thoughts? Something that can be solved?
I'll have to look into this next week, sorry for the delay.
No worries... thx for the update!
I'm running into the same problem on Workbooks, was unable to restore the packages...
This is the log generated by Workbooks:
Xamarin Workbook App (:49700) => [Info][00:00:00.1781420] iOSAgent (Start): iOS 'Xamarin Workbook App' is available for interaction: xamarin-interactive://127.0.0.1:49700/v1?agentType=iOS&sessionKind=Workbook @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Core/Agent.cs:267
Xamarin Workbook App (:49700) => [Info][00:00:00.3212030] iOSAgent (ChangeDirectory): /Users/janvdp/Library/Developer/CoreSimulator/Devices/9C5F848C-5767-4E5D-87E3-2A8F7B1C0FED/data/Containers/Bundle/Application/923390A6-C0AC-42E3-BF48-C0D564CD8760/Xamarin.Workbooks.iOS.app → /private/var/folders/kb/jxbcvsw90rg90g5mq895jv7w0000gp/T/iUnarchive-Temp/2/Workbooks-master/xamarin-forms/application-fundamentals/hierarchical-navigation/hierarchical-navigation.workbook @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Core/Agent.cs:315
Xamarin Workbook App (:49700) => [Warning][00:00:02.4440250] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:49700) => [Warning][00:00:02.4442410] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:49700) => [Warning][00:00:02.4447240] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
Xamarin Workbook App (:49700) => [Error][00:00:02.4516230] AssemblyLoadRequest (HandleAsync): Could not load sent assembly Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.: System.Exception: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.
at Xamarin.Interactive.Compilation.CompilationAssemblyContext.HandleAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x0020e] in :0
at System.AppDomain.DoAssemblyResolve (System.String name, System.Reflection.Assembly requestingAssembly, System.Boolean refonly) [0x00075] in :0
at Xamarin.Interactive.Repl.ReplExecutionContext.CheckLoadedAssemblyForAgentIntegration (System.Reflection.Assembly assembly) [0x000e3] in :0
at Xamarin.Interactive.Repl.AssemblyLoadRequest.HandleAsync (Xamarin.Interactive.Core.Agent agent) [0x000f6] in :0 @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:60
Sadly have the same issue on Mac v1.4.0
Here's my gist: https://gist.github.com/JannieT/03ee504804bf59a781de276c08d737c3
It appears to be a network issue of some kind, but I can download and update NuGet packages in Visual Studio for Mac all morning.
Issue being tracked here: https://github.com/Microsoft/workbooks/issues/238