Occurs during cut/copy/paste of a container from one form into another. In the destination form, deeply nested components may end up with names that duplicate other, existing components on the same form.
This plays merry hell with the Properties editor. Primary symptoms: a change made via the Property editor:
- seems to undo itself in the graphical (WYSIWG) display, or
- seems to appear in two separate places in the display.
On occasion, this seems to have happened even when the names are not quite identical, but one is a suffix of the other.
Workaround:
- In the Anvil IDE, save and exit the app.
- Use Git to obtain a local copy of the form’s .yaml file.
- Use grep to isolate all the
name
s. - Remove leading spaces from the resulting list.
- Sort the list, so that you can readily find the duplicates. You may find several distinct pairs of duplicates.
- Using your favorite text editor, locate each duplicate
name
, and change it to something unique in the form. Save your changes. - Locally
commit
your change to Git -
git push
the change back to Anvil - Until this bug is fixed, be prepared to do this after any paste. This seems to be happening quite a lot in the last two days, and it’s quite a speed bump.
This is occurring in both Firefox and Chrome under Windows 10.
I’m not sure how long it’ll take to come up with a minimal sample that illustrates the problem. However, I already have an app-under-development where it is occurring quite frequently, and can direct Anvil tech support on how to quickly replicate the problem, with a (private) clone of the app.