Forum > General

Lazarus keep overwriting the changes I make to source code

(1/3) > >>

udihamudi:
Hi, not sure what is happening I am new to this IDE, but each time I compile the changes I made to the source code are gone and the original file is showing, any way around this?

Thanks!

Arioch:
what exactly you name "source file"

there are files auto-generated, and there are files for you to edit

udihamudi:
I just edit one of the source lfm files and make some changes, save the file, once I recompile it reverts all the changes. Like it's holding some backup or cashed file somewhere and reverting to it(?)

Thanks!

KodeZwerg:
What you mean with "edit lfm" ?? Please describe what you do

rvk:

--- Quote from: udihamudi on September 26, 2022, 05:04:51 pm ---I just edit one of the source lfm files and make some changes, save the file, once I recompile it reverts all the changes. Like it's holding some backup or cashed file somewhere and reverting to it(?)
--- End quote ---
With what editor do you make these changes?
If it's outside Lazarus then Lazarus will rewrite the open form over your edited file again.
So make sure the form is closed in Lazarus when editing a lfm file outside the IDE
OR use right+click form and choose View source (lfm) in the IDE itself so you can make the changes there.

Navigation

[0] Message Index

[#] Next page

Go to full version