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

Tons of package management problems with 2022.1

Discussion in 'Package Manager' started by dansav, Aug 30, 2022.

  1. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    When I open unity I get package manager related errors -- it adds packages that I have already deleted. It adds duplicates and renames them with a 2 on the end. I devolves some packages to older versions. Then I have to go through and manually delete the duplicates, update the packages that have reverted. Also I can no longer do a regular build. I have to do a clean build each time, otherwise it has tons of errors about duplicated packages. Why do I have to redo this every time I re-open unity?

    Things I've tried that didn't work.
    I tried throwing out some of offending files, then deleting them from the trash.
    I went to help-->set packages to defaults.
    I threw out the package cache.
    I've even rebuilt the project from scratch by throwing out the entire contents except the assets folder and letting it rebuild.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,396
    2022 redid the package manager system (for the better).
    If it works in a fresh project I doubt you can get much support from the team, since a 2021-2022 upgrade is seen as a major update and can cause issues.
    You can make a bug report if you feel like it's too messy
     
  3. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    Now I'm getting unity errors DB errors, and package cache errors having to do with unity.ui and unity.test and cannot do a build. Also there a tons of files in the library with the same name but a 2 after them. How do you reset a project. Right now I threw out everything but the project settings folder, the user settings folder and the assets and am rebuilding. Is there something else to reset?
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,048
    Delete the Library folder while the project is closed.
    Check editor.log for any issues.
     
    DevDunk likes this.
  5. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    I did that. Then it reverted a script back to a previous version which I can't explain. After I fixed that it successfully did a few builds, but after a few builds it downloaded and installed an old package called meshmaker while it was sitting there by itself, then I hit play and it said it was incompatible and now it is frozen. Where is it getting these old packages from?
     
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,048
    Check the Packages/manifest.json, is this meshmaker listed as a package in there? If not, it must be coming from some other script, not the Package Manager. I believe it is possible for custom scripts to install packages, maybe you got some odd script that's doing that. Try "find in files" with whatever IDE you're using to check where this particular package may be referenced in code.

    Also feel free to post the contents of this meshmaker's package.json file here, maybe it contains something that'll help.

    Oh btw, there's a known issue where Package Manager fails if the user account's name has an apostrophe or quotation mark in it, like "Someone's Computer". The issues are usually different from yours (not being able to create projects in the first place) but just in case I thought I'll mention it.
     
  7. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    Turns out it was an icloud sync problem not a unity problem. icloud was rewriting files for some weird reason. I have moved unity off the desktop and into a safe folder where icloud cannot touch it.