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.

NuGet repository source include via #i directive not working

See original GitHub issue

Describe the bug

While working with local packages (on disk) and packages on MyGet the #i "nuget: <path-to-source>" directive stopped working for me after an Update of the VSCode .NET Interactive plugin.

This is the error message I’m getting. This would be a standard NuGet error for not finding a package in any configured sources.

image

After adding the source via the CLI and restarting the Kernel the error goes away (as expected). It doesn’t show the source added via the directive in the output (this behavior was different in earlier releases).

image

For easier copy-pasting the code block in the screenshots can be found here.

#r "nuget: Ply, 0.3.1"
#r "nuget: Deedle, 2.4.2"
#r "nuget: FSharp.SystemTextJson, 0.17.4"
#r "nuget: Plotly.NET, 2.0.0-preview.7"
#r "nuget: Plotly.NET.Interactive, 2.0.0-preview.7"
#r "nuget: Spectrogram, 1.3.0"
#r "nuget: SixLabors.ImageSharp, 1.0.3"
#r "nuget: FSharp.Stats, 0.4.2"
#r "nuget: MathNet.Numerics.FSharp, 4.15.0"
#r "nuget: MathNet.Filtering, 0.7.0"

#i "nuget:https://www.myget.org/F/gregs-experimental-packages/api/v3/index.json"
#r "nuget: Deedle.DotNet.Interactive.Extension,0.1.0-alpha7"

Please complete the following:

Which version of .NET Interactive are you using?

1.0.245901+0512fe0a05f5a99419a543463ee68233a3c60371

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

Screenshots

Error with #!about directive output image

CentOS system and SDK info (Windows 10 SDK is the latest SDK as of writing this)

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
colombodcommented, Oct 6, 2021

@colombod I plucked it out of the repo and put it here https://github.com/WalternativE/IgnoredIDirectiveRepro. As I omitted some URIs you can’t completely run it but it should at the first cell anyway. I used a .dib instead of the “usual” jupyter notebook format to rule out any errors on this side. It doesn’t matter, though, as it fails the exact same way with both flavors for me.

Thanks for looking into it y’all! If I can do anything else please don’t hesitate to ask 😃

@brettfo is doing it now

0reactions
colombodcommented, Oct 6, 2021

I was able to repro this and repros only in F#, looking into it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to add reference to installed NuGet package?
A problem could be due to: Incompatible target framework of nuget package (MyCorp.SecurityApi) and aplication that attempts to use it ...
Read more >
strange side effects with Visual Studio Nuget Package ...
Notes : the package that is tried to be loaded is not supposed to be in any local source directory. you get the...
Read more >
Install and manage NuGet packages in Visual Studio for Mac
This document covers how to include a NuGet package in a project using Visual Studio for Mac. It walks through finding and downloading...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This situation commonly occurs when you obtain the project's source code from source control or another download. Packages are typically omitted ...
Read more >
Addin directive
The addin directive is used to install and reference addins using NuGet: ... The #addin directive is not available when running with Cake...
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