Lazarus IDE is project centric. It was designed that way.
You need to rethink and reimplement parts of the IDE to be able to open files without a project, or to compile files individually without a project or not related to the opened project.
Frankly, that will not do. That's why I use Geany for such cases. Btw: Delphi supports it, so why doesn't Lazarus.
This is a Delphi's feature the community miss and complains about since 2005* and maybe even before.
I don't like this Lazarus' feature, but it doesn't bother me.
As a matter of fact, this is one of the rare cases where I think Lazarus should be similiar to Delphi instead of better.
I see, at least, two big problems here:
- People coming from Borland, Inprise, CodeGear, Embarcadero, Idera's products expect an intuitive behavior that doesn't exist on Lazarus and get lost for some time.
- Lazarus project lacks on manpower to study the case and provide a big patch to implement a solution. And once ready, that big patch could never be accepted because of its huge impact on IDE's source code...
So, I can't see any solution in a near future.
Lazarus 1.8.4 IDE/editor problems
https://forum.lazarus.freepascal.org/index.php/topic,44638.msg313983.html#msg313983(1) "Close all" only closes, the (unit or text) files. The project stays open.
In Lazarus you always have to have a project open. (It just was designed that way a very long time ago, and to change it now would require rewrite of large parts of the IDE)
You can close the project from the project menu. But it will force you to open another project immediately (or close the IDE).
(2) Hence when you start Lazarus, either the last project can be re-opened, or an empty project has to be open.
(3) If you did "close all files" then the IDE may remember that no editor was open, so it will start a new project like this.
If you close a project with it's files open in the editor, then next time you open that project you should see editors right away.
(4) Not sure about 1.8.4, but in 2.0.0 (some of) those colors can be set.
On the color page for the editor, scroll down the tree with the color-elements. There is a section "Identifier Completion"
Compile LCL issue / error
https://forum.lazarus.freepascal.org/index.php/topic,29034.msg182687.html#msg182687But, I'm not sure that it isn't related to the fact that I tried to compile "Transmission Remote GUI" before that, even tho' I did a "Close All" before trying the LCL Build. Lazarus seems to "hold over" stuff from the previous project that was loaded.
No, File -> "Close All" does not close the project. It only closes files. That's why it is in Files menu. You still have the same project open.
The current project is closed when you open another project or create a new one. You can also do Project -> "Close Project" but then the IDE is not usable. That is because the session info is part of a project.
Having a project open always is a common complaint from new users. I believe you will complain about the same thing.
However it is a non-issue because the project can be a "virtual" project which is not saved anywhere. You can even run a virtual project, then it is automatically saved in a temp dir.
See the Project menu for project related actions, especially look at the project options.
lazarus GUI like Delphi 7 to 100%
https://forum.lazarus.freepascal.org/index.php?topic=22743.15However you are not a new user. In what situation you need to explicitly close a project?
I have understood that a long time ago there was no dialog but it was added because many people wanted it.
I do close projects from time to time (though indeed rate). Typically if I make to many "recent files/project" jumps and I'm unsure about the project I have opened.
Speaking of history. Originally IDE didn't have many features out-side of the project scope. That's why there was not an option to close one.
Right now IDE has many options that could be addressed without having a project opened:
* packages (installation/removal);
* configuration of IDE itself and/or packages;
* some other tools in the system;
If I need to change FPC version or directory or select a new package to be installed, why would I have to click "New Project" -> "Application"? (just from the usability point of view?).
I'm tend to right all sorts of IDE extensions, as you know
And IDE extension package cannot be a part of any project (as it doesn't really make sense), so I actually have to have something opened to continue editing the package.
IDE does allow to have a project opened without any source files opened.
So isn't it consistent to have IDE opened without any project opened?
* 2005: close projekt
https://forum.lazarus.freepascal.org/index.php?topic=807.02005: How about a Menuitem "Close Project" ?
https://forum.lazarus.freepascal.org/index.php?topic=1310.02006: How to close a project?
https://forum.lazarus.freepascal.org/index.php?topic=1850.02006: Closing a project.
https://forum.lazarus.freepascal.org/index.php/topic,2958.msg13597.html#msg135972008: 0012633: saves project file on Quit even after Close All Editor Files
https://bugs.freepascal.org/view.php?id=126332010: i can't close my program
https://forum.lazarus.freepascal.org/index.php?topic=10185.02015: Lazarus Release Candidate 1 of 1.4
https://forum.lazarus.freepascal.org/index.php/topic,27412.msg169569.html#msg1695692015: Lazarus vs FPC
https://forum.lazarus.freepascal.org/index.php/topic,30347.msg193088.html#msg1930882016: [SOLVED] Saved projects won't load
https://forum.lazarus.freepascal.org/index.php?topic=34004.02017: Lazarus Release Canditate 1 of 1.8
https://forum.lazarus.freepascal.org/index.php/topic,36907.msg246825.html#msg2468252019: Source Editor not displaying
https://forum.lazarus.freepascal.org/index.php/topic,16715.msg307010.html#msg307010