Recent

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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Lazarus Release Candidate 2 for 2.0
« on: November 01, 2018, 11:00:40 am »
The Lazarus team is glad to announce the second release candidate of Lazarus 2.0.

This release was built with FPC 3.0.4.
The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well.

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.0RC2" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#2_0_0RC2

Minimum requirements:

Windows:
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC2

For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ and later at (after some time for synchronization) http://mirrors.iwi.me/lazarus/

== Why should everybody (including you) test the release candidate? ==

In the past weeks the Lazarus team has stabilized the 2.0 fixes branch. The resulting 2.0RC2 is now stable enough to be used by any one for test purposes.

However many of the fixes and new features that where committed since the release of 1.8 required changes to the code of existing features too. While we have tested those ourself, there may still be problems that only occur with very specific configurations or one project in a million.

Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective
about which fixes can be merged for further 2.0.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features.

== How to test ==

Download and install the 2.0 RC2.
- On Windows you can install as a 2ndary install, that will not affect
  your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use
--primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.8.x), and use "Publish2 Project" from the project menu. This creates a clean copy of your
project.

You can then open that copy in the RC2. Please test:
- If you can edit forms in the designer
  - rename components / change properties in Object inspector / Add new
    events
  - Add components to form / Move components on form
  - Frames, if you use them
- If you can navigate the source code (e.g. jump to implementation)
- Auto completion in source code
- Compile, debug and run
- Anything else you use in your daily work
« Last Edit: November 07, 2018, 01:52:10 am by Martin_fr »

mischi

  • Full Member
  • ***
  • Posts: 170
Re: Lazarus Release Canditate 2 for 2.0
« Reply #1 on: November 01, 2018, 01:49:11 pm »
1) RC2 is not available for macOS as a download from http://sourceforge.net/projects/lazarus/files

2) I did a brief test of building the various variants of lazarus from https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/

All variants (carbon, cocoa, gtk2, Qt4 and win... cross-lcls) were built without problems. So far, I did not test running the variants.

nanobit

  • Full Member
  • ***
  • Posts: 160
Re: Lazarus Release Canditate 2 for 2.0
« Reply #2 on: November 01, 2018, 07:24:18 pm »
It would be nice if users had another download, with -dTEST_WIN32_SEH:
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2032/
lazarus-2.0.0RC2-?????-fpc-3.2.0-beta-?????-win32-seh.exe

Reason: AFAIK, there are at least two problems with Non-SEH exceptions:
1) catching os-exceptions in dll (propagate to host)
2) debugging with os-exceptions (app can't continue)
Especially, users coming from Delphi are very surprised about this.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Canditate 2 for 2.0
« Reply #3 on: November 01, 2018, 07:58:39 pm »
SEH is about FPC build, isn't it?
You can easily get Lazarus sources from SVN and build it yourself using the compiler you installed.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Canditate 2 for 2.0
« Reply #4 on: November 01, 2018, 10:25:57 pm »
https://sourceforge.net/projects/lazarus-snapshots/  is a  "semi official" channel.
That is files there are build and provided by members off the Lazarus team (currently just me), but they are snapshots, not part of the official release cycle.

Currently I put some builds with fpc from the 3.2 branch there. It is possible that fpc 3.2 will be released while Lazarus is releasing minor updates to Lazarus 2.0 (e.g. maybe when Lazarus 2.0.6 is due). In this case some Lazarus 2.0.x will likely be switched to use the new fpc 3.2. For that reason it is desirable that fpc from that branch is already tested.
For all I know this fpc will be released the same way, as the provided testbuilds. So whatever Lazarus will come with that fpc will not relay on seh for 32 bit.

Official Lazarus releases will only come with released versions of fpc, so to get any benefits of seh 32bit for production, the fpc team has to include this in their release.

Of course it would be nice to test all features, but there are a large amount of ways fpc can be build (with/without seh, with optimized rtl (different optimization levels), with debug rtl (-Criot and others), .... I cannot pre-build all of those.

Using fpcup-deluxe should provide means to get any fpc, with any build options you like.
« Last Edit: November 01, 2018, 10:27:43 pm by Martin_fr »

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Canditate 2 for 2.0 (Order in lfm file)
« Reply #5 on: November 02, 2018, 12:06:07 pm »
I have found a very, very strange behavior in RC2 on the Mac, using 64bit Cocoa.

It started in my project, on one form buttons misbehaved. So I made a simple test bed for just that form and experimented. I reduced the form down to having two items, a KMemo and Button. Before you say KMemo is the problem, please read ....

In the lfm file, in my orig project the kmemo appeared before the button. This works fine in Windows, Linux and 32bit Carbon. However, with Cocoa, sometimes the button would not appear at all, clicking it sometimes would not return its modalresult (ie close the form), some times it would just jumble other components on the form. The behavior changed as I stripped non function code out of the form.

If I reverse the order that the two components are listed in the LMF file, all is good. It all works as expected.  :o  :o

And no, I am not in the habit of manually editing the LMF file ! I discovered this  removing and then replacing the KMemo. That puts the KMemo last in the list. So I did manually edit the much simplifed file and can reliably reproduce.

Is anyone interested ?  As far as I can tell, it requires KMemo and 64bit cocoa. I can attach a demo ...

David


 

 
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 Canditate 2 for 2.0
« Reply #6 on: November 02, 2018, 12:24:26 pm »
@dbannon, the best place to report is at the bug tracker.
https://bugs.freepascal.org

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
Re: Lazarus Release Canditate 2 for 2.0
« Reply #7 on: November 02, 2018, 04:03:06 pm »
Hello everybody :)

Only two question about near future 2.0.

Will be in 2.0 a Lazarus installer for Haiku Operating System?

Recently they promoted to beta and are porting a lot of software, including other compilers and IDEs

Im interested specially in Haiku with 64 bits more than 32 where thereis a working FreePascal  package.

https://discuss.haiku-os.org/t/lazarus-1-9-trunk-qt4-and-qt5-interface-screenshots/5767

https://discuss.haiku-os.org/t/helping-out-with-creating-hpkg-for-lazarus/3630

https://sourceforge.net/projects/befpc/

https://sourceforge.net/p/befpc/wiki/BePascal/


And the other is if there is some optimization of Lazarus for ReactOS. Lazarus is able to install in it but programas created with FreePascal/Lazarus have a cosmetic error with images of diferents fileformat showing inverted (reflected vertically). If thereis some indication about what function could be calling FreePascal/Lazarus to obtain this result....that works ok in original windows systems.

http://wiki.freepascal.org/ReactOS/es

Best Regards and thankyou very much to the team for this great work.
« Last Edit: November 02, 2018, 04:49:30 pm by jma_sp »
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
Re: Lazarus Release Canditate 2 for 2.0
« Reply #8 on: November 03, 2018, 04:13:15 am »
Only RC1 on Sourceforge? I dont see RC2, almost for Linux AMD64  %) (.DEB)
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

