mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Issue Logfile is not deleting "old" entries? #3499

UliAbo posted onGitHub

I hope I'm not misunderstanding here something, but to me it feels like a bug.

grafik

A: I once had this class "Light" formerly called "+Light". B: As its name was "+Light", then I created another class "!Prop_All" where the "+Light" class was a sub class in. C: Here I brought the "+Light" class as "17__Light" class in. After all this I just renamed the class "+Light" to just "Light" without the plus. D: But since then these issues pop up in the log file, obviously demanding for the old "+Light" class (among others which have been renamed).

This seems buggy? What's the reason? If clear the log file, these entries keep showing up.

Specifications:

  • OS: Windows 10
  • Tiled Version: v1.9.2

This seems buggy? What's the reason? If clear the log file, these entries keep showing up.

If the entries keep showing up, then they are actual and not old issues being reported. Unfortunately at the moment, it's not possible to double-click on these issues to jump to the relevant location, but the almost certainly come from loading some file that is still referring to your "Light" class by its old name.

You could try to do a text search for "+Light" to find where your Light class is still being referenced by its old name.

In general, when you want to rename a custom type, you should at the moment make sure you have all maps/tilesets in your project loaded, or technically, all those that are referring to the type you want to rename, and then you'd need to save all these, to make sure they all get saved with the new type name. Unfortunately, the "Save All" function doesn't work for this, because it skips open files that are not marked as changed, which will not happen based on renaming a type.

It would definitely be nice to improve the handling of this, such that you can "Find Usages" of a type and also that renaming it could open relevant files and mark them as changed, or even just update them in the background. But for this we need better asset management (such that it can easily iterate "all maps in the project", for example).

posted by bjorn over 2 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests