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..."
-
run dotnet artifacts\bin\fsi\Debug\netcoreapp3.0\fsi.exe /langversion:preview
-
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
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..."run
dotnet artifacts\bin\fsi\Debug\netcoreapp3.0\fsi.exe /langversion:previewType
#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 processingor something. Just so you know something happened.Syntax differences with
fsiand notebooksIn .NET Interactive Jupyter notebooks I do this for extra package sources:
but in F# Interactive I do this:
Why the difference in the first line?
Native DLL not found
See this error: dotnet/interactive#464