fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.01k stars 520 forks source link

Need to restore a project for changes to show in Ionide #3900

Open isaacabraham opened 3 years ago

isaacabraham commented 3 years ago
  1. Add a package to a project.
  2. The package is successfully added, but no intellisense shows.
  3. Only when you kick off a dotnet build (or restore?) does intellisense show.

Users would expect it to show immediately (this is also the behaviour of NuGet)

forki commented 3 years ago

Does ionide kick off the restore? Do you have a repro sample?

Isaac Abraham notifications@github.com schrieb am Mi., 19. Aug. 2020, 18:50:

  1. Add a package to a project.
  2. The package is successfully added, but no intellisense shows.
  3. Only when you kick off a dotnet build (or restore?) does intellisense show.

Users would expect it to show immediately (this is also the behaviour of NuGet)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOANHVAQKKS3SFIDS46KLSBP7DVANCNFSM4QFEULTA .

isaacabraham commented 3 years ago

Closing. Just created an empty console app and it works. I don't know what it is about the other project - might need to look deeper into that.

isaacabraham commented 3 years ago

I can once again reproduce this.

  1. Create a new console app
  2. Ensure it is on e.g. netcoreapp3.1
  3. paket init
  4. paket add fscheck -p projectname.fsproj
  5. Try to access FSCheck - nothing shows.
  6. Run dotnet restore.
  7. Try to access FSCheck - it shows.
isaacabraham commented 3 years ago

Note: This doesn't happen in VS, which seems to notice once Paket has done its thing and actively loads the packages in. cc @Krzysztof-Cieslak

isaacabraham commented 3 years ago

In fact, you can actively leave both VS and Code running on the same project side-by-side and see VS doing something with the package references and each package "activating". Once it's done, it shows up as available in Ionide as well.