Recent

Author Topic: Lazarus Release Candidate 3 for 2.0  (Read 103479 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 3 for 2.0
« Reply #90 on: January 09, 2019, 11:08:07 am »
Pasting Image issue on Linux.
Thanks WP, thats the confirmation I needed !

Will log a report.
Correction - have logged a report https://bugs.freepascal.org/view.php?id=34840

David
« Last Edit: January 09, 2019, 11:35:17 am by dbannon »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Lazarus Release Candidate 3 for 2.0
« Reply #91 on: January 09, 2019, 01:07:26 pm »
I found what caused the bug with controls appearing on all tabs of a pagecontrol.  If you create the control on the main form, and then move it to the pagecontrol tab, it will appear on all tabs.

That's probably because it hasn't changed parent so it's not that it appears in all tabs but that it appears over the page control itself.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

aht0

  • Newbie
  • Posts: 3
Re: Lazarus Release Candidate 3 for 2.0
« Reply #92 on: January 11, 2019, 11:13:51 am »
Install on FreeBSD 12.0-RELEASE from source fails.

gmake output final rows (gmake is GNU Make, not compatible with FreeBSD's own Make)
Quote
Hint: (11030) Start of reading config file /usr/local/etc/fpc.cfg
Hint: (11031) End of reading config file /usr/local/etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2018/12/20] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: FreeBSD for x86-64
(3104) Compiling startlazarus.lpr
(3104) Compiling redirect_stderr.pas
(3104) Compiling lazarusmanager.pas
/root/lazarus/ide/lazarusmanager.pas(138,35) Hint: (5024) Parameter "Sender" not used
/root/lazarus/ide/lazarusmanager.pas(429,12) Warning: (5043) Symbol "CommandLine" is deprecated
(9022) Compiling resource ../units/x86_64-freebsd/gtk2/startlazarus.or
(9015) Linking ../startlazarus
(1008) 708 lines compiled, 4.1 sec
(1021) 1 warning(s) issued
(1022) 3 hint(s) issued
gmake[2]: Leaving directory '/root/lazarus/ide'
gmake[1]: Leaving directory '/root/lazarus/ide'

gmake install output in it's short entirety
Quote
#csh# gmake install
/usr/local/bin/ginstall -m 755 -d /usr/local/share
/usr/local/bin/ginstall -m 755 -d /usr/local/share/lazarus
/usr/local/bin/ginstall -m 755 -d /usr/local/share/applications
/usr/local/bin/ginstall -m 755 -d /usr/local/share/pixmaps
/usr/local/bin/ginstall -m 755 -d /usr/local/share/mime/packages
/usr/local/bin/ginstall -m 755 -d /usr/local/share/icons/hicolor/48x48/mimetypes
/usr/local/bin/ginstall -m 755 -d /usr/local/bin
/usr/local/bin/ginstall -m 755 -d /usr/local/share/man
/usr/local/bin/ginstall -m 755 -d /usr/local/share/man/man1
/bin/cp -Rfp packager debugger designer converter ide images languages lazarus.app units /usr/local/lazarus
cp: /usr/local/lazarus is not a directory
gmake: *** [Makefile:3420: install] Error 1

At first glance it looks like /usr/local/lazarus was not created. After I created it manually and reran gmake install it looks like installation was successful. No error messages in the tail end of output on shell.

However
Quote
#csh#startlazarus
startlazarus: Command not found.

ehm, what?
Quote
ll /usr/local/bin/startlazarus
lrwxr-xr-x  1 root  wheel  29 Jan 11 12:06 /usr/local/bin/startlazarus@ -> ../share/lazarus/startlazarus
#csh# ll /usr/local/share/lazarus/startlazarus
ls: /usr/local/share/lazarus/startlazarus: No such file or directory
ll /usr/local/share/lazarus/
total 0
Empty folder with no files in it. And /usr/local/bin/startlazarus appears to be linked against non-existing file..

Ideas?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Lazarus Release Candidate 3 for 2.0
« Reply #93 on: January 11, 2019, 03:07:47 pm »
Binaries should never be in share/ to begin with, since that is for architecture independent files.

Arvur

  • New Member
  • *
  • Posts: 48
    • My GitHub
Re: Lazarus Release Candidate 3 for 2.0
« Reply #94 on: January 11, 2019, 03:31:15 pm »
It seems that AutoSave function became too aggressive )))

Sometimes Lazarus asks to reopen project but often it overwrites files without any confirmation after I switch git branches.
Not sure... Perhaps it started from RC2.

costel78

  • New Member
  • *
  • Posts: 14
