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.
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
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?
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?
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.
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.