I wanted to help find some bug.Ok, if there is a bug then I misunderstood you.
After I add some unit in Code edit window of laz1.lpi then close laz1.lpi and open laz2.lpi, this unit will appear in code edit window of laz2.lpi too. Same with delete some unit from laz1.lpi or from laz2.lpi.Is this about units OPEN in the EDITOR window?
The real names of laz1.lpi and laz2.lpi are the same.
Is this about units OPEN in the EDITOR window?Yes, it is
Because that differs from "ADDED to PROJECT".Yes, it is thus.
Did you actually test, if the IDE modifies the lpi in the "other" directory?I did not understand this.
- Backup both lpiSorry, but I cannot make this already. According of advice of JuhaManninen I made new project, which is working correctly and then I deleted both folders.
- work on one project
- save and close.
- use a diff tool to see if the other lpi was modified.
The windows open in the editor, are stored in the session (and you can open files, that do NOT belong to the project, yet will be remembered).It is very useful information.
The session can be stored either:
- as part of the lpi
- as lps file in the project folder
- as lps file in the global lazarus conf dir (primary config path)
And in the last case, if both projects have the same name, that will mean they share a session.
lps file in the global lazarus conf dir (primary config path)Unfortunately I did not know about the existence of this file in the global lazarus conf dir.
Go to menu: Project > Project OptionsI acknowledge that the real cause of this problem was my irresponsibility for using Lazarus. I should have studied so many things before, how to use it correctly! Including about session.
then page: Project Options > Session
And it will show where your session goes.
Off topic / but about copying projectsThis is the key advice to duplicate project in Lazarus. Many thanks!
Most of the time coping the folder will work.
A better way to get a clean copy, is using "Publish project" from the menu.