question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension bundled with nuget package no longer loading correctly

See original GitHub issue

Describe the bug

A library I work on bundles with it an extension.dib, following the guidance in this document: https://github.com/dotnet/interactive/tree/5df931c08ec22bb0d01c8082e2339b80a17f4a30/samples/extensions/RandomNumber

We reference the bundled extension here: https://github.com/hypar-io/Elements/blob/ea629a7ec2d873cbf680298a6af69a00fd59ccbf/Elements/src/Elements.csproj#L60

Until recently, I would install the library in a notebook using #r “nuget: Hypar.Elements, *-*“ and it would both install the package and import the extension. The usings from the .dib were automatically imported, I had access to the variables/methods defined, and custom Formatters would be registered for me to use right away.

Recently, this stopped working in interactive notebooks in VS Code. I still receive the message Loading extension script from /Users/andrewheumann/.nuget/packages/hypar.elements/1.4.0-alpha.2/interactive-extensions/dotnet/extension.dib, and I can verify that that file exists. However, none of the usings are imported, and none of the variables / methods / Formatters are available. This video shows how this used to work.

Let me know if I’ve missed something about how this is supposed to work, or if this is the wrong place to report this issue.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): Version: 1.0.355307+4cc71ae4e275fd80852b9c2faa317bc3a0033d2c Library version: 1.0.0-beta.22553.7+4cc71ae4e275fd80852b9c2faa317bc3a0033d2c Build date: 2022-11-04T02:20:42.0000000Z

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

image

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jonsequiturcommented, Jan 31, 2023

This has been fixed. The fix is in Insiders and should be rolling out in Stable in the next couple of days.

image
0reactions
andrewheumanncommented, Feb 2, 2023

AMAZING!!! thank you so much @jonsequitur

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get the message "The 'NuGetPackage' package ...
Check out this answer: VS2015 - The 'NuGetPackage' package did not load correctly. Completely removing NuGet via Extensions and Updates, ...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This error occurs when you attempt to build a project that contains references to one or more NuGet packages, but those packages are...
Read more >
Unable to resolve dependencies of NuGet packages
In the left pane, navigate to NuGet Package Manager » General. Click Clear All NuGet Cache(s).
Read more >
NuGet package does not load correctly - Setup Problems
NuGet package does not load correctly : Hi, I noticed NuGet extension wasn't loaded in VS2010. Initially I didn't pay much attention to...
Read more >
Installing Telerik UI for ASP.NET MVC with NuGet
Go to Tools > NuGet Package Manager > Package Manager Settings, select Package Manager Sources, and then click the + button. Enter a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found