Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Force refresh of packages

Discussion in '2018.3 Beta' started by bitinn, Dec 11, 2018.

  1. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    952
    I am on Unity 2018.3.0f1 and I am seeing a strange behavior where one of my project is able to see LWRP having a 4.6.0-preview release, while another project are stuck at 4.3.0-preview being the latest release.

    I end up open/close the Package Manager UI multiple times, in order to completely refresh all packages.

    Screen Shot 2018-12-11 at 22.34.16.png Screen Shot 2018-12-11 at 22.35.02.png Screen Shot 2018-12-11 at 22.38.18.png

    Questions:

    - I thought this information is global to every projects on the machine, but apparently not?

    - How can I reliably update this "cache"? Because Package Manager UI (2.0.3) shows me the refresh time and it's "up-to-date", but no new releases are discovered.

    (My package update goes through proxies so I know for sure all requests are completed successfully... Perhaps I am just unlucky and hit a CDN propagation issue.)
     
  2. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    344
    Hi @bitinn,

    When you say:
    do you mean that if you open/close the Package Manager UI in the client that doesn't see the update, it eventually sees it?



    Yes, it is. Once the package metadata is updated in the cache, the same versions should be visible to all projects opened in the same version of the Unity Editor. Different Unity Editor versions may see different package versions, however.

    Also, opening the Package Manager UI will trigger a refresh of the cached metadata, but depending on your connection speed to the registry, it may take more or less time to complete (but rest assured that no additional package is downloaded during the process). If the Package Manager UI is open in a Unity Editor instance and the cached metadata gets updated by another instance of the Editor, the UI in the first instance might not be automatically refreshed, and you may need to close it and reopen it.
     
  3. simons_unity

    simons_unity

    Unity Technologies

    Joined:
    Feb 9, 2018
    Posts:
    28
    4.6.0-preview was published about half an hour ago, is that when you noticed this?
     
  4. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    754
    Hi @bitinn,

    Are these two projects using the same editor version? (i.e. 2018.3.0f1)

    Pascal
     
  5. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    952
    Ok then perhaps a CDN cache issue. I had a project that can see all 4.6.0 releases but another project stuck at 4.3.0 until I re-open package manager multiple times.
     
  6. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    952
    Yes, both using 2018.3.0f1, so definitely not a version mismatch issue (like 2018.2 and 2018.3 can each only see 3.x and 4.x preview kind of things.)