Dear community, I think I found this IDE bug, on both MacOS (2.0.10, fpc 3.2.0) and Window (2.0.6, fpc 3.0.4).
(I don't know where to post the info, and I hope this place is not too wrong...)
In short: the IDE doesn't reload a form that has changed on the disk, even after the user tells it to do so.
To reproduce the bug:
1. Have Unit1 with a form and a button and some code, open in the IDE.
2. Do a Subversion Update, in which Unit1 code has changed -- BOTH in the unit1.pas and in unit1.lfm. Let's say that a new button has been added to the form.
(Alternatively, manually change both .pas and .lfm files, in a text editor, while the IDE is also open)
3. When you go back to the IDE, you will receive the warning that the file on disk has changed, and you will be prompted to reload it. So far, so good.
4. Choose to reload the changed files from disk. This is where the bug takes place:
The unit1.pas file with the new code is indeed reloaded, but the form, from unit1.lfm, is NOT reloaded. You still see the old form with 1 button.
5. The work-around for this bug is to close unit1 immediately from the IDE, and then reopen it. Now the new new form, with two buttons, will be loaded.
6. Note: if you don't immediately close and reopen unit1 manually, if the form is changed in any way, e.g. the position on the screen, or components changed, then this change will overwrite any changes received with the Update -- indeed you will never even see the changes in the form that should have been reloaded with unit1 after the Update.
The solution, obviously, is that after prompting the user to reload the changed files, both the source code (.pas) and the form file (lfm) should be reloaded, and not only the .pas file
Thanks!