New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency manager #3950
Comments
For reference I copy paste here the discussion from the gitter channel: dotnet new tool-manifest { #r "paket: FParsec" somethig.fsx(2,1): error FS3216: Package manager key 'paket' mecusorin @mecusorin_twitter Nov 12 12:56 mecusorin @mecusorin_twitter Nov 12 13:04 exception while resolving dependencies: System.Exception: Paket was not found in 'd:\dev\fsharp\sandbox\mlnet' or a parent directory, or 'C:\Users\Sorin'. Please download the tool and place it in one of the locations. I iterate: What is the idiomatic way to make this work? What I am doing wrong in my approach? Gauthier Segay @smoothdeveloper 11:38 mecusorin @mecusorin_twitter 12:05 Gauthier Segay @smoothdeveloper 12:05 mecusorin @mecusorin_twitter 12:08 Gauthier Segay @smoothdeveloper 12:08 mecusorin @mecusorin_twitter 12:09 Gauthier Segay @smoothdeveloper 12:09 mecusorin @mecusorin_twitter 12:11 Gauthier Segay @smoothdeveloper 12:11 mecusorin @mecusorin_twitter 12:12 For reference this are my home folders we talked about: Gauthier Segay @smoothdeveloper 12:13 mecusorin @mecusorin_twitter 12:13 Gauthier Segay @smoothdeveloper 12:13 mecusorin @mecusorin_twitter 12:16 Gauthier Segay @smoothdeveloper 12:16
this is the specific part, I think it is ok to add location you mention to try. if you are able to get it working with the updated instructions, could you leave a comment to my PR just to confirm: #3949 mecusorin @mecusorin_twitter 12:49 Gauthier Segay @smoothdeveloper 12:52 There is also the question of the priority order in which those checks would go. I guess when most of this code was put in first place (was in fsharp repo) the dotnet tooling was not yet available as it is since dotnet core 3 mecusorin @mecusorin_twitter 12:56 mecusorin @mecusorin_twitter 13:12 Gauthier Segay @smoothdeveloper 13:26 Gauthier Segay @smoothdeveloper 13:32 It seems dotnet tool list would give easy output to parse, looking if the implementation of that command can be referenced in the code. ~/.dotnet/tools/paket.exe would be for the global install. |
My ideas from that discussion:
A helper subcommand for paket (similar to |
@MecuSorin this very sensible outline of the adjustments to better pick up Also, if the resolution fails, we should list what has been attempted so the user has better time actionning towards a solution: :paket> couldn't find paket.exe after searching for it:
:paket> - "dotnet paket" local tool
:paket> - /long/path/to/there/.paket/paket.exe
:paket> - /long/path/to/.paket/paket.exe
:paket> - /long/path/.paket/paket.exe
:paket> - /long/.paket/paket.exe
:paket> - /.paket/paket.exe
:paket> - paket.exe from PATH environment variable
:paket> - C:\Users\Sorin\.paket\paket.exe
:paket> - C:\Users\Sorin\.nuget\packages\paket\ It may also print :paket> Found paket: C:\Users\Sorin\.paket\paket.exe |
Also add some paths to scan paket.exe after suggestions in fsprojects#3950
Also add some paths to scan paket.exe after suggestions in fsprojects#3950
@MecuSorin the latest release of the extension should have some of the extra search paths and error message which improves the situation. The only thing not implemented is picking up local |
Description
Attempted to play with the new features in FSharpInteractive using the FSharp.DependencyManager.Paket, but encountered some issues. Was thinking that we should provide an easier experience for newcomers.
Repro steps
In a new folder:
Changed the settings.json for VSCode to include
{
"FSharp.fsiExtraParameters": [
"--compilertool:c:/Users/Sorin/.nuget/packages/fsharp.dependencymanager.paket/6.0.0-alpha053/lib/netstandard2.0"
]
}
Then created
something.fsx
with the content:Expected behavior
The script to run in FSI without issues
Actual behavior
exception while resolving dependencies:
Known workarounds
To manually copy paket.exe in a reachable location for the FSI. The problem with that is that on a tool version change most probably the tooling around FSI will not work properly anymore.
The text was updated successfully, but these errors were encountered: