Recent

Author Topic: Lazarus Release Candidate 2 for 2.0  (Read 72909 times)

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
Re: Lazarus Release Candidate 2 for 2.0
« Reply #75 on: November 28, 2018, 11:41:46 pm »
On MacOS can't build IDE.

Fresh install on MacOS High Sierra 10.13.2 -> Tools -> "Build Normal IDE" ends with "Error lazarus.pp(57,13) Fatal: Cannot find Interfaces used by Lazarus, incompatible ppu=/ ..... / interfaces.ppu, package LCL". Changing options to clean all or any other  (carbon,cocoa, 32,64bit...) don't help.
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Lazarus Release Candidate 2 for 2.0
« Reply #76 on: November 29, 2018, 06:47:31 pm »
Just checked trunk laz with trunk fpc32 on Win10, and in my docked IDE there seams to be a bug. When I right click on a tab in Source Editor and when I choose Close Page - tab page is not closed and instead I get a menu (with Locked, Undock, Header position...) just like when I right click on top bar of a docked IDE form. Ctrl+F4 works, and File/ClosePage menu also works as it should. Can someone else confirm this?
« Last Edit: November 29, 2018, 06:50:21 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 2 for 2.0
« Reply #77 on: December 01, 2018, 09:40:37 pm »
Sorry for this ignorant question, but I am relatively new to svn and have only a rudimentary understanding. I wish to use the newest appropriate version of Lazarus to test the macOS cocoa widgets and lldb.

I have been building the latest trunk of Lazarus, which is now at 2.1.0 revision 59708. There are some strange issues with the z order of forms, and I reported some bugs that I could isolate.

It seems, however, that perhaps I should be using the latest fixes for 2.0.0 instead as this may be more stable. Is that the case? If so, I'd appreciate being pointed to some instructions for what I should be doing instead of my current:

Code: Pascal  [Select][+][-]
  1. svn update
  2. make clean all LCL_PLATFORM=cocoa CPU_TARGET=x86_64
  3. open lazarus.app --args "--pcp=~/.laz-trunk"

Thanks,
VTwin
« Last Edit: December 01, 2018, 10:11:22 pm by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 for 2.0
« Reply #79 on: December 03, 2018, 08:34:46 am »
fixes_2_0 as of 3rd December, Cocoa not building.

cocoaprinters.inc(106,36) Error: identifier idents no member "lclCGContext"

106 of cocoaprinters.inc appears in this function -
Code: Pascal  [Select][+][-]
  1. procedure TCocoaPrinterView.drawRect(dirtyRect: NSRect);
  2. var
  3.   Context: NSGraphicsContext;
  4. begin
  5.   Context := NSGraphicsContext.currentContext;
  6.  
  7.   CGContextDrawPDFDocument(context.lclCGContext, CGRect(dirtyRect), doc, pageNum);
  8. end;
   

I don't really blame it, I cannot find any mention of lclCGContext under components either ! Is anyone else aware of this issue or can confirm its an issue ?

Davo

     

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

mischi

  • Full Member
  • ***
  • Posts: 170
Re: Lazarus Release Candidate 2 for 2.0
« Reply #80 on: December 03, 2018, 01:02:03 pm »
Maybe my report was not obvious enough, but I reported this bug on the bug tracker.

https://bugs.freepascal.org/view.php?id=34623

Greetings - Michael.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 for 2.0
« Reply #81 on: December 03, 2018, 01:35:10 pm »
and thats an excellent report too Michael, its just I could not find it.

Sigh, I have to admit it, I dont know how to search the bug tracker !

Anyone ?

Davo
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

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 2 for 2.0
« Reply #82 on: December 04, 2018, 01:17:56 pm »
fixes_2_0 as of 3rd December, Cocoa not building.

cocoaprinters.inc(106,36) Error: identifier idents no member "lclCGContext"

106 of cocoaprinters.inc appears in this function -
Code: Pascal  [Select][+][-]
  1. procedure TCocoaPrinterView.drawRect(dirtyRect: NSRect);
  2. var
  3.   Context: NSGraphicsContext;
  4. begin
  5.   Context := NSGraphicsContext.currentContext;
  6.  
  7.   CGContextDrawPDFDocument(context.lclCGContext, CGRect(dirtyRect), doc, pageNum);
  8. end;
   

