Bug 33088 - Send references command fails on nuget packages
Summary: Send references command fails on nuget packages
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: F# Add-in ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Dave Thomas
URL:
Depends on:
Blocks:
 
Reported: 2015-08-14 05:05 UTC by Dave Thomas
Modified: 2015-08-19 02:10 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 33088 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Dave Thomas 2015-08-14 05:05:28 UTC
In a small project that has a NuGet package (FSharp.Data.SqlClient)
I right-click in a .fs file and choose 'Send references to F# Interactive', FSI fails to find the NuGet package. Output:

--> Referenced '/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.0/System.Core.dll' (file may be locked by F# Interactive process)
--> Referenced '/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.0/System.Data.dll' (file may be locked by F# Interactive process)
#r @"/Users/rojepp/Projects/quicksqlapp/quicksqlapp/../packages/FSharp.Data.SqlClient.1.5.10/lib/net40/FSharp.Data.SqlClient.dll"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/stdin(5,1): error FS0078: Unable to find the file 'Microsoft.SqlServer.TransactSql.ScriptDom.dll' in any of
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5
/Users/rojepp/Projects/quicksqlapp/quicksqlapp
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.0/
Note that it is actually a valid path to FSharp.Data.SqlClient, and if I copy that #r statement and execute it manually, it works. Also note that the error message I get is actually about a dll used by SqlClient.
Comment 1 Dave Thomas 2015-08-14 05:06:52 UTC
Notes from github:

From @rojepp on February 18, 2015 10:1

Could it be that we're missing a #silentCd, just prior to sending references. Note, I haven't checked the code yet. I just remember a lot of discussion about this ( #162 ) and Dons suggestion to just send it all the time because it is cheap. :)

- - - 
It is sent before the command, followed by all the #r's afterwards. I suspect in this instance it needs to be sent in-between each #r due to fsi's quirkiness.

I had a quick look, the current file's path is sent (#silentcd) before the list of #r references. I guess for nugets we will have to reconsider the silentcd logic