What I’m trying to do:
Get Anvil’s IDE to recognize my latest edits when running in IDE.
Edit: How you can recognize the problem:
You’re editing a module, and making visible changes, but the Commit button fails to enable.
If the Commit button was already enabled, the only way I’ve spotted the problem is an obvious inconsistency between the Running App and the code, e.g., I changed the text of a label, or the code that generates such text, but the App runs as if I had not yet made the change.
This can also be reflected in the debugger and breakpoints, which act on the old version of the code. New local variables don’t appear, old ones do, and new breakpoints get attached to the corresponding line number in the previous version of the code, so it doesn’t stop at the intended point.
What I’ve tried and what’s not working:
Most of the time, it works normally. But several times a day, now, while my edits appear in the IDE, and I can edit them normally, the Run button doesn’t recognize them, nor does Version Control. If I refresh the IDE, those edits disappear, reverting to the code as the Run button sees it.
Workaround (Python code only): copy the edited module out of the IDE to my favorite editor, refresh the IDE, and paste them back in. This does not work for changes to Forms (.yaml files), however.
My project is too large (and proprietary) to clone, but I will be happy to send a link to Anvil so they can investigate what’s going on inside the IDE, under the covers.
More Context
I’m using Chrome, but this has also happened using Edge (which is also Chromium-based). I don’t think Firefox will work with something of this size.
Edit: I’ve been copying custom components, within a Package, and renaming them. The renames do not carry over into the module source code, not all of them, perhaps due to the length or syntax of the component name.