Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

(Case 1191723) Package Manager refresh doesn't refresh local packages

Discussion in 'Package Manager' started by fherbst, Oct 15, 2019.

  1. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    Tested on 2019.3.0b2, 0b6, 0b7
    Works on 2019.2.2f1

    I'm working on local packages where new versions are pushed to our own registry.
    In 2019.2.2f1, pressing "refresh" in Package Manager correctly shows updates to the manifest (for example version change, changes to samples, dependencies, ...).
    In 2019.3.0b6, "refresh" doesn't do that anymore. Also, closing/reopening Package Manager doesn't help. Only restarting Unity actually reflects those package.json changes to the UI.

    @okcompute_unity is this desired behaviour? Seems like a bug.

    Edit: I reported a bug, (Case 1191723). This makes working with custom packages pretty much impossible.
     
    Last edited: Oct 15, 2019
  2. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    Turns out it's even more broken on 2020.1.07a, where changing the version in the manifest afterwards throws one exception per frame in the Editor.

    upload_2019-10-15_20-30-1.png

    Clicking the "select manifest" button even selects the right manifest which shows the new version.
    upload_2019-10-15_20-31-42.png
     
  3. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    726
    It definitely looks like a bug. You did the right thing by entering a bug. Thank you!
     
    fherbst likes this.
  4. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    @okcompute_unity any news about this? This is a big workflow blocker for us as working with our own code in packages is really hard with this. 2019.3.0b11 went out and this bug is still in there.
     
  5. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    726
    Hi @fherbst

    No, this hasn't yet to be fixed.:( I'll notify the team in charge of fixing this bug that you are waiting for it and that you are blocked!

    Regards,

    Pascal
     
    samuelb_unity and fherbst like this.
  6. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    @okcompute_unity @LeonhardP this is still broken in latest 2019.3.0f1.

    I want to point out that this bug makes it pretty hard to establish a proper package workflow with 2019.3 for us. We're developing a lot with inhouse custom packages, and can't do that on 2019.3 right now.
     
  7. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    726
    @fhebst,

    The bug fix is in progress. The PR is approved and should be pushed in the backport flow soon to bring the fix into the 19.3 branch.

    Regards,

    Pascal
     
    fherbst likes this.
  8. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    Thank you! Can you double-check that the bugfix not only fixes package.json not updating but also manifest not updating? (I thought it's the same issue, just want to make sure that's fixed as well). E.g. adding a new scoped registry to the manifest updates Package Manager fine on 2019.2 but does not update Package Manager until Unity restart on 2019.3.
     
  9. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    664
    I can confirm that this is NOT fixed in 2019.3.0f4.
    @okcompute_unity @LeonhardP

    Issue Tracker notes that this is "fixed in 2020.1" without backport to 2019.3 in sight.
    Is that correct? If this is the case 2019.3 will not work for us for package development at all.

    EDIT: also not fixed on 2019.3.0f5. @okcompute_unity any info on when will this appear in 2019.3 branch?
     
    Last edited: Jan 17, 2020
unityunity