-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming classes does not update .meta file #2027
Comments
I can't recreate this with 2020.3. Could you give some more details about your project, please? Is this a normal Unity generated solution, and is If this is reproducible, please can you enable logging for Unity by going to Help -> Diagnostic Tools -> Choose Trace Scenarios and check "Unity", and then try to rename again. You can use Help -> Collect Logs to create a zip file of your logs, which you can attach here, or use the Help -> Report a Bug if you'd prefer to keep your logs private (if you use Help -> Show Log in Explorer, it's the |
hey @citizenmatt, thank you for super quick response. The file was created and is part of unity solution (it's located in unity's assets folder). I have tried to create brand new unity project, and there renaming works! Very strange. I have also tried to rename it while unity is closed, to make sure it's not locking the .meta file, but that is not the case. Following are the logs: rider-logs-20210216-153407.zip as above, I created ExampleClass using Rider into Assets folder and renamed it into ExampleClassRenamed, so the action should show in the logs. |
Does the problem persist after restarting? If so, can you try quitting Rider and renaming the solution file We only update meta files for Unity generated solution, which means the solution name matches the folder name. Normally this means an exact match, including case, but your example has a folder name of |
@citizenmatt you are correct, it was the damn .sln naming! But I had to also delete .idea folder it seems, otherwise it did not work. Cheers and thanks! |
Great, glad it's working again. Not sure exactly why deleting the |
Description:
Renaming classes via Rider does not update .meta file, breaking all references in a project.
Create a class
Rename it
Watch as .cs.meta filename stays the same and does not get named by this plugin
Unity Support plugin version:
Expected:
Renaming a class should also rename associated .meta file, so the reference guid stays the same.
Unity settings:
The text was updated successfully, but these errors were encountered: