Recent

Author Topic: [SOLVED] Is this right?  (Read 1464 times)

fmc

  • New Member
  • *
  • Posts: 37
[SOLVED] Is this right?
« on: October 30, 2019, 11:46:34 pm »
Compiling my project last night and the LPR file popped up in the editor with some error in the Messages window.  I wish I'd been paying more attention because this happens often, though I'm sure this is the first time for the LPR file.  I always have to close out Lazarus and restart it to clear this up.  And since everything works as expected after restarting Laz, I let the glitch off the hook.

So, I just looked at my Project Units folder from the main menu and saw that the LPR file is now showing there with the main unit and the datamodule.  Why would that file be there?  And can it be safely removed from that list?
« Last Edit: October 31, 2019, 12:59:01 am by fmc »
Win X Pro / Lazarus 2.0.6 / FPC 3.0.4

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Is this right?
« Reply #1 on: October 31, 2019, 12:31:50 am »
*.lpr is your project file.


This is my project file for a certain project
Code: Pascal  [Select][+][-]
  1. program Referee3_DB;
  2.  
  3.  
  4. {$mode objfpc}{$H+}
  5.  
  6.  
  7. uses
  8.   {$IFDEF UNIX}{$IFDEF UseCThreads}
  9.   cthreads,
  10.   {$ENDIF}{$ENDIF}
  11.   Interfaces, // this includes the LCL widgetset
  12.   Forms, referee_main, referee_about, referee_meldingen, referee_types;
  13.  
  14.  
  15. {$R *.res}
  16.  
  17.  
  18. begin
  19.   Application.Title := PrgNaam;
  20.   RequireDerivedFormResource:=True;
  21.   Application.Scaled:=True;
  22.   Application.Initialize;
  23.   Application.CreateForm(TForm_RefereeMain, Form_RefereeMain);
  24.   Application.CreateForm(TForm_Message, Form_Message);
  25.   Application.CreateForm(TForm_About, Form_About);
  26.   Application.Run;
  27. end.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

jamie

  • Hero Member
  • *****
  • Posts: 7492
Re: Is this right?
« Reply #2 on: October 31, 2019, 12:39:19 am »
Compiling my project last night and the LPR file popped up in the editor with some error in the Messages window.  I wish I'd been paying more attention because this happens often, though I'm sure this is the first time for the LPR file.  I always have to close out Lazarus and restart it to clear this up.  And since everything works as expected after restarting Laz, I let the glitch off the hook.

So, I just looked at my Project Units folder from the main menu and saw that the LPR file is now showing there with the main unit and the datamodule.  Why would that file be there?  And can it be safely removed from that list?

Normally that is how projects are done, all files are In one folder but you can specify more folders for your units but the project files should stay together..

 If you have units you would like to use that you have made that are like common libs etc, you can include a directory in your project settings for the compiler to look there.
The only true wisdom is knowing you know nothing

fmc

  • New Member
  • *
  • Posts: 37
Re: Is this right?
« Reply #3 on: October 31, 2019, 12:58:22 am »
Thanks.  I just didn't notice the project file being there before.  And since my project crashed on compile last night with something to do with the project file, then I assumed it got put there due to the crash.  But I opened other Lazarus projects and see that they all have the project file listed in the Units sections.  Just a little jumpy, I guess.  That's what old age will do to you.  Makes you jumpy and makes you want a lot of coffee  :D
Win X Pro / Lazarus 2.0.6 / FPC 3.0.4

dbannon

  • Hero Member
  • *****
  • Posts: 3647
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [SOLVED] Is this right?
« Reply #4 on: October 31, 2019, 01:15:58 am »
Ah, sounds like you have ACDS*, you cannot possibly write code when you have ACDS.  Fix that and all will be well.

Seriously, Lazarus has very infrequent internal problems that might need a restart. Try and record the next error message you get and post it, life will be heaps easier if you fix the problem.

Davo

* ACDS = Acute Caffeine Deprivation Syndrome
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

fmc

  • New Member
  • *
  • Posts: 37
Re: [SOLVED] Is this right?
« Reply #5 on: October 31, 2019, 02:13:26 am »
No denying the ACDS  :D

As for the other thing, I'll document that.  It's been happening a few times a day. And usually after I've changed some code around. You know, looked at what I just did and cleaned it up a bit.  And that's a serious statement.  But i'll gather details and make a new post about it.
Win X Pro / Lazarus 2.0.6 / FPC 3.0.4

 

TinyPortal © 2005-2018