antispam88

  • Jr. Member
  • **
  • Posts: 60
Re: Lazarus Release Canditate 2 for 2.0
« Reply #9 on: November 03, 2018, 09:31:16 am »
Hi,

I tried to compile my projects and everything looks good beside the message unit lazutf8sysutils not found.
I need the function NowUTC which is now located in unit LazSysUtils.
Ok, search and replace fixed the error.

I'm just wondering that I couldn't get any information about that unit movement.
Or have I missed something?

thanks,
antispam88

System:
Win10 pro x64
Lazarus 2.0.0RC2
FPC: 3.0.4
SVN: 59373
x86_64-win64-win32/win64

PS: Is there a better function to get UTC time?

fred1933

  • New member
  • *
  • Posts: 9
Re: Lazarus Release Canditate 2 for 2.0
« Reply #10 on: November 03, 2018, 10:47:54 am »
Tests on MAC OS
Hello,
How to test the RC2 version when "lazarus-2.0.0RC2-i686-macosx.dmg" does not exist in the Sourceforge ?
We have to build it from source files ? Is there a procedure to do this  ?
Thank you

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Canditate 2 for 2.0
« Reply #11 on: November 03, 2018, 12:51:07 pm »
Yes Fred, very easy to build yourself from src. Assuming you already have fpc 3.0.4 there and are familiar with lazarus and have a signed gdb installed.

Code: [Select]
svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC2
cd lazarus_2_0_0_RC2
make CPU_TARGET=i386
open startlazarus.app --args "--pcp=~/.lazarus_2_0_0_RC2"

That builds a 32 IDE which will, of course, make 64bit apps if you so request. You could also choose to build a 64bit Cocoa IDE....

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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Canditate 2 for 2.0
« Reply #12 on: November 03, 2018, 01:15:45 pm »
Tests on MAC OS
How to test the RC2 version when "lazarus-2.0.0RC2-i686-macosx.dmg" does not exist in the Sourceforge ?
We have to build it from source files ? Is there a procedure to do this  ?
Looking into it...

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Canditate 2 for 2.0
« Reply #13 on: November 03, 2018, 01:52:00 pm »
I tried to compile my projects and everything looks good beside the message unit lazutf8sysutils not found.
I need the function NowUTC which is now located in unit LazSysUtils.
Ok, search and replace fixed the error.

I'm just wondering that I couldn't get any information about that unit movement.
Or have I missed something?
Yes, good point. I had renamed the unit because it had nothing to do with UTF8. Actually I thought it was not used outside Lazarus sources.
Now in r59436 I added lazutf8sysutils back there with "deprecated" warnings. It will be in 2.0 final and in RC3 if that is built.
Now waiting to be merged to fixes branch. See:
 http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch

BTW, I recommend the HEAD of fixes branch for everybody who builds from sources:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/
It is always better than a tagged version because it contains the latest bug fixes merged. This is true also after versions 2.0, 2.0.2 etc. are released.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

baldzhang

  • New Member
  • *
  • Posts: 33
Re: Lazarus Release Canditate 2 for 2.0
« Reply #14 on: November 03, 2018, 02:34:34 pm »
BTW, I recommend the HEAD of fixes branch for everybody who builds from sources:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/
It is always better than a tagged version because it contains the latest bug fixes merged. This is true also after versions 2.0, 2.0.2 etc. are released.

I'm always wondering to build from source between /branches/fixes_X_Y or /tags/release_X_Y_rcZ,
But now I got the idea
 :D :D

 

TinyPortal © 2005-2018