Forum > Beginners
Files *.pas, *.lps (created automatically), *.lpr, *.lpi
graemejc:
I was an "experienced" Pascal programmer in the 1980s and left the profession in the early 1990s and am now trying to write some useful programs. But I'm a bit stuck with Lazarus.
I create a file project1.pas.
Lazarus(?) creates a file in notebook called project1.lps which opens in notebook. Not sure what that file is meant to do and it doesn't really create much confusion for me, but if someone is able to explain that to me it would be appreciated.
Lazarus also creates a files project1.lpr which seems a near-clone of project1.pas. Why?
And finally a file called project1.lpi. When I click on that it seems to want to open the project named project1. Again, not really confused about that.
I tried to search for all these extensions in the documentation provided with free pascal, but couldn't find reference to any of them.
Apologies if this is a too trivial Q. Looked for an FAQ file but couldn't find one.
graemejc:
It seems that editing project1.pas is ignored. I have to edit the *.lpr file???!!!
Handoko:
The information can be found here:
http://wiki.freepascal.org/File_extensions
HeavyUser:
--- Quote from: graemejc on November 17, 2018, 03:04:58 pm ---I was an "experienced" Pascal programmer in the 1980s and left the profession in the early 1990s and am now trying to write some useful programs. But I'm a bit stuck with Lazarus.
I create a file project1.pas.
Lazarus(?) creates a file in notebook called project1.lps which opens in notebook. Not sure what that file is meant to do and it doesn't really create much confusion for me, but if someone is able to explain that to me it would be appreciated.
Lazarus also creates a files project1.lpr which seems a near-clone of project1.pas. Why?
And finally a file called project1.lpi. When I click on that it seems to want to open the project named project1. Again, not really confused about that.
I tried to search for all these extensions in the documentation provided with free pascal, but couldn't find reference to any of them.
Apologies if this is a too trivial Q. Looked for an FAQ file but couldn't find one.
--- End quote ---
a bullet type explanation of file types. http://wiki.freepascal.org/file_types
Depending on how you create your application/project various file types come in to play.
here is a tutorial http://wiki.freepascal.org/Lazarus_Tutorial
here is a tutorial from a user I just found https://www.win.tue.nl/~wstomv/edu/lazarus/dev_gui_app.html
Are you interested in a gui application or you want to start with a console application to get back in programming?
jamie:
The Lazarus IDE creates some files on its own to maintain your project...
The lpr is the Lazarus project file and thus the main file of your application.
lpi is the Lazarus information file on your project which contains all sort of things like settings
to your project etc... These settings are used to decide on how your code is built and how your working
environment for this project is setup... Sometimes things go wrong with this file and you need to reset it.
if you came from the days of no IDE or minimal then it can be disoriented to be introduced to an IDE which
makes things much easier..
These files are needed to manage your point and click of your objects at design time so you can visually
create an app. for the most part they are used for the IDE only to manage your code for your point and click
of building apps.
Navigation
[0] Message Index
[#] Next page