Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on October 14, 2018, 08:45:13 pm

Title: Lazarus Release Candidate 1 for 2.0
Post by: Martin_fr on October 14, 2018, 08:45:13 pm
The Lazarus team is glad to announce the first 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.0RC1" directory.

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

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_RC1

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.0RC1 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 RC1.
- 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 "Publish Project" from the project menu. This creates a clean copy of your project.

You can then open that copy in the RC1. 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

Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: tianya on October 15, 2018, 01:58:07 am
good job! :D
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: dbannon on October 15, 2018, 02:58:06 am
It builds from src
Takes KControls as a Package and
Builds my (est) 8500 line project, tomboy-ng notes exactly as I'd expect it to.
Wow, and you call that RC1 ?

Thanks indeed !

Davo
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: silvestre on October 15, 2018, 10:32:40 am
Excellent work. The best place in the world in open source for Object Pascal. :)
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: BlueIcaro on October 15, 2018, 03:02:11 pm
I great job!
I can't wait to download it, and start to test it!
/BlueIcaro
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: edgardomlopez on October 15, 2018, 03:55:44 pm
Hola, no puedo usar Lazarus en modo Venana Única.  Compila todo perfecto, pero cuando entro a la vista de diseño del Formulario este da un errror "Access Validation" y se cierra.  :-\

Can´t use lazarus Single Window on Windows10. Its compli fine, but when view design form its Access Validation error and close.  :-\

Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 15, 2018, 06:38:21 pm
Check the bugtracker and if not yet reported, then add a report (with details, such as all packages you installed, exact error, --debug-log output, ....)
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: BlueIcaro on October 15, 2018, 08:02:01 pm
Hola, no puedo usar Lazarus en modo Venana Única.  Compila todo perfecto, pero cuando entro a la vista de diseño del Formulario este da un errror "Access Validation" y se cierra.  :-\

Can´t use lazarus Single Window on Windows10. Its compli fine, but when view design form its Access Validation error and close.  :-\
I installed Lazarus 32bits in W10/64bits. I build it (with clean all selected) and I started a  new proyect. Compiled and no problems

/BlueIcaro
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: josh on October 15, 2018, 08:17:31 pm
Hi

I was hoping to give this a go on MacOS Mojave, but no 64bit installer listed, only 32bit installer.

Is this an ommision, as 32 bit and the carbon widgetset is on its final leg, and will not be supported at all in next MacOS release, I suspect this maybe an issue with the new lldb debugger as I think this requires 32bit llvm.


ANy guide on how to test this release on Mojave?
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 15, 2018, 08:21:28 pm
I tested lldb on both 32 and 64 bit. And on my test system both worked.

As for 64 bit cocoa, you currently have to build the IDE yourself. Not sure when an installer will be made avail.
IIRC the fpc install supported compiling to 64 bit.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: andresayang on October 16, 2018, 02:20:06 pm
Hi,

Already tested on some of my small projects.
1) Everything is working perfectly, all my lazarus 1.8.4 project tested work as expected.
2) Exe files seems to be slightly bigger.
3) I try to test: "Compiler defines to exclude some graphics support
Added flags to exclude support for some graphics formats to create smaller applications:
    -dDisableLCLGIF
    -dDisableLCLJPEG
    -dDisableLCLPNM
    -dDisableLCLTIFF"
Resulting exe do not seems to be smaller (in fact exactly the same size). Maybe I do not use it the good way.

But however, thanks a lot for your work.

Cheers

Andre

 
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 16, 2018, 02:32:52 pm
3) I try to test: "Compiler defines to exclude some graphics support
Added flags to exclude support for some graphics formats to create smaller applications:
    -dDisableLCLGIF
    -dDisableLCLJPEG
    -dDisableLCLPNM
    -dDisableLCLTIFF"
Resulting exe do not seems to be smaller (in fact exactly the same size). Maybe I do not use it the good way.
Those must be applied, so they affect the LCL. (IIRC it is LCL)
Either via "Additions and Overrides" or in the package LCL.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: TraumTaenzerDieter on October 16, 2018, 05:35:36 pm
Lazarus 32bit:
Destination Win64 x86_64 is NOT possible:
seems the complete 64bit .PPUs are missing in
lazarus-2.0RC1-fpc-3.0.4-cross-x86_64-win64-win32
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 16, 2018, 11:09:48 pm
Lazarus 32bit:
Destination Win64 x86_64 is NOT possible:
seems the complete 64bit .PPUs are missing in
lazarus-2.0RC1-fpc-3.0.4-cross-x86_64-win64-win32

Looks like the installer was build for the wrong target.
I will see when I can correct it.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: VTwin on October 17, 2018, 05:25:36 am
As for 64 bit cocoa, you currently have to build the IDE yourself. Not sure when an installer will be made avail.

I was also hoping that 2.0 would support 64 bit cocoa by default. However, I offer many congratulations to the development team for their excellent work. I guess I can continue to use SVN update to build cocoa IDE, this has been working for me quite well so far. I am, however, not upgraded to Mojave yet.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: keleven on October 18, 2018, 09:53:12 pm
Download 64 bit on windows 10 - all looks okay.  :D :D

Compiled several projects, including one with over 14000 lines of code.  They all compile and run just fine.

I liked the fact, it recognised missing components and auto-loaded them [is this new?].  The only niggle with this was DCPciphers, which did not load the visual components first time.  But, it did manage BGRA stuff first time :-)
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: nouzi on October 18, 2018, 10:40:35 pm
nice job
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: fred on October 20, 2018, 02:10:34 pm
As always nice to see that it gets better.
With this version 2.0 RC1 I see that it connects to internet to packages.lazarus-ide.org GET /packagelist.json
Why is it connection made at start?
In Online Package Manager I have set "Check for package updates: Never" but that doesn't matter.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Thaddy on October 20, 2018, 02:19:27 pm
If there is no connection OPM is ignored and fails silently, but indeed, it should not connect based on the user settings.
Note I like the OPM! but you are right: if you say no connection, no connection should be attempted.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 20, 2018, 02:33:32 pm
As always nice to see that it gets better.
With this version 2.0 RC1 I see that it connects to internet to packages.lazarus-ide.org GET /packagelist.json
Why is it connection made at start?
In Online Package Manager I have set "Check for package updates: Never" but that doesn't matter.
If that is the case, report on tracker, or discuss/verify on a thread of its own please
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: fred on October 20, 2018, 02:54:44 pm
@Thaddy: Yes OPM is great no doubt about that!

@Martin_fr: I had doubts where to put it but since this RC showed the behaviour I did put it here.
Since i'm the only one who has it I will leave at this.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 21, 2018, 11:35:52 am
I did a quick test, and it seems to call the download when the IDE starts

Put it on the bugtracker for lazarus trunk (2.1 svn).
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: gii on October 21, 2018, 05:09:49 pm
Apparently the Outline (http://wiki.freepascal.org/Lazarus_IDE_Tools#Outline) feature does not work in this version.

Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 21, 2018, 07:35:37 pm
Can you check in the color page, if colors are assigned?

Maybe it is a problem with imported colors, since those schemes pre-date the feature, and do not have colors included.
Title: Re: Lázaro lançamento Canditate 1 para 2.0
Post by: gii on October 21, 2018, 08:12:57 pm
Can you check in the color page, if colors are assigned?

Maybe it is a problem with imported colors, since those schemes pre-date the feature, and do not have colors included.

Really, there were no colors assigned.

Thank you very much.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 21, 2018, 08:23:01 pm
Ok, I need to see, if such older settings can be detected. But even if, forcing some colors on them, may not be the best idea.

I think, it will be better to add a warning on the "markup" option page: "Warning: no outline colors set".
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 21, 2018, 10:17:01 pm
Lazarus 32bit:
Destination Win64 x86_64 is NOT possible:
seems the complete 64bit .PPUs are missing in
lazarus-2.0RC1-fpc-3.0.4-cross-x86_64-win64-win32
The installer lazarus-2.0RC1-fpc-3.0.4-cross-x86_64-win64-win32.exe was indeed incorrectly build (wrong target).

I replaced the file on Sourceforge. Not sure when (if) the mirrors will catch up.
The new SHA-1 is 65e5b8feebe2c0f41d2d181c157fa62bd00f475e
The checksums on our main website will be updated soon (there is a bit of delay, as I need to sent them to the admin)
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: TraumTaenzerDieter on October 22, 2018, 04:42:50 pm
Thanks, building 64bit works now!
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: BBasile on October 25, 2018, 04:50:49 am
Thanks, so far nothing dramatic experienced compared to issues i got during 1.8.x, although i haven't tested extensively the stuff.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Paul_ on October 25, 2018, 08:58:25 am
Thanks for new version.

I had problem with {$IFDEF LCL}, but it was my fault (some forgotten files/packages in Project inspector). Now it's more strict than in 1.8.x probably.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: useroflazarus on October 28, 2018, 08:15:50 pm
rc2 is released.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: dbannon on October 29, 2018, 05:28:11 am
Quote
rc2 is released.

But binaries only for windows at this stage.

I built from src on a mac using -

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

And it looks pretty good so far ...

Thanks folks !

Davo
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: dbannon on October 29, 2018, 06:41:26 am
In fact, amazingly good !  I built this to see how my app looked when built 64bit, Cocoa and its almost perfect. A huge leap forward from when I last tested against trunk, maybe 3 months ago.

People who want Cocoa, now is the time to try it out !

I did notice one (out of about 15) forms that did not show its buttons where they should be. I'll have to do some investigating to see why that is. Its a dynamically created form and one with some fussy anchoring going on, possibly relates to one or the other.

I also noted that my press buttons have all been made a fixed height. Is this a Cocoa thing ?  Or a bug ....

Anyway, huge congratulations to the people who have been working on this !

Davo
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: JuhaManninen on October 29, 2018, 10:39:54 am
Code: Pascal  [Select]
  1. svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC2
That is a good way but even better is to use the HEAD of fixes branch:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/
because it gets the latest bug fixes in future, also after the versions 2.0, 2.0.2 etc. are released. It is the best way to get the most stable version of Lazarus for few years to come.
See:
 http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch
Now the 2_0_0_RC2 tag is identical with the fixes HEAD but there are already some revisions waiting to be merged and more will come, and command "svn up" will always get them.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: minesadorada on October 29, 2018, 07:48:29 pm
V2.1.0 r59380M  Windows 10 x64
Minor issue : Help/About Contributors tab (scrolling window) Some names with non-english characters incorrectly displayed.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Martin_fr on October 29, 2018, 10:02:18 pm
V2.1.0 r59380M  Windows 10 x64
Minor issue : Help/About Contributors tab (scrolling window) Some names with non-english characters incorrectly displayed.
It looks fine on my W10 (64bit) for both (Laz64 and Laz32). Using Laz trunk, and fpc 3.0.4
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: marcov on October 29, 2018, 10:29:13 pm
I've a 32-bit build from last weekend with fpc+lazarus trunk. Same problem
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: BBasile on October 30, 2018, 03:08:50 am
can someone give me a link to the diff between RC1 and RC2 ?
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: dbannon on October 30, 2018, 04:20:32 am
Code: Pascal  [Select]
  1. svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC2

That is a good way but even better is to use the HEAD of fixes branch:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/

because it gets the latest bug fixes in future, also after the versions 2.0, 2.0.2 etc. are released. It is the best way to get the most stable version of Lazarus for few years to come.
.....

Thanks Juha, thats probably good advice. Especially as I live in a remote area where network is slow and limited ...

Can I just clarify exactly how it works ?


Thanks,
Davo
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: JuhaManninen on October 30, 2018, 09:37:19 am
Yes you got it right.
Trunk gets all new development, refactoring and new features that will stabilize. Sometimes it has experiments which break things and must be reverted. On a positive side the breakages are usually fixed quickly.
A fixes branch gets only bug fixes as the name hints.
All 2.0.x versions will be released from fixes_2_0 branch.
In far future a new branch for version 2.2 will be forked from trunk.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: nirunge on October 31, 2018, 02:22:52 am
RC1 for 2.0, everything good except for the tOpenGLcontrol - I am running Linux with gtk2. The openGLcontrol starts up ok when I run the program. However, when I have to click in a menu bar, the focus does not return to the openglControl afterwards, even with openGLcontrol1.makecurrent. Everything works ok in version 1.8.4.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Zoran on October 31, 2018, 09:58:27 am
can someone give me a link to the diff between RC1 and RC2 ?

RC1 is tagged in rev. 59013, and RC2 in rev. 59373.
So, the log of changes between these two can be seen in log on fixes branch between these two revisions:

Code: [Select]
svn log https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 -r 59013:59373
All the diffs can be seen as a diff file created with, for example:
Code: [Select]
svn diff https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 -r 59013:59373 > rc1_rc2.diffand then look in the file rc1_rc2.diff
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: BBasile on October 31, 2018, 10:29:20 am
Thanks, can you share the diff file ? i don't have svn setup here.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: JuhaManninen on October 31, 2018, 12:57:09 pm
Thanks, can you share the diff file ? i don't have svn setup here.
Then you should install it. There is no excuse because it is so easy to do for any OS.
Anybody who is interested in development of a FOSS project that uses Subversion for it's revision control, should have the tools installed IMO.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: JuhaManninen on October 31, 2018, 01:04:36 pm
RC1 for 2.0, everything good except for the tOpenGLcontrol - I am running Linux with gtk2. The openGLcontrol starts up ok when I run the program. However, when I have to click in a menu bar, the focus does not return to the openglControl afterwards, even with openGLcontrol1.makecurrent. Everything works ok in version 1.8.4.
There was an issue about flickering in GTK2 which is fixed in RC2. See:
 https://bugs.freepascal.org/view.php?id=33864
Your issue sounds different though. If you can reproduce it in RC2 and trunk then please report with a simple demo app.
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: Zoran on October 31, 2018, 03:04:20 pm
Thanks, can you share the diff file ? i don't have svn setup here.

Ah, okay...  ::) But Juha is quite right, if you are interested in development, you should install svn.

By the way, you know, you can also browse commits online: https://svn.freepascal.org/cgi-bin/viewvc.cgi/?root=lazarus
Title: Re: Lazarus Release Canditate 1 for 2.0
Post by: FTurtle on October 31, 2018, 04:18:19 pm
can someone give me a link to the diff between RC1 and RC2 ?

See section Fixes for 2.0.0RC2 (merged):
http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch