* * *

Author Topic: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)  (Read 27371 times)

FTurtle

  • Full Member
  • ***
  • Posts: 204
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #75 on: October 11, 2017, 03:39:50 pm »
and almost always find that the elements of the forms overlaps with labels and other text when i run the programs in different linuxes/wm... almost everytime i change linux to develop/run i have to redisign the forms and move away the components of forms to avoid their overlap.
Is there any solution to this? or its a linux font problem?

Look at this:
http://forum.lazarus.freepascal.org/index.php/topic,33664.msg218436.html#msg218436

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4415
    • wiki
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #76 on: October 12, 2017, 03:39:40 am »
almost everytime i change linux to develop/run i have to redisign the forms and move away the components of forms to avoid their overlap.
Is there any solution to this? or its a linux font problem?

Use anchors and the anchor editor. http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Anchored_to_sibling and http://wiki.lazarus.freepascal.org/Anchor_Sides

If you have more questions on anchoring, please create a new thread/topic.
« Last Edit: October 12, 2017, 03:41:26 am by Martin_fr »

jack616

  • Sr. Member
  • ****
  • Posts: 265
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #77 on: October 13, 2017, 12:29:30 pm »
Before the next release could you please fix the long standing bug relating to
the failure of the lazarus uses clause to recognise relative paths in the lpr file.

eg:   uses '../../commonfiles/fred.pas'

(clicking the units button shows all files but clicking on the files fails to open them)

 PS - I dont know what you changed with the fonts this or recent releases ago
but its a big improvement - thanks for that.

john(not jack)

howardpc

  • Hero Member
  • *****
  • Posts: 2422
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #78 on: October 13, 2017, 12:59:02 pm »
Before the next release could you please fix the long standing bug relating to
the failure of the lazarus uses clause to recognise relative paths in the lpr file.

eg:   uses '../../commonfiles/fred.pas'

(clicking the units button shows all files but clicking on the files fails to open them)

AFAIK the uses clause works with unit names (not unit filenames).
So the unit cited in the uses clause as StdCtrls merely represents the filename ... /lazarus/lcl/stdctrls.pp
The unit name is a mapping of the filename, not an identity.

jack616

  • Sr. Member
  • ****
  • Posts: 265
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #79 on: October 13, 2017, 02:19:26 pm »
Ok so the fix is to change the use to filenames - strip the path from the pop-up display
and you no longer have to keep manually loading every single file in the project
and a commonfiles folder is simply and fully implemented?
It is currently  very irritating for larger projects.

As it stands the ctrl+f12 button serves little or no purpose (and is better served in the project
menu anyway ?)

john(not jack)

 

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4415
    • wiki
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #80 on: October 13, 2017, 03:38:25 pm »
eg:   uses '../../commonfiles/fred.pas'

Does this compile?
If yes, is there a bug report?

Well if it compiles it should get fixed eventually.

But besides this (not affecting the need for a fix), I am curious why including files like this? Presumingly files shared with other projects?
In that case:
 I really recommend using a package for those files.

Though of course then, they get their own compiler settings.

If you move to packages make sure to clean all old ppu files.

Noodly

  • Jr. Member
  • **
  • Posts: 54
1.8 RC4 and AnchorDockingDsgn 0.5
« Reply #81 on: October 14, 2017, 01:11:25 am »
I've been using 1.8, RC4 for a while without any issues until I installed the AnchorDockingDsgn 0.5 package.

Now the code explorer and components tabs have joined in and I can't get rid of them. Screenshot attached.
« Last Edit: October 14, 2017, 01:17:59 am by Noodly »

Devstructor

  • New member
  • *
  • Posts: 27
    • Devstructor.com - Lazarus Tutorials and more
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #82 on: October 17, 2017, 09:50:08 am »
I found the solution. The template of a fpweb web application does not set Application.LegacyRouting to true. After Michael's changes in the routing, this is required to use the data module routing concept (http://lists.freepascal.org/pipermail/fpc-pascal/2017-January/049852.html).

I really like the new release candidate, but I found a problem  :)

After compiling a weblaz HTTP server application which was created with Lazarus 1.6.4 the project does not work anymore.

The routing seems to not work correctly. The HTTP server just responses
:Module Error The application encountered the following error: Error: Not found

It seems like the routing is not working, I cannot reach any of the existing OnRequest Methods of the TFPWebModule.

The bug is really easy to produce. Just install weblaz (shipped with Lazarus 1.8RC4), and create a new HTTP server application. A simple test does not even require the use of actions, you can just create the following OnRequest method:
Code: Pascal  [Select]
  1. procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;
  2.   AResponse: TResponse; Var Handled: Boolean);
  3. begin
  4.   AResponse.Content:='This test is working, great :)';
  5.   AResponse.Code:=200;
  6.   Handled:=True;
  7. end;  
  8.  

Thank you for your work  :)
http://www.devstructor.com    Devstructor.com - Lazarus Tutorials and more

dbannon

  • Jr. Member
  • **
  • Posts: 98
Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
« Reply #83 on: November 12, 2017, 11:33:12 pm »
TTrayIcon has a memory leak on the Mac (OK Windows and Linux). I think it will probably affect any app using the TrayIcon so I'd suggest its reasonably serious.

I have logged this in the bug tracker, item number 32678

I have not tested under RC5 but don't see any indication that it has been fixed between RC4 and RC5.

(I'll cross post this to the Mac section of the forum because Mac users need to be alert to it.)

David
Lazarus 1.8, Linux (and reluctantly Win10, OSX)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus