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. Dismiss Notice

Bug Package manager shows latest version, but package contents is not

Discussion in 'Package Manager' started by WARdd, Feb 8, 2021.

  1. WARdd

    WARdd

    Joined:
    Aug 10, 2015
    Posts:
    29
    I'm trying to update one of my asset packages for a free asset called Flexible Color Picker. The package manager correctly shows the latest version of this asset, being 2.0.0. However, the actual contents that gets downloaded and imported is not the latest version, but rather the oldest, 1.0.0.

    upload_2021-2-8_9-34-2.png

    This seems like a bug, since Unity gave me 0 indication it was not downloading the latest version, nor is there an entry for this asset in the package lock json.
     
    Roller1 likes this.
  2. Davidtr_Unity

    Davidtr_Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    34
    Hi WARdd,

    We had an issue that caused updates not to appear in the "My Assets" tab, this has already been resolved for most of our release lines, but it is still present in 2020.1 as I am writing this. You can follow this issue on our issue tracker.

    Also, please note that it might take some time after inspecting an asset for the "Update" button to appear. Our team is aware of this, and a new optimization is currently in review. This is also documented on the issue tracker.

    I hope this was helpful.
     
    Last edited: Mar 5, 2021
    hbonin likes this.
  3. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,151
    I am on Unity 2020.2.3f1 and I can see the latest update now, so that issue has been fixed. However, the package manager is not downloading this update, or properly updating my package to it, when I use the Download (after clearing the cache) or Import button. It just keeps the package at whatever I currently have installed, and keeps showing there is an update available.

    Here is me updating a package from 2.1.5 to 2.1.8

    upload_2021-4-24_16-32-47.png

    And here is the state of the package after "updating" (I restarted Unity after to see if that was the issue; it wasn't):

    upload_2021-4-24_16-33-57.png

    So, it appears you guys still have some issues with the Package Manager!!

    Edit: And just to be clear, I tried clearing my cache. When I do that, the package shows up as the most recent version, but when I try to download it, it downloads and older version instead of the most recent.
     
  4. hbonin

    hbonin

    Unity Technologies

    Joined:
    Feb 11, 2020
    Posts:
    54
    Hello! Which file are you referring to by: after clearing the cache?

    Your case might be different but we fixed an issue where Package Manager UI does not pick up the right version when there are multiple versions of the same asset in the cache. The behavior right now is quite random. Sometimes the UI shows up correctly, sometimes the UI picks up the old asset version, and the rest of the times the UI just flickers. The fix has just been backported in 2020.3.x.
     
  5. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,151
    I am speaking about the "cache" at "AppData\Roaming\Unity\Asset Store-5.x"

    My issue has nothing to do with the correct version showing up in the Package Manager. I see the right version. The issue is that when I attempt to download that version it downloads an older version of the package instead. I have only tested with a single package but I will try some other packages to see if it is an isolated issue.
     
  6. hbonin

    hbonin

    Unity Technologies

    Joined:
    Feb 11, 2020
    Posts:
    54
    Just to confirm:
    - You deleted .../Asset Store-5.x folder
    - You launched your project with Unity 2020.2.3f1
    - My Assets > Flat Kit: Toon Shading and Water
    - Download
    - The downloaded version is 2.1.5 when it should be 2.1.8. Then, even if you hit Update, you are stuck with 2.1.5

    If so, I will ask access to this package and will try to repro. In the mean time, please report back if it happens with other asset store packages.

    Thank you
     
  7. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,151
    Yes, that's exactly the case. I will do some test with other assets now.

    Edit: I tested a few other pacakges and have not seen the issue again, so perhaps it is isolated to Flat Kit.
     
    Last edited: Apr 30, 2021
  8. UnityMaru

    UnityMaru

    Community Engagement Manager Unity Technologies

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Updating to 2020.3.8f1 should fix this issue. Let me know if it doesn't.