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

Cannot update package manager (or see probuilder etc in there)

Discussion in '2018.1 Beta' started by Giuseppe, Feb 15, 2018.

  1. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    Just downloaded and installed 2018.1.0b7 via Hub and created a new project with the 3D Ultra template, package manager (via window -> package manager) is available but out of date, and does not show an option to update to latest. Other packages show us as available to install or but package manager itself has no updates available. I am also unable to see the new packages available (probuilder).

    I have tried uninstalling b7 and downloading it again via the installer outside of Hub, and I've tried various project templates. I have tried disabling my firewall and creating rules for unity to allow in/outgoing traffic.

     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,106
    Hi Giuseppe,
    Could you please submit a bug report regarding these issues and reply in here with the case #? Detailed instructions regarding the bug reporting process can be found here.
     
    hippocoder likes this.
  3. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    Thanks LeonhardP, I've submitted a report with case number 1003070
     
  4. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    If you can't wait for the fix just go into the manifest file inside UnityPackageManager folder and add:

    Code (CSharp):
    1. "com.unity.probuilder": "3.0.1"
     
    hippocoder likes this.
  5. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I think we tried that before (replacing manifest) but no joy... (it's on a new project too).
     
  6. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Did you get any errors or anything?
     
    hippocoder likes this.
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'll ask (it all works fine for me but not Giuseppe)
     
    JakubSmaga likes this.
  8. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    adding your suggested line to the manifest file resulted in this error on opening the project:



    and package manager disappeared entirely from the Window menu.
     
  9. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Could you show me your manifest file?
     
  10. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    right now it's contents are:

    Code (JSON):
    1. {
    2.   "dependencies": {}
    3. }
    4. "com.unity.probuilder": "3.0.1"
    But originally, when I added that, there was more already in there. I guess whatever it says by default. Seems to have disappeared after I opened Unity.

    Thanks for taking the time to help, all :)
     
  11. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Use this:
    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.probuilder": "3.0.1"
    4.   }
    5. }
     
  12. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
  13. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Alright, it's a bug.
     
  14. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    One last try:

    Code (CSharp):
    1. {
    2.   "registry": "https://staging-packages.unity.com",
    3.   "dependencies": {
    4.     "com.unity.probuilder": "3.0.1"
    5.   }
    6. }
     
    out-of-pixel and hippocoder like this.
  15. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    Success! Probuilder was installed and appears in Package Manager! Hope the original problem with Package Manager not updating to the latest version itself, and other packages (such as Polybrush etc) not showing up gets solved though
     
    JakubSmaga likes this.
  16. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Last edited: Feb 16, 2018
    hippocoder and LeonhardP like this.
  17. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Don't forget it's affecting Package Manager UI (and potentially others) as well.
     
    JakubSmaga likes this.
  18. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    @Giuseppe Can you see new package manager UI updater after adding that:
    Code (CSharp):
    1.  "registry": "https://staging-packages.unity.com"
    ?

    PolyBrush is not going to be available via Package Manager, It's going to be built-in inside Unity.
    You can read it here at the bottom of the post: https://blogs.unity3d.com/2018/02/1...g-integrated-in-editor-advanced-level-design/
     
    Last edited: Feb 16, 2018
  19. Giuseppe

    Giuseppe

    Joined:
    Dec 4, 2011
    Posts:
    26
    No, cannot see new package manager ui updater with the registry set as instructed.
     
  20. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Issue persists on b9.
     
  21. benoitv_unity

    benoitv_unity

    Unity Technologies

    Joined:
    Aug 3, 2017
    Posts:
    40
    Giuseppe, does your user have Administator privileges? I was able to reproduce a similar issue by launching Unity with multiple non-admin accounts. It's trying to persist package meta data in the package cache (C:\ProgramData\Unity\cache) but fails if the file containing that data was originally created by another non-admin user. Windows seems to give write permission only to the user that created the file or to users with admin rights.

    A workaround to the issue is to delete C:\ProgramData\Unity\cache\npm but you might not be allowed to do that either. Another workaround is to set a UPM_NPM_CACHE_PATH environment variable for your user with a value such as %APPDATA%\Unity\cache
     
  22. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,106
    It would be great if someone who experienced these problems could check if the provided workarounds solve their issues, and report back here.
     
  23. benoitv_unity

    benoitv_unity

    Unity Technologies

    Joined:
    Aug 3, 2017
    Posts:
    40
    @Giuseppe @hippocoder

    Have you had a chance to implement the workaround? We would need to know to make sure we're implementing the right fix.

    Thanks a lot