Re: Lazarus Release Candidate 3 for 2.0
« Reply #95 on: January 11, 2019, 05:30:59 pm »
In every 2.0 RC was a bug related to TDBLookUpListBox. First, it didn't work as intended: you can not select items, KeyValue is not null, but does not contain a valid value either. It is happens when linked DataSource and/or ListSource contain a read-only field.
Tested only on Linux, so far.
Attached is a small example project. Yes, I know that table structure is awkward (SQL statement, too  :) ) but it is working sometimes with simpler structures.

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 3 for 2.0
« Reply #96 on: January 11, 2019, 05:57:30 pm »
In every 2.0 RC was a bug related to TDBLookUpListBox. First, it didn't work as intended: you can not select items, KeyValue is not null, but does not contain a valid value either. It is happens when linked DataSource and/or ListSource contain a read-only field.
Tested only on Linux, so far.
Attached is a small example project. Yes, I know that table structure is awkward (SQL statement, too  :) ) but it is working sometimes with simpler structures.

Then please open an issue about it (if it's already not opened) and attach example project so it won't be forgotten.

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: Lazarus Release Candidate 3 for 2.0
« Reply #97 on: January 12, 2019, 05:17:29 pm »
I tried to compile the version from https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC3, but it gives

Quote
Code: [Select]
packagedefs.pas(59,17) Error: No matching implementation for interface method "GetIDAsString:AnsiString;" found
packagedefs.pas(59,17) Error: No matching implementation for interface method "GetIDAsWord:AnsiString;" found

edit: because it is private in TLazPackageID ...
« Last Edit: January 12, 2019, 05:46:56 pm by BeniBela »

aht0

  • Newbie
  • Posts: 3
Re: Lazarus Release Candidate 3 for 2.0
« Reply #98 on: January 12, 2019, 06:15:37 pm »
Binaries should never be in share/ to begin with, since that is for architecture independent files.
Yeah, I wondered about that. These are all 'default' folders though, chosen by Lazarus's make build system.
Should I consider report in bug tracker?

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: Lazarus Release Candidate 3 for 2.0
« Reply #99 on: January 12, 2019, 06:43:06 pm »
Now
Code: [Select]
   DrawText(Canvas.Handle,{$IFNDEF CLR}pchar{$endif}(s),length(s), temp,flags); shows the wrong encoding. The string is utf-8, but it shows latin1 on Windows 7


and when i call utf8ToWinCP on the string it is broken on wine, because  it needs utf-8 in the string there
« Last Edit: January 12, 2019, 07:10:41 pm by BeniBela »

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • Bart en Mariska's Webstek
Re: Lazarus Release Candidate 3 for 2.0
« Reply #100 on: January 12, 2019, 07:13:30 pm »
Now
Code: [Select]
   DrawText(Canvas.Handle,{$IFNDEF CLR}pchar{$endif}(s),length(s), temp,flags); shows the wrong encoding. The string is utf-8, but it shows latin1 on Windows 7

Where does that piece of code come from?
Is CLR defined?
IIRC when handling strings as PChars (in API's) the codepage information of the string gets lost.

Bart

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: Lazarus Release Candidate 3 for 2.0
« Reply #101 on: January 12, 2019, 07:19:11 pm »
Now
Code: [Select]
   DrawText(Canvas.Handle,{$IFNDEF CLR}pchar{$endif}(s),length(s), temp,flags); shows the wrong encoding. The string is utf-8, but it shows latin1 on Windows 7

Where does that piece of code come from?
Is CLR defined?
IIRC when handling strings as PChars (in API's) the codepage information of the string gets lost.

Bart

I wrote the code. It worked the last time I tested it.

CLR is for Delphi net  or something

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: Lazarus Release Candidate 3 for 2.0
« Reply #102 on: January 12, 2019, 08:18:58 pm »
I tried to compile the version from https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC3, but it gives
Quote
Code: [Select]
packagedefs.pas(59,17) Error: No matching implementation for interface method "GetIDAsString:AnsiString;" found
packagedefs.pas(59,17) Error: No matching implementation for interface method "GetIDAsWord:AnsiString;" found
edit: because it is private in TLazPackageID ...
It got fixed in r59921.
It caused problems only with FPC trunk and should not matter for Lazarus 2.0 which comes with FPC 3.0.4, but I marked it to be merged to 2.0 anyway.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: Lazarus Release Candidate 3 for 2.0
« Reply #103 on: January 12, 2019, 10:56:15 pm »
Now
Code: [Select]
   DrawText(Canvas.Handle,{$IFNDEF CLR}pchar{$endif}(s),length(s), temp,flags); shows the wrong encoding. The string is utf-8, but it shows latin1 on Windows 7


and when i call utf8ToWinCP on the string it is broken on wine, because  it needs utf-8 in the string there

Scrap that, DrawText is working fine

All my data is in the wrong encoding

JernejL

  • Jr. Member
  • **
  • Posts: 92
Re: Lazarus Release Candidate 3 for 2.0
« Reply #104 on: January 14, 2019, 09:11:54 am »
In latest lazarus, i have a issue with debugger not really working on any variables - i've attached a picture, this is stock install: Lazarus 2.0.0RC3 r59877 FPC 3.0.4 i386-win32-win32/win64
 

 

TinyPortal © 2005-2018