These are my steps:
- etc ...
These are my steps:
- Windows 10, 64-bit IDE (Laz/main + fpc 3.2.2)
- IDE from yesterday's git, clean rebuild of the IDE with
-MObjFPC -Scghi -O1 -OoREGVAR
-gw3 -gl -Xg -WG-
Target dir $(ConfDir)\
I dont think those points are important and I do a clean of the units by deleting the $(ConfDir)\units dir.
Enter lazarus
- The last project gets shown.
- Project / New project ... / Application
- Now have Unit1 shown.
- Touch Unit1, add a space before 'unit unit1;'
- Project / New project ... / Application
- Asks : Save changes to project project1?
- Answer : Yes
- Proposed : project1, I accept (because there is no project1 in the proposed folder)
- Proposed : unit1, I put unit2 as .pas filename.
- Here I have the new project, with an empty form.
- I decide to reload the prior project that I just saved above
- Project / Recent project, the first one that comes.
- Now I see unit2 that I specified above
- Run F9 (it'll compile) maybe offering to debug ...
- But project1.lpr(13,10) Error: Cannot find Unit1 used by project1 of the Project Inspector.
- When I saved the form as unit2, it didn't correct the project1 replacing unit1 by unit2.
If you dont get the same result as me, I go back to the programmer's asylum and drop the case. Thanks.