-
Notifications
You must be signed in to change notification settings - Fork 790
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
Intellisense stops working in .fsx script (due to issue loading list of assembly references correctly?) #1311
Comments
The workaround is to add
to your script. |
Thanks for this repo. This is actually a really important bug to fix since the workaround is basically impossible to determine without the fix. |
@dsyme thanks, could you describe (if possible) how you figured out that "impossible to determine" fix? I haven't had chance to look at how this reference / assembly loading from script is all working in F# tooling / FSI, I think first measure would be error reporting with the name of missing reference. The include scripts are generated by paket and there might be some holes in the logic or missing metadata in nuget packages which lead to that missing In the context of developing that paket feature, we had to put hardcoded workarounds for FSharp.Core (should never load it, even if using the nuget one) and mscorlib (if it is `#r "mscorlib" more than once, FSI complains with an error). It would be great to throw together few notes (with knowledge of implementation details the visualfsharp team has) about all those concerns related to assembly/reference loading in FSI and tooling. |
Is this the one that is due to the Tasks BCL / extension assembly? |
@smoothdeveloper I ran
and looked at the exception when openeing your solution. I'd debugged this once before, and we've already added a default reference to the DLL mentioned above. However we hadn't fixed the error reporting in the general case so that people would know that they needed to add this @isaacabraham Yes, more or less. I believe the silent error happens with Visual Studio 2015 whenever an F# script references an F# profile 7, 78, 259 or ,NET Standard 1.x component. |
@kflu I think the behaviour is the same as when you give a |
Repro steps
.
and CTRL+SPACE afteropen Microsoft.Azure
Expected behavior
Autocomplete works
Actual behavior
Autocomplete doesn't work
Known workarounds
I haven't found one
Related information
The text was updated successfully, but these errors were encountered: