Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Manually renaming tags does not take effect #828

Open
johlo opened this issue Jul 8, 2019 · 1 comment
Open

Manually renaming tags does not take effect #828

johlo opened this issue Jul 8, 2019 · 1 comment

Comments

@johlo
Copy link

johlo commented Jul 8, 2019

More of a question than a bug report since I most likely misunderstood something about how VoTT works internally.

I tried renaming tags by manually editing the myproj.vott file and *-asset.json, but the old name will still exist somehow and is added back to the myproj.vott and *-asset.json files on the next start of the application.

Repro:

  1. Create a new project (myproj), define a tag t1
  2. Choose an image and label some region with the tag
  3. Save project and close the vott app
  4. Grep for the t1 tag in the myproj.vott and *-asset.json files, it exists as expected
  5. Edit myproj.vott and *-asset.json with some text editor (e.g. emacs), rename all occurrences of t1 to t2
  6. Start vott again and load the project
  7. The tag list on the right still shows t1, no t2, the region we previously labelled with t1 shows as untagged
  8. Do a reload (View -> Reload)
  9. The t2 tag appears in the tag list, t1 is still there (the area remains untagged)
  10. Looking in the myproj.vott I can see that t1 has been added back to the json

Is there some cache file somewhere that needs to be updated as well?

I'm aware that tags can be renamed in the app, just figured it would be quicker to do a sed to rename them.

OS: Mac OS X 10.13.5
VoTT: 2.1.0 standalone app downloaded from GH release page

@k-t-to
Copy link

k-t-to commented Oct 6, 2020

Hello,

I ran into a similar issue (VoTT 2.2.0). I manually added tags to myproj.vott and when reopening the project, the file would revert back to the original so none of the added tags were there anymore. This happened when opening the projects by clicking under Recent Projects and when I tried to open myproj.vott from Finder.

What worked for me was after manually editing myproj.vott, I clicked "Open Local Project" under the Home tab and selected myproj.vott. This added my manually added tags to the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants