ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

After paket install / dotnet restore, Ionide gets totally confused

Open isaacabraham opened this issue 5 years ago • 2 comments

If I do a paket install from the command line which adds a new dependency, Ionide gets confused: all tooltips die and intellisense dies, and the hints above symbols get replaced with errors:

image

As soon as you type something, it magically goes away. HOWEVER, the newly added dependency still does not show up until you manually run dotnet restore and restart Code.

isaacabraham avatar Jul 05 '19 11:07 isaacabraham

Hey @isaacabraham :wave:,

Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our OpenCollective and consider backing us.

https://opencollective.com/ionide

PS.: We offer backer support for all backers. Don't forget to add backer label when you start backing us :smile:

Repro steps:

  1. Create a brand new console app dotnet new console -lang F#.
  2. Add following code to Program.fs:
open Saturn

let app = application {
    no_router
}

run app

Obviously the type checker at this point doesn't know anything and it's all obj - completely expected.

  1. Paket init.
  2. Create a dependencies file as so:
source https://www.nuget.org/api/v2
storage: none
framework: auto-detect
nuget Saturn
  1. Add paket.references file Saturn
  2. Run paket install

Sometimes I see this:

image

or still just obj.

However sometimes after pressing any key and modifying the code file, code lens will refresh itself correctly:

image

I thought this might be a paket thing but it also happens if I use native Nuget.

isaacabraham avatar Jul 27 '19 13:07 isaacabraham