I don't really blame it, I cannot find any mention of lclCGContext under components either ! Is anyone else aware of this issue or can confirm its an issue ?

Davo

   

This should have been fixed in revision 59723

mischi

  • Full Member
  • ***
  • Posts: 170
Re: Lazarus Release Candidate 2 for 2.0
« Reply #83 on: December 04, 2018, 04:42:47 pm »
Fix confirmed.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 2 for 2.0
« Reply #84 on: December 04, 2018, 08:05:09 pm »
I noted a cocoa bug (listbox) in 2.0.0RC2 r95727:

http://forum.lazarus-ide.org/index.php/topic,43415.msg303900/topicseen.html

It is fixed in 2.1 (although latest svn trunk does not compile on mac). So should I be reporting this as a requested fix for 2.0? Will cocoa fixes be applied before 2.0 is released?
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

daveinhull

  • Sr. Member
  • ****
  • Posts: 297
  • 1 divided by nothing must still be 1!
Re: Lazarus Release Candidate 2 for 2.0
« Reply #85 on: December 05, 2018, 02:21:23 am »
Hi,

I've just installed 2.0C2 but when I try to build Lazarus I get the following error

apputils.pp(251,36) Error: Identifier not found "SNoMDIForm"

in the following code:

Code: Pascal  [Select][+][-]
  1. procedure SaveMDIChildren(MainForm: TForm; IniFile: TCustomIniFile);
  2. {$ifdef nevertrue}
  3. var
  4.   I: Integer;
  5. {$endif}
  6. begin
  7.   if (MainForm = nil) or (MainForm.FormStyle <> fsMDIForm) then
  8.     raise EInvalidOperation.Create(SNoMDIForm);
  9.   IniFile.EraseSection( siMDIChild);
  10. //!! MVC: Needs fixing !
  11. {$ifdef nevertrue}
  12.   if MainForm.MDIChildCount > 0 then begin
  13.     IniWriteInteger(IniFile, siMDIChild, siListCount,
  14.       MainForm.MDIChildCount);
  15.     for I := 0 to MainForm.MDIChildCount - 1 do
  16.       IniWriteString(IniFile, siMDIChild, Format(siItem, [I]),
  17.         MainForm.MDIChildren[I].ClassName);
  18.   end;
  19. {$endif}
  20. end;

But if I build Lazarus on my desktop machine it works ok, any thoughts as to what might be wrong?

Thanks
Dave
Version #:1.8.4 Date 2019-01-08 FPC Version: 3.0.4 and SVN Revision 57972 for x86_64-win64-win32/win64

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 for 2.0
« Reply #86 on: December 05, 2018, 12:56:27 pm »
....
This should have been fixed in revision 59723
Indeed it is.
Thank you Xor-el.
Davo
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

jujibo

  • Full Member
  • ***
  • Posts: 114
Re: Lazarus Release Candidate 2 for 2.0
« Reply #87 on: December 11, 2018, 10:34:22 am »
Hi!

There is a bug introduced in r59700 (svn). Rev 59699 is ok.

Under windows all is fine but under linux all the pages are printed in one page (text over text), also affects to the number of copies (only print one copy).

Tested Linux Mint 19 and Debian 9 Gtk2 and fpc 3.0.5 and Lazreport. Printing to PDF printer and true printer.

Thanks

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Candidate 2 for 2.0
« Reply #88 on: December 11, 2018, 12:46:36 pm »
There is a bug introduced in r59700 (svn). Rev 59699 is ok.
r59700 merges r59492 from trunk. The commit is by Jesus with message :
 "Printers: Support for Cocoa printing, updated examples."

Please report a regression bug in the bug tracker. It should be fixed before release.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

jujibo

  • Full Member
  • ***
  • Posts: 114
Re: Lazarus Release Candidate 2 for 2.0
« Reply #89 on: December 11, 2018, 01:01:17 pm »
There is a bug introduced in r59700 (svn). Rev 59699 is ok.
r59700 merges r59492 from trunk. The commit is by Jesus with message :
 "Printers: Support for Cocoa printing, updated examples."

Please report a regression bug in the bug tracker. It should be fixed before release.

I emailed Jesús about it before posting here. I guess he knows it but still no response.

Filled a bug report: https://bugs.freepascal.org/view.php?id=34680

Thanks

 

TinyPortal © 2005-2018