Moving Project causes deadloop

Hello,

We recently moved a project that includes HDRP to a different folder.

Closed everything, moved the project folder to a temporary folder, created a workspace and put the project folder in the workspace folder.
Now on opening it we get a deadloop.

After searching for a second I’ve found an error in the CustomPass class:

CustomPass: IVersionable<DrawRenderersCustomPass.Version>

Where it cannot resolve symbol “Version”
In the DrawRendererscustomPass I cannot find any reference to a version or anything.

If I change the code to:

CustomPass: IVersionable<CustomPass.Version>

the errors in solution are resolved, but the editor is still in the deadloop. I close the editor and restart it and the code gets reset to the original with the error.

We don’t have any scripts in this project. All it contains at the moment is 2 scenes with models.
How does this happen and how can I prevent it in the future? Because this is not the first time this has happened.

Did you try deleting the library folder ?

I’ve deleted everything except for the assets, packages, userSettings and Project settings folder and it still didn’t help.
I’ve solved the CustomPass error by deleting a samename script in a different plugin, but the deadloop remains.

I’ve also found that I have on occasion been able to build the project from these four folders on the desktop. But when I copy it back, it doesn’t work.