Skip to content

Oddities with FSI package management #9270

@dsyme

Description

@dsyme

I'm just starting to use FSI package maangement and noticed a few things. I'll use this issue to document oddities or bugs as I notice them.

Delayed feedback on executing #r "nuget..."

  1. run dotnet artifacts\bin\fsi\Debug\netcoreapp3.0\fsi.exe /langversion:preview

  2. Type #r "nuget: FSharp.Data";;

Expected: some kind of feedback
Actual: the feedback comes after your next non-nuget interaction, e.g. type 1+1;; and then you get a project loaded.

I think we could print FSharp.Data registered for nuget processing or something. Just so you know something happened.

Syntax differences with fsi and notebooks

In .NET Interactive Jupyter notebooks I do this for extra package sources:

#i "nuget: https://donsyme.pkgs.visualstudio.com/TorchSharp/_packaging/packages2/nuget/v3/index.json"
#r "nuget:libtorch-cpu,0.3.52118"
#r "nuget:TorchSharp,0.3.52118"

but in F# Interactive I do this:

#r "nuget:RestoreSources=https://donsyme.pkgs.visualstudio.com/TorchSharp/_packaging/packages2/nuget/v3/index.json"
#r "nuget:libtorch-cpu,0.3.52118"
#r "nuget:TorchSharp,0.3.52118"

Why the difference in the first line?

Native DLL not found

See this error: dotnet/interactive#464

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions