running single files on lazarus lazarus / 13-General ---------------------------------------------------------------------- ssliackus · 2018-09-16 13:08 Hi guys, I have very basic program with two files (both are *.pas endings one is main other is unit code), writen in text editor. I compile and run these with 'fpc 2.pas', but I have trouble when I want to run these from Lazarus IDE. I start 'New Simple Program', which give me empty lpr file, so the only way for me to run code is paste pas into lpr file. I understand that I am doing something wrong, but I do not know what is the proper way of running very simple program in Lazarus (. Any advise on that? Or it would be the best if there would be a tutorial on proper lazarus project management. Thanks ---------------------------------------------------------------------- Bart · 2018-09-16 13:23 Use file->open. The IDE will detect that the pas file is indeed a program and asks you to make a project for it. Click OK. In the dialog you now get select "Simple Progream" and click OK. The IDE will now make a project file for the program and open the program file in the editor. The dialog is a bit confusing, not sure if it is necessary, but there you go. Bart ---------------------------------------------------------------------- ssliackus · 2018-09-16 15:44 Can I start Lazarus without any Project loaded? ---------------------------------------------------------------------- lucamar · 2018-09-16 16:25 Quote from: ssliackus on September 16, 2018, 05:44:06 pmCan I start Lazarus without any Project loaded? Yes, but it then will show a modal dialog to select a project--whether a new one, open an old one, etc.---and won't let you do anything else until a project is opened. ---------------------------------------------------------------------- JuhaManninen · 2018-09-16 16:28 Quote from: ssliackus on September 16, 2018, 05:44:06 pmCan I start Lazarus without any Project loaded? No. Session info is part of a project. However you can have a non- saved "virtual" project and even run it, thus it is not really a problem. The modal dialog mentioned by lucamar was added because people wanted a way to close a project. You cannot do anything useful while the dialog shows.